이 콘텐츠는 선택한 언어로 제공되지 않습니다.

2.5.3. vmstat


For a more concise understanding of system performance, try vmstat. With vmstat, it is possible to get an overview of process, memory, swap, I/O, system, and CPU activity in one line of numbers:
 procs memory swap io system cpu r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 5276 315000 130744 380184 1 1 2 24 14 50 1 1 47 0 
The first line divides the fields in six categories, including process, memory, swap, I/O, system, and CPU related statistics. The second line further identifies the contents of each field, making it easy to quickly scan data for specific statistics.
The process-related fields are:
  • r -- The number of runnable processes waiting for access to the CPU
  • b -- The number of processes in an uninterruptible sleep state
The memory-related fields are:
  • swpd -- The amount of virtual memory used
  • free -- The amount of free memory
  • buff -- The amount of memory used for buffers
  • cache -- The amount of memory used as page cache
The swap-related fields are:
  • si -- The amount of memory swapped in from disk
  • so -- The amount of memory swapped out to disk
The I/O-related fields are:
  • bi -- Blocks sent to a block device
  • bo -- Blocks received from a block device
The system-related fields are:
  • in -- The number of interrupts per second
  • cs -- The number of context switches per second
The CPU-related fields are:
  • us -- The percentage of the time the CPU ran user-level code
  • sy -- The percentage of the time the CPU ran system-level code
  • id -- The percentage of the time the CPU was idle
  • wa -- I/O wait
When vmstat is run without any options, only one line is displayed. This line contains averages, calculated from the time the system was last booted.
However, most system administrators do not rely on the data in this line, as the time over which it was collected varies. Instead, most administrators take advantage of vmstat's ability to repetitively display resource utilization data at set intervals. For example, the command vmstat 1 displays one new line of utilization data every second, while the command vmstat 1 10 displays one new line per second, but only for the next ten seconds.
In the hands of an experienced administrator, vmstat can be used to quickly determine resource utilization and performance issues. But to gain more insight into those issues, a different kind of tool is required -- a tool capable of more in-depth data collection and analysis.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.