婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

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

Unix vmstat 命令詳解寶典

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

在一個多CPU系統(tǒng)中,vmstat統(tǒng)計所有個數(shù)的CPU的平均輸出.為每個進程進行統(tǒng)計.沒有參數(shù)時,vmstat顯示每一行是自從系統(tǒng)啟動以后的虛擬內(nèi)存的活動情況.
vmstat 的語法我們可以通過linux的man 命令來查看。
將man 的結(jié)果導(dǎo)入到指定的文本
# 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

一些標(biāo)準(zhǔn)說明:

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

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

一般情況下,導(dǎo)致CPU資源不足都是應(yīng)用程序的問題.比如一些SQL語句不合理等等都會造成這樣的現(xiàn)象.

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

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

要注意的是,Linux 內(nèi)存在使用后不會釋放,所以一般會看到內(nèi)存使用率很高,要判斷l(xiāng)inux 內(nèi)存是否正常,需要通過對swap 交換區(qū)的交換頻率來看。

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

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Unix vmstat 命令詳解寶典》,本文關(guān)鍵詞  Unix,vmstat,命令,詳解,寶典,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Unix vmstat 命令詳解寶典》相關(guān)的同類信息!
  • 本頁收集關(guān)于Unix vmstat 命令詳解寶典的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av
    在线观看成人小视频| 亚洲一区av在线| 亚洲成a人片在线观看中文| 成人动漫在线一区| 久久久久久久久久久黄色| 欧美福利视频导航| 天堂va蜜桃一区二区三区 | 3d动漫精品啪啪| 97久久超碰国产精品电影| 国产成人在线观看| 国产不卡在线视频| 国产精品亚洲一区二区三区在线 | 久久国产麻豆精品| 久久99精品视频| 丰满亚洲少妇av| 91网站黄www| 日韩和欧美一区二区三区| 久久国产尿小便嘘嘘尿| 欧美性xxxxxxxx| 国产精品久久久久久久久免费樱桃 | 26uuuu精品一区二区| 91精品国产免费久久综合| 日韩视频免费观看高清在线视频| 欧美一级欧美三级在线观看| 久久综合久久综合久久| 中文字幕日本乱码精品影院| 国产一区二区三区久久久| 九九精品一区二区| 成人免费看视频| 欧美一区二区在线不卡| 久久久久久久久伊人| 亚洲精品一二三| 亚洲第一福利视频在线| 国产在线不卡视频| 91在线国内视频| 7878成人国产在线观看| 国产精品久久久久久亚洲伦| 天天色 色综合| 色综合久久天天综合网| 国产亚洲人成网站| 日本亚洲最大的色成网站www| www.日韩精品| 久久久午夜精品| 日韩va欧美va亚洲va久久| 精品视频一区二区不卡| 夜夜揉揉日日人人青青一国产精品| 岛国av在线一区| 欧美国产成人精品| 亚洲激情男女视频| 高清国产一区二区三区| 久久久91精品国产一区二区精品| 蜜臀av性久久久久蜜臀aⅴ流畅| 在线观看91精品国产麻豆| 亚洲444eee在线观看| 欧美日本一区二区三区| 午夜a成v人精品| 欧美私模裸体表演在线观看| 亚洲二区在线视频| 51精品国自产在线| 欧美日韩国产一区| 亚洲女厕所小便bbb| 99久久国产综合精品女不卡| 国产精品热久久久久夜色精品三区| 国产剧情一区二区| 成人欧美一区二区三区1314| 91精品福利视频| 午夜日韩在线电影| 2021国产精品久久精品| 成人黄色777网| 国产精品久久精品日日| 欧洲激情一区二区| 久久精品国产精品青草| 久久精品欧美一区二区三区不卡| 国产a久久麻豆| 亚洲一区二区在线观看视频| 精品成人一区二区| 在线日韩一区二区| 国产69精品久久777的优势| 亚洲国产一区二区视频| 久久影视一区二区| 欧美日韩dvd在线观看| 9l国产精品久久久久麻豆| 国产综合久久久久久久久久久久| 亚洲精品乱码久久久久久黑人| 26uuu亚洲综合色| aaa国产一区| 99久久免费国产| 国产成人亚洲综合a∨婷婷图片| 性欧美疯狂xxxxbbbb| 一级女性全黄久久生活片免费| 欧美精品一区二区三区四区| 欧美在线看片a免费观看| 色婷婷综合五月| 欧洲av在线精品| 日本韩国欧美在线| 97国产一区二区| 99麻豆久久久国产精品免费 | 中文字幕电影一区| 精品成人在线观看| 日韩女优av电影在线观看| 欧美无砖专区一中文字| 欧美精品久久久久久久多人混战| 色久优优欧美色久优优| 91精彩视频在线| 欧美色图12p| 精品乱人伦小说| 亚洲免费观看在线观看| 国产精品久久久久久久久免费桃花 | 久久久.com| 亚洲国产精品高清| 亚洲综合色视频| 麻豆成人免费电影| 91在线一区二区三区| 欧美久久久久中文字幕| 久久久久久**毛片大全| 亚洲精品成人精品456| 五月天欧美精品| 国产精品一区在线观看乱码| 成人精品小蝌蚪| 3d成人动漫网站| 亚洲欧美另类在线| 精品一区二区影视| 在线观看国产日韩| 欧美激情中文字幕| 日本不卡的三区四区五区| 成人午夜视频福利| 3atv一区二区三区| 亚洲精品中文在线观看| 毛片不卡一区二区| 一本久久a久久精品亚洲| 久久影院视频免费| 日韩国产欧美在线视频| 一本到三区不卡视频| 国产片一区二区三区| 精品亚洲成a人| 日韩精品最新网址| 亚洲综合色网站| 91浏览器在线视频| 亚洲国产精品av| 久久精品久久精品| 欧美疯狂性受xxxxx喷水图片| 一区二区中文视频| 91一区二区三区在线观看| 国产精品成人免费| 色综合久久综合中文综合网| 国产免费久久精品| 一本色道久久综合亚洲精品按摩| 国产精品福利影院| 色婷婷综合久久久久中文一区二区| 国产精品三级久久久久三级| 成a人片亚洲日本久久| 一区二区在线观看不卡| 欧美另类z0zxhd电影| 久久精品二区亚洲w码| 欧美激情中文不卡| 91九色最新地址| 美女免费视频一区二区| 国产精品狼人久久影院观看方式| 国产精品久久久久久久久快鸭| 成人a级免费电影| 亚洲国产一二三| 久久综合色8888| 在线观看日韩电影| 激情欧美日韩一区二区| 国产精品人妖ts系列视频| 欧美日韩卡一卡二| 成人性生交大片免费看视频在线| 一个色在线综合| 国产日韩av一区| 日韩一区二区免费高清| 99精品黄色片免费大全| 六月婷婷色综合| 性感美女极品91精品| 国产精品天美传媒沈樵| 欧美变态tickling挠脚心| 在线视频国产一区| 成人97人人超碰人人99| 激情综合亚洲精品| 肉丝袜脚交视频一区二区| 中文字幕日本不卡| 中文字幕乱码一区二区免费| 日韩一区二区在线看| 欧美日韩激情一区| 在线亚洲一区二区| 国产一区二区精品在线观看| 天天综合天天做天天综合| 一区二区三区欧美久久| 中文字幕精品一区二区精品绿巨人 | 91国产福利在线| 99久久er热在这里只有精品15| 久久精品国产亚洲高清剧情介绍| 亚洲 欧美综合在线网络| 又紧又大又爽精品一区二区| 中文字幕一区二区三中文字幕| 精品久久一二三区| 国产欧美一区二区三区在线看蜜臀| 欧美大片一区二区| 国产视频911| 国产精品伦一区二区三级视频| 国产日韩三级在线|