See Listing 1 for an example of running vmstat.
有关运行vmstat的示例,请参见清单1。
After this, the vmstat command was used again.
在此之后,再次使用vmstat命令。
Begin a 2-second interval vmstat log on the test machine.
在测试机上开始一个两秒钟间隔的vmstat日志。
The columns used above are similar to vmstat entry outputs.
上面所使用的列与vmstat条目输出类似。
This information was taken by examining top and vmstat logs.
此信息是通过检查top和vmstat日志得到的。
For example, "vmstat 300 2" collects two five-minute samples.
例如,“vmstat 3002”收集两个五分钟时段的样例。
We kept adding workload until vmstat reported 90%+ CPU usage.
我们不断增加工作负载,直到vmstat报告的CPU使用量超过 90%。
The important fields from the vmstat output are shown below.
vmstat输出的重要字段如下所示。
Table 1. SAR output fields and the corresponding vmstat field.
表1.sar输出字段和对应的vmstat字段。
Let's return to the vmstat output and what is wrong with your system.
让我们回到vmstat的输出,系统究竟出现了什么问题呢?
The next day I get another call and start vmstat again (see Listing 2).
第二天我又接到另一个电话,于是再次启动vmstat(请参见清单2)。
Let's look at the more important fields to analyze in the vmstat output.
让我们看一看vmstat输出中要分析的更为重要的字段。
The following table correlates SAR and vmstat descriptives (see table 1).
下表将sar与vmstat描述内容进行关联(请参见表1)。
This vmstat report shows that there is approximately 114mb of free memory.
vmstat报告表明,空闲内存大约为114MB。
The type of information reported by svmon is slightly different than vmstat.
svmon 所报告的信息类型与vmstat 有一点不同。
The vmstat output does not provide information about computational file pages.
vmstat输出没有提供关于计算性文件分页的信息。
Listings 19 and 20 are sample outputs of the vmstat command on AIX and Solaris.
清单19和20是AIX和Solaris上vmstat命令的输出样例。
The vmstat utility takes two parameters, time interval and count, both integers.
vmstat实用程序接收两个整数参数:timeinterval和count。
With the output from vmstat, the primary thing to look at is the paging information.
在vmstat的输出中,要查看的主要内容是分页信息。
It's important to make the distinction between this and what is reported back in vmstat.
重要的是,应该清楚这个结果与vmstat所报告的结果之间的差异。
All UNIX systems provide tools such as ps and vmstat to provide process and virtual memory statistics.
所有unix系统都提供了ps和vmstat之类的工具,通过它们提供进程和虚拟内存统计信息。
If no parameters are specified, vmstat only lists previous statistics about the system and won't refresh.
如果未指定任何参数,vmstat就只会列出系统的前一次统计数据,而且不会进行刷新。
The vmstat -v command displays the numclient value for a system as a percentage of a system's real memory.
vmstat—v命令可以显示系统的numclient值占系统实际内存的百分比。
Unlike vmstat or iostat, the defaults usually do not give you as much information as you probably would like.
与vmstat或者iostat 不同,该命令的缺省值通常并不会向您提供所需的各种信息。
Time interval specifies the interval vmstat refreshes, and count specifies the maximum times it will refresh.
Timeinterval指定vmstat刷新的间隔,而count 指定它将刷新的最大次数。
You need to understand this concept when trying to interpret the output of commands, such as vmstat and SAR.
您需要理解这一概念,才能尝试解释vmstat和sar等命令的输出。
After waiting a few seconds for the FluidSynth program to activate, the processing of vmstat output can begin.
等待几秒待FluidSynth程序激活后,即可开始处理vmstat输出。
Note: These statistics were generated from 2-second-interval vmstat logs that we ran during the test procedure.
注意:这些统计数字是由我们在测试过程中运行的2秒钟间隔的vmstat日志生成的。
The next section of code creates a pipe from the vmstat command, where the program will read data once per second.
代码的下一部分将通过vmstat命令创建一个管道,程序将在其中每秒读取一次数据。
In this section, I provide an overview of generic UNIX tools available on all UNIX distributions - ps, SAR and vmstat.
在这个部分中,我为在所有unix分发版都可以使用的一些通用UNIX工具提供了概述,包括ps、sar和vmstat。
应用推荐