Originally posted by: CristianLagos
Yo could use nmon:
"
-
nmon -F /tmp/aa -s 5 -c 1 -D -E -I 100 -J
-
sort /tmp/aa | grep -e "CPU_ALL," -e "NET," -e "MEM," -e "DISKBUSY"
CPU_ALL,CPU Total apawas72,User%,Sys%,Wait%,Idle%,Busy,PhysicalCPUs
CPU_ALL,T0001,65.8,32.6,0.1,1.5,,4
DISKBUSY,Disk %Busy apawas72,hdisk0,hdisk1
DISKBUSY,T0001,21.8,0.9
MEM,Memory apawas72,Real Free %,Virtual free %,Real free(MB),Virtual free(MB),Real total(MB),Virtual total(MB)
MEM,T0001,13.2,99.8,942.7,8686.4,7168.0,8704.0
NET,Network I/O apawas72,en0-read-KB/s,en1-read-KB/s,lo0-read-KB/s,en0-write-KB/s,en1-write-KB/s,lo0-write-KB/s
NET,T0001,41.7,63.9,175.2,89.8,45.2,175.2
"
Notice, though, that the "Real Free %" in the memory section, doesn't takes into account that some memory is used for file cache. Some people recomends to look out for the active virtual memory in use:
"
-
vmstat 1 1
System configuration: lcpu=4
mem=7168MB ent=1.00
kthr memory page faults cpu
-----------
------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
6 0 1223760 239721 0 0 0 0 0 0 846 12609 6525 71 6 23 0 0.77 77.4
"
The avm value is in 4kb, so to compare it to the fisical RAM:
Used avm = 1223760 * 4 / 1024 =
4780 MB RAM =
7168 MB avm should not be greater than the ram, or you'll surely have paging in/out
#AIX-Forum