首页 > 代码库 > 查看虚拟内存:vmstat

查看虚拟内存:vmstat

[root@localhost ~]# vmstat        # 只显示一次[root@localhost ~]# vmstat 1      # 每隔1秒显示1次[root@localhost ~]# vmstat 1 5    # 1秒显示1次,显示5次
[root@localhost ~]# vmstat 1 3procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r  b  swpd    free   buff  cache   si   so    bi    bo   in   cs us sy  id  wa st 1  0     0  730444  77920  58836    0    0    10     1    9    8  0  0 100   0  0   1  0     0  730436  77920  58836    0    0     0     0   21   14  0  1 100   0  0   1  0     0  730436  77920  58836    0    0     0     0   16   15  0  0 100   0  0  

(1) procs :r 表示正在运行的进程数,b 表示正在等待的进程数
(2) memory :swpd 表示正在使用的虚拟内存的大小,free 表示空闲的物理内存的大小,buff 表示缓存的大小,cache 表示缓冲区的大小
(3) swap :si 表示每秒从磁盘读出的虚拟内存的大小,so 表示每秒向虚拟内存写入磁盘的大小
(4) io :
bi 表示从磁盘读出的块数量,bo 表示向磁盘写入的块数量
(5) system :
in 表示每秒CPU的中断次数,cs 表示每秒上下文切换的次数
(6) cpu :
us 表示当前用户所执行的进程消耗CPU的百分比,sy 表示系统进程消耗CPU的百分比,id 表示空闲CPU的百分比,wa 表示I/O消耗CPU的百分比

 

 

 

      

查看虚拟内存:vmstat