欧美阿v视频在线大全_亚洲欧美中文日韩V在线观看_www性欧美日韩欧美91_亚洲欧美日韩久久精品

主頁 > 知識庫 > Unix vmstat 命令詳解寶典

Unix vmstat 命令詳解寶典

熱門標簽:北海智能電銷機器人公司 人工電銷和ai機器人的區別 地圖標注多個城市 赤峰防封電銷卡 南京自動外呼系統有哪些 信陽外呼系統廠家 地圖標注山峰最低高度 駐馬店電話自動外呼系統怎么樣 地圖標注與注記總結

在一個多CPU系統中,vmstat統計所有個數的CPU的平均輸出.為每個進程進行統計.沒有參數時,vmstat顯示每一行是自從系統啟動以后的虛擬內存的活動情況.
vmstat 的語法我們可以通過linux的man 命令來查看。
將man 的結果導入到指定的文本
# man vmstat|col -b > /u01/tianlesoftware.txt

查看vmstat 用法
# man vmstat
VMSTAT(8) Linux Administrator’s Manual VMSTAT(8)
NAME
vmstat - Report virtual memory statistics
SYNOPSIS
vmstat [-a] [-n] [delay [ count]]
vmstat [-f] [-s] [-m]
vmstat [-S unit]
vmstat [-d]
vmstat [-p disk partition]
vmstat [-V]
DESCRIPTION
vmstat reports information about processes, memory, paging, block IO,
traps, and cpu activity.
The first report produced gives averages since the last reboot. Addi-
tional reports give information on a sampling period of length delay.
The process and memory reports are instantaneous in either case.
Options
The -a switch displays active/inactive memory, given a 2.5.41 kernel
or better.
The -f switch displays the number of forks since boot. This includes
the fork, vfork, and clone system calls, and is equivalent to the
total number of tasks created. Each process is represented by one or
more tasks, depending on thread usage. This display does not repeat.
The -m displays slabinfo.
The -n switch causes the header to be displayed only once rather than
periodically.
The -s switch displays a table of various event counters and memory
statistics. This display does not repeat.
delay is the delay between updates in seconds. If no delay is speci-
fied, only one report is printed with the average values since boot.
count is the number of updates. If no count is specified and delay is
defined, count defaults to infinity.

The -d reports disk statistics (2.5.70 or above required)
The -p followed by some partition name for detailed statistics (2.5.70
or above required)
The -S followed by k or K or m or M switches outputs between 1000,
1024, 1000000, or 1048576 bytes
The -V switch results in displaying version information.

FIELD DESCRIPTION FOR VM MODE
Procs
r: The number of processes waiting for run time.
b: The number of processes in uninterruptible sleep.
Memory
swpd: the amount of virtual memory used.
free: the amount of idle memory.
buff: the amount of memory used as buffers.
cache: the amount of memory used as cache.
inact: the amount of inactive memory. (-a option)
active: the amount of active memory. (-a option)
Swap
si: Amount of memory swapped in from disk (/s).
so: Amount of memory swapped to disk (/s).
IO
bi: Blocks received from a block device (blocks/s).
bo: Blocks sent to a block device (blocks/s).
System
in: The number of interrupts per second, including the clock.
cs: The number of context switches per second.
CPU
These are percentages of total CPU time.
us: Time spent running non-kernel code. (user time, including nice time)
sy: Time spent running kernel code. (system time)
id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.
wa: Time spent waiting for IO. Prior to Linux 2.5.41, shown as zero.

FIELD DESCRIPTION FOR DISK MODE
Reads
total: Total reads completed successfully
merged: grouped reads (resulting in one I/O)
sectors: Sectors read successfully
ms: milliseconds spent reading
Writes
total: Total writes completed successfully
merged: grouped writes (resulting in one I/O)
sectors: Sectors written successfully
ms: milliseconds spent writing
IO
cur: I/O in progress
s: seconds spent for I/O

FIELD DESCRIPTION FOR DISK PARTITION MODE
reads: Total number of reads issued to this partition
read sectors: Total read sectors for partition
writes : Total number of writes issued to this partition
requested writes: Total number of write requests made for partition

FIELD DESCRIPTION FOR SLAB MODE
cache: Cache name
num: Number of currently active objects
total: Total number of available objects
size: Size of each object
pages: Number of pages with at least one active object
totpages: Total number of allocated pages
pslab: Number of pages per slab
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 sys-
tem 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
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

一些標準說明:

CPU:
1) 如果(process r)是連續的大于在系統中的CPU的個數表示系統現在運行比較慢,有多數的進程等待CPU.
2) 如果r的輸出數大于系統中可用CPU個數的4倍的話,則系統面臨著CPU短缺的問題,或者是CPU的速率過低,系統中有多數的進程在等待CPU,造成系統中進程運行過慢.
3) 如果空閑時間(cpu id)持續為0并且系統時間(cpu sy)是用戶時間的兩倍(cpu us) 系統則面臨著CPU資源的短缺.

簡單的說就是:
r 和 b 不高于5,如果r 經常大于4,且id 經常少于40,則表示CPU 負荷很重。
us+sy 不超過80%,如果大于80,進程就會在運行隊列中花費等待時間,響應時間和吞吐量就會下降。
wa 不超過25, 如果說wa >40表明磁盤io沒有也許存在不合理的平衡,或者對磁盤操作比較頻繁

一般情況下,導致CPU資源不足都是應用程序的問題.比如一些SQL語句不合理等等都會造成這樣的現象.

內存:
si和so基本為零。 其中si表示當前每秒交換回內存(Swap in)的總量,單位為kbytes;so表示當前每秒交換出內存(Swap out)的總量,單位為kbytes。如果si,so 長期不等于0,表示系統使用swap 頻繁,即內存不足。

一般情況下,如果內存的占用率比較高,但是,CPU的占用很低的時候,可以考慮是有很多的應用程序占用了內存沒有釋放.

要注意的是,Linux 內存在使用后不會釋放,所以一般會看到內存使用率很高,要判斷linux 內存是否正常,需要通過對swap 交換區的交換頻率來看。

標簽:晉中 梧州 達州 信陽 德陽 廣元 張家界 烏蘭察布

巨人網絡通訊聲明:本文標題《Unix vmstat 命令詳解寶典》,本文關鍵詞  Unix,vmstat,命令,詳解,寶典,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Unix vmstat 命令詳解寶典》相關的同類信息!
  • 本頁收集關于Unix vmstat 命令詳解寶典的相關信息資訊供網民參考!
  • 推薦文章
    欧美阿v视频在线大全_亚洲欧美中文日韩V在线观看_www性欧美日韩欧美91_亚洲欧美日韩久久精品
  • <rt id="w000q"><acronym id="w000q"></acronym></rt>
  • <abbr id="w000q"></abbr>
    <rt id="w000q"></rt>
    caoporn国产一区二区| 国产av 一区二区三区| 91麻豆精品国产91久久久久久久久 | 特大黑人巨人吊xxxx| 欧美日韩日日夜夜| 一区二区成人在线| 99精品视频一区| 在线精品视频免费观看| 亚洲精品自拍动漫在线| 91香蕉视频黄| 欧美少妇一区二区| 亚洲妇熟xx妇色黄| 国产大学生视频| 日韩三级.com| 激情五月婷婷综合网| 色欲狠狠躁天天躁无码中文字幕 | 中文字幕第10页| 在线观看视频一区二区| 亚洲综合久久av| 中文字幕无人区二| 日韩一区二区在线看片| 精品午夜久久福利影院| 亚洲色图27p| 亚洲乱码国产乱码精品精的特点| 91在线观看一区二区| 欧美三片在线视频观看| 污片在线观看一区二区| 永久免费看mv网站入口78| 久久久国产精品麻豆| 国产成a人亚洲精| 欧美综合久久久| 日韩精品一级二级| xxxx日本黄色| 中文字幕日本乱码精品影院| 91蝌蚪国产九色| 91精品免费在线| 韩国av一区二区| 波多野结衣亚洲色图| 亚洲午夜久久久| 一道本在线观看| 中文字幕一区二区三区四区| 成人av手机在线观看| 欧美日韩高清一区二区三区| 免费观看成人av| 多男操一女视频| 亚洲在线观看免费视频| mm131美女视频| 国产精品久久一卡二卡| 国产精品一区二区在线免费观看| 精品对白一区国产伦| 成人av综合在线| 欧美一区二区精品久久911| 国产麻豆精品视频| 欧美性一二三区| 精品在线一区二区| 91福利资源站| 久久国内精品自在自线400部| 久久免费看少妇高潮v片特黄| 亚洲国产欧美在线人成| 中文字幕精品亚洲| 亚洲一区二区影院| 色偷偷男人天堂| 亚洲aaa精品| 永久免费看片直接| 天天综合色天天综合| 午夜激情福利电影| 首页欧美精品中文字幕| 777777国产7777777| 日日噜噜夜夜狠狠视频欧美人| 久草福利资源在线| 午夜av区久久| 91精品国自产在线偷拍蜜桃| 蜜臀久久99精品久久久久久9| avove在线播放| 激情深爱一区二区| 欧美剧情电影在线观看完整版免费励志电影 | 93久久精品日日躁夜夜躁欧美| 日韩精品专区在线影院重磅| 91小视频免费观看| 欧美极品美女视频| 亚洲综合自拍网| 亚洲另类在线制服丝袜| 青青青视频在线免费观看| 日韩电影在线一区二区| 一本色道亚洲精品aⅴ| 国模大尺度一区二区三区| 欧美猛男超大videosgay| 成人黄色电影在线| 久久精品亚洲精品国产欧美kt∨| 在线xxxxx| 亚洲欧美国产77777| 免费一级suv好看的国产网站| 日日夜夜精品视频免费| 欧美自拍偷拍一区| 不卡的av电影在线观看| 国产天堂亚洲国产碰碰| 中文字幕国产专区| 日日嗨av一区二区三区四区| 欧美日韩一级二级三级| 不卡一区在线观看| 中文子幕无线码一区tr| 一区二区三区在线观看免费视频| 日韩二区三区在线观看| 欧美精品乱码久久久久久 | 99热精品国产| 国产亲近乱来精品视频| 黄色aaa视频| 日韩国产欧美在线播放| 欧美伦理视频网站| 欧美一级大片免费看| 亚洲精品高清在线| 日韩女优一区二区| 成人午夜av在线| 中文字幕第一区二区| 国产黄色片在线| 久热成人在线视频| 精品理论电影在线观看 | 久久综合九色综合欧美亚洲| 亚洲调教欧美在线| 丝袜亚洲另类欧美综合| 337p亚洲精品色噜噜| 男人网站在线观看| 天天综合网 天天综合色| 91麻豆精品91久久久久久清纯 | 亚洲免费视频中文字幕| 国产suv一区二区三区| 成人永久aaa| 亚洲欧洲精品成人久久奇米网| 久久福利免费视频| a级高清视频欧美日韩| 亚洲色图制服诱惑| 在线观看日韩电影| 免费观看一区二区三区| 午夜精品一区二区三区免费视频| 51午夜精品国产| 欧美性xxxx图片| 久久成人免费网| 国产亚洲成年网址在线观看| 潮喷失禁大喷水aⅴ无码| 粉嫩一区二区三区在线看| 亚洲欧美在线高清| 在线精品视频免费播放| 亚洲麻豆一区二区三区| 美女脱光内衣内裤视频久久影院| 精品国产乱码久久久久久浪潮 | 日本不卡视频在线观看| 精品国产露脸精彩对白| 香蕉久久久久久久| 成人黄页毛片网站| 亚洲综合清纯丝袜自拍| 欧美一区二区免费观在线| 无码人妻精品一区二区中文| 国产一区二区三区电影在线观看| 国产精品电影一区二区三区| 欧美在线视频日韩| a视频免费观看| 国产精品一区二区你懂的| 亚洲人一二三区| 欧美一区在线视频| 国产馆在线观看| 91啪亚洲精品| 日日摸夜夜添夜夜添精品视频| 久久在线免费观看| 色老汉av一区二区三区| xfplay5566色资源网站| 韩国v欧美v日本v亚洲v| 亚洲伦在线观看| 日韩欧美二区三区| 91免费公开视频| 最新国产精品自拍| 国产在线不卡一卡二卡三卡四卡| √…a在线天堂一区| 91精品国产综合久久香蕉的特点| 超碰人人干人人| 中文字幕 欧美 日韩| 久久草av在线| 亚洲伦理在线免费看| 精品91自产拍在线观看一区| 色婷婷综合久久久久中文一区二区 | 手机在线免费看毛片| www.com日本| 国产激情一区二区三区四区 | 一区二区三区鲁丝不卡| 日韩欧美不卡在线观看视频| 欧美 日韩 国产 一区二区三区| 中文字幕天堂网| 成人综合日日夜夜| 日本最新不卡在线| 日韩伦理电影网| 精品国精品自拍自在线| 在线观看亚洲精品| 国产午夜精品久久久久久久久| 波多野结衣电影免费观看| 激情六月婷婷综合| 亚洲国产日韩一区二区| 欧美国产视频在线| 日韩欧美一区电影| 欧洲亚洲国产日韩| 亚洲熟女少妇一区二区| 黄色国产在线观看|