vmstat 3.3.10 命令詳解


vmstat 是 Virtual Meomory Statistics 的縮寫,中文譯為虛擬內存統計。

vmstat 能以秒為單位,按指定延遲時間實時輸齣等待/休眠進程數、內存使用、虛擬內存使用、輸入/輸齣、係統操作、CPU 使用、等信息。

另請參閱: free     pidstat     top     uptime

基本用法     詳細用法

root:~# vmstat -S m 5 3
procs -----------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     14     34    228    0    0   257    23 1416 3082  2  1 97  0  0
 1  0      0     14     34    228    0    0   222     8 1398 3046  2  1 97  0  0
 2  0      0     16     34    224    0    0   282     9 1418 3113  3  1 95  0  0
root@iZj6c3okxpwhhkt9xrjxh0Z:~#
			

以 MB (默認 KB) 為單位,每隔 5 秒統計一次,總計 3 次輸齣內存統計信息。

基本語法

vmstat [options] [delay [count]]
			

Options 選項

參數 EN 解釋 中文翻譯 備注
-a, --active active/inactive memory 活動/不活動內存
-f, --forks number of forks since boot 自引導以來的分叉數
-m, --slabs slabinfo
-n, --one-header do not redisplay header 不重新顯示標題
-s, --stats event counter statistics 事件計數器統計
-d, --disk disk statistics 磁盤統計
-D, --disk-sum summarize disk statistics 匯總磁盤統計信息
-p, --partition <dev> partition specific statistics 特定分區統計信息
-S, --unit <char> define display unit 定義顯示單位
-w, --wide wide output 寬輸齣
-t, --timestamp show timestamp 展示時間戳
-h, --help display this help and exit 顯示此幫助並退齣
-V, --version output version information and exit 輸齣版本信息並退齣

基本用法

功能 命令 文字解釋 示例 示例解釋
版本 vmstat -V 展示版本信息
vmstat --version
幫助 vmstat -h 展示幫助信息
vmstat --help

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。