Unix系统vmstat命令详解
NOTES vmstat does not require special permissions. These reports are intended to help identify system bottlenecks. Linux vmstat does not count itself as a running process.All linux blocks are currently 1024 bytes. Old kernels may report blocks as 512 bytes, 2048 bytes, or 4096 bytes.Since procps 3.1.9, vmstat lets you choose units (k, K, m, M) default is K (1024 bytes) in the default mode vmstat uses slabinfo 1.1 FIXME FILES /proc/meminfo /proc/stat /proc/*/stat SEE ALSO iostat(1), sar(1), mpstat(1), ps(1), top(1), free(1) BUGS Does not tabulate the block io per device or count the number of system calls. AUTHORS Written by Henry Ware <al172@yfn.ysu.edu>. Fabian Frédérick <ffrederick@users.sourceforge.net> (diskstat, slab, partitions…) Throatwobbler Ginkgo Labs 27 July 1994 VMSTAT(8) 示例: # vmstat 2 10 procs -----------memory---------------------- -----swap--- -----io---- ---system--- ----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa 1 1 208 28960 38128 268204 0 0 278 40 1050 370 5 46 44 5 1 0 208 28896 38128 268204 0 0 128 0 1054 310 4 38 58 1 2 0 208 28896 38136 268196 0 0 257 55 1056 301 4 39 52 5 2 0 208 24896 38136 268196 0 0 257 1 1042 593 6 87 7 0 0 0 208 28672 38136 268196 0 0 257 25 1052 372 4 46 45 5 0 0 208 28824 38140 268192 0 0 129 111 1052 316 3 32 64 1 1 0 208 28768 38148 268184 0 0 257 109 1050 286 9 70 21 1 1 0 208 28512 38148 268184 0 0 257 1 1046 327 6 48 43 2 0 0 208 28832 38148 268184 0 0 257 1 1047 313 5 42 52 1 0 0 208 28832 38152 268180 0 0 257 109 1050 308 4 33 59 5 每2秒显示一次,共显示10次。 在Unix(Solaris)平台下: -bash-3.00$ vmstat 2 10 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 -- -- in sy cs us sy id 0 0 0 5016344 4200040 126 512 35 0 0 0 0 0 1 0 0 731 1416 723 3 0 97 查看本栏目更多精彩内容:http://www.bianceng.cn/OS/unix/ 0 0 0 2065576 2375112 14 54 0 0 0 0 0 0 0 0 0 870 625 950 3 0 96 0 0 0 2065512 2375048 11 50 0 0 0 0 0 0 0 0 0 951 529 1066 3 0 97 0 0 0 2065512 2375048 11 53 0 0 0 0 0 0 0 0 0 852 548 934 3 0 97 0 0 0 2065512 2375048 4 40 0 0 0 0 0 0 0 0 0 836 483 907 3 0 97 0 0 0 2065512 2375048 14 46 0 0 0 0 0 0 0 0 0 873 632 958 3 0 97 0 0 0 2065512 2375048 0 0 0 0 0 0 0 0 0 0 0 812 417 863 3 0 97 0 0 0 2065512 2375048 4 40 0 0 0 0 0 0 0 0 0 810 481 874 3 0 97 0 0 0 2065384 2374920 0 0 0 0 0 0 0 0 1 0 0 801 406 862 3 0 96 0 0 0 2065384 2374920 14 46 0 0 0 0 0 0 0 0 0 817 545 898 3 0 97 (编辑:云计算网_泰州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |