UNIX command to check free and used memory. Can anyone show me command for this task?
TIA
UNIX command to check free and used memory. Can anyone show me command for this task?
TIA
$ vmstat
System configuration: lcpu=2 mem=8192MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
2 3 2336209 49400 0 11 8 227 157 0 234 8614 830 28 7 60 5
$ vmstat 5 5
System configuration: lcpu=2 mem=8192MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
2 0 2337381 48080 0 0 0 0 0 0 581 4301 1294 60 4 36 0
1 0 2336206 49193 0 1 0 0 0 0 650 3980 1417 57 5 36 1
3 0 2342415 42938 0 3 0 0 0 0 653 8710 1541 66 9 23 1
4 0 2359028 26293 0 3 0 0 0 0 678 41228 2382 61 19 19 1
9 1 2382768 2515 0 3 0 0 0 0 1213 69808 2459 65 33 1 0
try using this commands
#free
or
#free -m
total used free shared buffers cached
Mem: 248 227 21 0 78 110
-/+ buffers/cache: 38 209
Swap: 572 0 572
or the best
#top
or
#vmstat
top command will also give you idea.
Code:dmesg | awk '/Physical:/ && /Kbytes/ {print $2}' getconf KERNEL_BITS echo "phys_mem_pages/D" | adb64 /stand/vmunix /dev/mem
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
You can see the memory usage in HP-UX using swapinfo
try
swapinfo -tam
You can use swapinfo command for memory usage
swapinfo -tam
You can also use glance and top commands to check memory.
There are currently 1 users browsing this thread. (0 members and 1 guests)