跟老韩学UbuntuServer2204vmstat指令帮助手册
vmstat指令帮助手册
vmstat可查看ubunt linux的综合性能,是每个从事Linux人员必知必会、需掌握的核心指令之一。
vmstat指令帮助手册如下。VMSTAT(8) System Administration VMSTAT(8) NAME vmstat - Report virtual memory statistics SYNOPSIS vmstat [options] [delay [count]] DESCRIPTION vmstat reports information about processes, memory, paging, block IO, traps, disks and cpu activity. The first report produced gives averages since the last reboot. Additional reports give information on a sam‐ pling period of length delay. The process and memory reports are instantaneous in either case. OPTIONS delay The delay between updates in seconds. If no delay is specified, only one report is printed with the av‐ erage values since boot. count Number of updates. In absence of count, when delay is defined, default is infinite. -a, --active Display active and inactive memory, given a 2.5.41 kernel or better. -f, --forks 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. -m, --slabs Displays slabinfo. -n, --one-header Display the header only once rather than periodically. -s, --stats Displays a table of various event counters and memory statistics. This display does not repeat. -d, --disk Report disk statistics (2.5.70 or above required). -D, --disk-sum Report some summary statistics about disk activity. -p, --partition device Detailed statistics about partition (2.5.70 or above required). -S, --unit character Switches outputs between 1000 (k), 1024 (K), 1000000 (m), or 1048576 (M) bytes. Note this does not change the block (bi/bo) fields, which are always measured in blocks. -t, --timestamp Append timestamp to each line -w, --wide Wide output mode (useful for systems with higher amount of memory, where the default output mode suffers from unwanted column breakage). The output is wider than 80 characters per line. -V, --version Display version information and exit. -h, --help Display help and exit. FIELD DESCRIPTION FOR VM MODE Procs r: The number of runnable processes (running or waiting for run time). b: The number of processes blocked waiting for I/O to complete. Memory These are affected by the --unit option. swpd: the amount of swap 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 These are affected by the --unit option. 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, included in idle. st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown. 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 NOTES vmstat does not require special permissions. These reports are intended to help identify system bottlenecks. Linux vmstat does not count itself as a run‐ ning 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 FILES /proc/meminfo /proc/stat /proc/*/stat SEE ALSO free(1), iostat(1), mpstat(1), ps(1), sar(1), top(1) BUGS Does not tabulate the block io per device or count the number of system calls. AUTHORS Written by Henry Ware ⟨al172@yfn.ysu.edu⟩. Fabian Frédérick ⟨ffrederick@users.sourceforge.net⟩ (diskstat, slab, partitions...) REPORTING BUGS Please send bug reports to ⟨procps@freelists.org⟩ procps-ng 2020-06-04 VMSTAT(8)
1949主席进京赶考,游览颐和园突然生气不游了!不游了颐和园没有游人,毛主席很生气你把水排干了,鱼儿还有啥安全?1949年进京,游览颐和园,毛主席为何突然生气不游了!不游了!从西柏坡到北京,其空间距离不足300公里,驾车也就几个小时的
2022房山骑行线路之生态幽谷线安利一条北京房山骑行的生态幽谷线起点良坨路途经京昆路108国道终点堂上村距离约80公里用时约7小时注意事项骑车出行前检查好车况,规划好线路。做好个人安全防护,带好水壶,在骑行过程中
世界上最好的22道菜,你一生必须尝试一次听说过美食旅游吗?简单地说,就是走到哪里吃到哪里,这种追求被归类为体验式旅行。在当今时代,在决定旅行地点时,食物等同于住宿和风景。就像有最好的酒店和最好的参观地点的清单一样,也应该
四个春天春天,是油菜花开的季节几年前,在贵州工作的友人曾拍过大片的油菜花给我,自此,对贵州的印象便是大片大片金黄的油菜花。书里的图片都是作者拍摄的,自然淳朴的烟火气,我停留在作者父母在油菜
春满古村春风扬,悠悠春日百花香游大余湾石墙青瓦雕栏画栋诗酒乡游大余湾青石板路闲庭信步复得返自然游大余湾看明清古建赏传统民俗品春日百花大余湾之春燕子来时新社,梨花落后清明,池上碧苔三四点,叶底黄鹂一两声,日长飞絮
全国旅行社失信被执行人黑名单(2022年3月)獬豸(xizh)中国古代神兽独角兽,又称任法兽,是中国传统法律的象征,现代仍将其视为法律与公正的偶像,它拥有极高的智慧,能辨是非曲直识善恶忠奸,其头上的独角是勇猛公正司法正大光明的
放弃了经营300个W的农家乐,选择做一名旅行博主,值吗?大家好!我是雪艳冉,重庆万州人。今年春节过完后,我就萌生了一个大胆的想法旅行。3月15日,我连招呼都没跟大家打,说走就走,直接放弃了农家乐的股份兼经营管理工作职位,也可以说,直接放
飞机上有4种隐藏服务,主动向空姐提才能享受到,看完涨知识中国自从经历了改革开放以后,人们的生活变得越来越好。由于物质基础决定上层建筑,因此人们有了一定的经济基础以后,也开始体验精神上的享受,比如有些小伙伴会选择外出游玩,也有一些小伙伴会
关于开展2022年中国旅游日活动的通知各省自治区直辖市文化和旅游厅(局),新疆生产建设兵团文化体育广电和旅游局2022年5月19日是第12个中国旅游日。为贯彻党中央国务院关于统筹新冠肺炎疫情防控和经济社会发展的决策部署
瑞典树屋酒店,人鸟共居一棵树在瑞典有一座由350个鸟巢组成的树屋酒店,外形是积木的球体结构。该酒店的最大的特点是人鸟共同居住,外面一个个的积木块是鸟儿的巢穴,而内部空间是人们居住的酒店空间。酒店有一座倾斜的悬
木棍上的体操头条带你乐享河北河北文旅看图识景我是大美河北推荐官吴庄村高跷起源于保定徐水崔庄镇吴庄村。吴庄村高跷以武高跷著称,武跷常表演单脚跳劈叉过障碍等高难技巧有的则用单脚表演,从四张高桌上一