马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!vmstat是一个检查虚拟内存(VirtualMemory)应用状态的对象,应用vmstat敕令可以获得关于过程、内存、内存分页、梗塞IO、traps及CPU运动的信息。 普通vmstat对象的应用是经由过程两个数字参数来完成的,第一个参数是获得的时光距离数,单元是秒,第二个参数是获得的次数,如:
[color=#333333!important]
[color=#999999!important]Python
1
[color=#317cc5!important]2
3
[color=#317cc5!important]4
5
[color=#317cc5!important]6
[color=#333333!important][root[color=#333333!important]@chenyi[color=#006fe0!important]-[color=#ce0000!important]1[color=#006fe0!important]sbin[color=#333333!important]][color=#ff8000!important]#vmstat33#表现每三秒获得一次,获得3次
procs[color=#006fe0!important][color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]-memory[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important][color=#006fe0!important]--[color=#006fe0!important]-swap[color=#006fe0!important]--[color=#006fe0!important][color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]-[color=#800080!important]io[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important][color=#006fe0!important]--system[color=#006fe0!important]--[color=#006fe0!important][color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]-cpu[color=#006fe0!important]--[color=#006fe0!important]--[color=#006fe0!important]-
[color=#006fe0!important]r[color=#006fe0!important]b[color=#006fe0!important][color=#004ed0!important]swpd[color=#004ed0!important]free[color=#004ed0!important]buff[color=#004ed0!important]cache[color=#004ed0!important]si[color=#004ed0!important]so[color=#004ed0!important]bi[color=#004ed0!important]bo[color=#800080!important]in[color=#006fe0!important][color=#004ed0!important]cs[color=#004ed0!important]us[color=#004ed0!important]sy[color=#800080!important]id[color=#006fe0!important][color=#004ed0!important]wast
[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]621388[color=#006fe0!important][color=#ce0000!important]44608[color=#006fe0!important][color=#ce0000!important]300172[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]2[color=#006fe0!important][color=#ce0000!important]8[color=#006fe0!important][color=#ce0000!important]23[color=#006fe0!important][color=#ce0000!important]15[color=#006fe0!important][color=#ce0000!important]1[color=#006fe0!important][color=#ce0000!important]1[color=#006fe0!important][color=#ce0000!important]98[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important]
[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]621380[color=#006fe0!important][color=#ce0000!important]44608[color=#006fe0!important][color=#ce0000!important]300196[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]6[color=#006fe0!important][color=#ce0000!important]9[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]100[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important]
[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]621380[color=#006fe0!important][color=#ce0000!important]44616[color=#006fe0!important][color=#ce0000!important]300192[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]4[color=#006fe0!important][color=#ce0000!important]7[color=#006fe0!important][color=#ce0000!important]13[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]100[color=#006fe0!important][color=#ce0000!important]0[color=#006fe0!important][color=#ce0000!important]0
现实在临盆情况中,我们会在一个时光段里一向监控,直到我们收回CTRL+C后停止(下为每1秒获得一次,一向获得):
<divid="crayon-526afd62c7eec079564122"class="crayon-syntaxcrayon-theme-classiccrayon-font-monacocrayon-os-pcprint-yescrayon-wrapped"data-settings="minimizescroll-mou搜索引擎优化verwrap"style="margin:12px0px;padding:0px;border:1pxsolid#999999!important;font-size:12px!important;background-color:#fdfdfd!important;box-sizing:border-box;overflow:hidden!important;position:relative!important;direction:ltr!important;width:668px;font-family:monaco,monacoregular,couriernew,monospace;text-shadow:none!important;max-width:700px;float:none;clear:both;line-height:15px!important;height:auto;">[color=#333333!important]
[color=#999999!important]Python
<divclass="crayon-main"style="margin:0px;padding:0px;border:0px;width:666px;overflow:hidden;max-width:700px;position:relative;z-index:1;background-position:0px50%;"><divclass="crayon-nums-content"style="margin:0px;padding:0px;border:0px;background-position:0px50%;">1
[color=#317cc5!important]2
3
[color=#317cc5!important]4
5 |