28 revolutions of the clock hand 33577399 pages freed by the clock 11549684 backtracks 5631 free frame waits 0 extend XPT waits 5033034 pending I/O waits 365484303 start I/Os 10744732 iodones
4779271208 cpu context switches 249867457 device interrupts 870241057 software interrupts 3789663540 decrementer interrupts 990224 mpc-sent interrupts 990224 mpc-receive interrupts 2787163 phantom interrupts 0 traps
14370171283 syscalls page ins
Incremented for each page read in by the virtual memory manager. The count is incremented for page ins from page space and file space. Along with the page out statistic, this represents the total amount of real I/O initiated by the virtual memory manager. page outs
Incremented for each page written out by the virtual memory manager. The count is incremented for page outs to page space and for page outs to file space. Along with the page in statistic, this represents the total amount of real I/O initiated by the virtual memory manager. paging space page ins
Incremented for VMM initiated page ins from paging space only. paging space page outs
Incremented for VMM initiated page outs to paging space only. 工程经验
作为page ins, page outs, paging space page ins和paging space page outs,应该不会有大量的增长.
# vmstat -v
4079616 memory pages 3870685 lruable pages 600851 free pages 2 memory pools 536705 pinned pages 80.0 maxpin percentage 20.0 minperm percentage 80.0 maxperm percentage 66.2 numperm percentage 2566023 file pages
0.0 compressed percentage 0 compressed pages 66.7 numclient percentage 80.0 maxclient percentage 2583370 client pages
0 remote pageouts scheduled
28819 pending disk I/Os blocked with no pbuf 0 paging space I/Os blocked with no psbuf 2740 filesystem I/Os blocked with no fsbuf
0 client filesystem I/Os blocked with no fsbuf
109158 external pager filesystem I/Os blocked with no fsbuf 工程经验
numperm 和numclient是一个比较好的系统信息,表示的是当前内存中基于文件的page占的百分比. 从中可以判断当前可能的page replacement的机制. 如果numperm和numclient在minperm和maxperm/maxclient之间, 参考lru_file_repage, 如果lru_file_repage=0, 将先replace文件类型的page, 如果lru_file_repage=1, 系统会平衡计算型和文件型page的repage情况来决定
svmon
# svmon -G
size inuse free pin virtual
memory 4079616 3478350 601266 536696 894957 pg space 7995392 2909
work pers clnt pin 536696 0 0 in use 894957 0 2583393
PageSize PoolSize inuse pgsp pin virtual s 4 KB - 3400046 2909 485544 816653 m 64 KB - 4894 0 3197 4894 上面的数值以page为单位(4K) 其中:
Memory size: 表示物理内存的大小; Memory inuse表示当前使用了内存的大小,包括所有work和persistent类型的内存; Memory Free表示剩余的物理内存,这个值和vmstat的free list是一致的; Memory pin表示被使用的内存有多少是不能被page out(一般是系统预留的内存); Memory Virtual表示的active virtual memory,和vmstat中的avm一致.
In use work表示的是正在使用的work类型的内存; in use pers表示的是正在使用的persistent类型的内存(JFS类型); in use clnt表示的正在使用的client类型的内存(包括remote文件系统和Enhanced JFS类型)
# svmon -P
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB 254008 java 191578 7530 5135 194273 N Y N
PageSize Inuse Pin Pgsp Virtual s 4 KB 191204 7530 5120 193861 m 64 KB 374 0 15 412
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual 344e9 3 work working storage s 65503 0 636 65525 244ed 4 work working storage s 65001 0 768 65536 204ec 5 work working storage s 48632 0 3646 50930 0 0 work kernel s 11399 7468 19 11417 330ad d work shared library text m 374 0 15 412 457f8 - clnt /dev/hd10opt:40966 s 256 0 - - 284ee f work working storage s 192 0 9 213 3c4eb - work s 171 59 39 205 384ea 2 work process private s 32 3 3 35 3c4 1 clnt code,/dev/hd10opt:47099 s 18 0 - - 6863e - clnt /dev/hd10opt:52836 s 0 0 - - 30628 - clnt /dev/hd10opt:50981 s 0 0 - - …… Vsid
Indicates the virtual segment ID. Identifies a unique segment in the VMM Esid
Indicates the effective segment ID. The Esid is only valid when the segment belongs to the address space of the process. 列出内存占用率排名前15名的进程和相关信息.
# svmon -Pt15 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}'
------------------------------------------------------------------------------- Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB 254008 java 191539 7530 12956 194382 N Y N 319610 dsmc 48382 7476 7361 28925 N Y N 258184 dsmserv 31846 7526 8294 34638 Y Y N 336062 kulagent 14134 7490 1882 15755 Y Y N 217194 hostmibd64 14115 7471 1884 15590 Y N N 344078 kuma610 14024 7499 3360 17020 Y Y N 286776 kuxagent 13986 7488 2536 16296 Y Y N 155768 IBM.CSMAgentR 13445 7487 675 13843 N Y N 184420 snmpmibd64 13224 7471 1929 14749 Y N N 458810 stat_daemon 12921 7471 1922 14618 Y N N 417992 svmon_back.64 12746 7471 1813 14341 Y N N 352382 kux_vmstat 12724 7471 1913 14428 Y N N 340132 ifstat 12724 7471 1876 14393 Y N N 127050 shlap64 12706 7471 1880 14367 Y N N 413938 nfs_stat 12698 7471 1844 14332 Y N N -t Count
Displays memory usage statistics for the top Count object to be printed 64-bit