尧图网站设计 尧图网站设计YAOTU DESIGN
ARTICLE DETAIL

资讯详情

深耕网站设计与一线实操的经验洞察。

Linux性能优化工具系列详解(4)

Linux性能优化工具系列详解(4) 接前一篇文章Linux性能优化工具系列详解3本系列内容参考极客时间 —— 倪朋飞 《Linux 性能优化实战》特此致谢系列工具2. mpstat2详情OPTIONS-A This option is equivalent to specifying -n -u -I ALL. This option also implies specifying -N ALL -P ALL unless these options are explicitly set on the command line.选项-A此选项相当于指定-n -u -I ALL。此选项还意味着指定-N ALL -P ALL除非在命令行上明确设置了这些选项。--dec{ 0 | 1 | 2 }Specify the number of decimal places to use (0 to 2, default value is 2).--dec{ 0 | 1 | 2 }指定要使用的小数位数0到2默认值为2。-I { keyword[,...] | ALL }Report interrupts statistics. Possible keywords are CPU, SCPU, and SUM.With the CPU keyword, the number of each individual interrupt received per second by the CPU or CPUs is displayed. Interrupts are those listed in /proc/interrupts file.With the SCPU keyword, the number of each individual software interrupt received per second by the CPU or CPUs is displayed. This option works only with kernels 2.6.31 and later. Software interrupts are those listed in /proc/softirqs file.With the SUM keyword, the mpstat command reports the total number of interrupts per processor. The following values are displayed:CPU Processor number. The keyword all indicates that statistics are calculated as averages among all processors.intr/s Show the total number of interrupts received per second by the CPU or CPUs.The ALL keyword is equivalent to specifying all the keywords above and therefore all the interrupts statistics are displayed.-I { keyword[,...] | ALL }报告中断统计。可能的关键字是CPU、SCPU和SUM。使用CPU关键字显示CPU每秒接收到的每个单独中断的数量。中断是指/proc/interrupts文件中列出的中断。使用SCPU关键字显示CPU每秒接收到的每个单独软件中断的数量。此选项仅适用于2.6.31及更高版本的内核。软件中断是指/proc/softirqs文件中列出的中断。使用SUM关键字mpstat命令报告每个处理器的中断总数。显示以下值CPU —— 处理器编号。关键字all表示统计数据是作为所有处理器之间的平均值计算的。intr/s —— 显示CPU每秒接收到的中断总数。ALL关键字相当于指定了上述所有关键字因此显示了所有中断统计信息。-N { node_list | ALL }Indicate the NUMA nodes for which statistics are to be reported. node_list is a list of comma-separated values or range of values (e.g., 0,2,4-7,12-). Note that node all is the global average among all nodes. The ALL keyword indicates that statistics are to be reported for all nodes.-N { node_list | ALL }指示要报告统计信息的NUMA节点。node_list是逗号分隔的值或值范围的列表例如0,2,4-7,12-。注意all节点是所有节点之间的全局平均值。ALL关键字表示要报告所有节点的统计信息。-n Report summary CPU statistics based on NUMA node placement. The following values are displayed:NODE Logical NUMA node number. The keyword all indicates that statistics are calculated as averages among all nodes.All the other fields are the same as those displayed with option -u (see below).-n报告基于NUMA节点放置的CPU统计摘要。显示以下值NODE —— 逻辑NUMA节点号。关键字all表示统计数据是作为所有节点之间的平均值计算的。所有其它字段与选项-u显示的字段相同见下文。-o JSONDisplay the statistics in JSON (Javascript Object Notation) format. JSON output field order is undefined, and new fields may be added in the future.-o JSON以JSONJavascript对象表示法格式显示统计数据。JSON输出字段顺序未定义将来可能会添加新字段。-P { cpu_list | ALL }Indicate the processors for which statistics are to be reported. cpu_list is a list of comma-separated values or range of values (e.g., 0,2,4-7,12-). Note that processor 0 is the first processor, and processor all is the global average among all processors. The ALL keyword indicates that statistics are to be reported for all processors. Offline processors are not displayed.-P { cpu_list | ALL }指出要报告统计数据的处理器。cpu_list是逗号分隔值或值范围的列表例如0,2,4-7,12-。注意处理器0是第一个处理器处理器all是所有处理器的全局平均值。ALL关键字表示要报告所有处理器的统计数据。不显示离线处理器。-T Display topology elements in the CPU report (see option -u below). The following elements are displayed:CORE Logical core number.SOCK Logical socket number.NODE Logical NUMA node number.-T在CPU报告中显示拓扑元素请参阅下面的选项-u。显示以下元素CORE —— 逻辑核号。SOCK —— 逻辑插槽号。NODE —— 逻辑NUMA节点号。更多选项请看下回。
返回列表