歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux vmstat監控系統負載

Linux vmstat監控系統負載

日期:2017/2/28 15:59:51   编辑:Linux教程

使用vmstat監控系統負載

環境:

[plain]

  1. [Oracle@simpleit ~]$ uname -a
  2. Linux simpleit.domain.cn 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 athlon i386 GNU/Linux
  3. [oracle@simpleit ~]$ cat /etc/RedHat-release
  4. CentOS release 5.5 (Final)

[plain]

  1. [oracle@simpleit ~]$ vmstat 5 5
  2. procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
  3. r b swpd free buff cache si so bi bo in cs us sy id wa st
  4. 0 0 0 346220 28848 493544 0 0 109 55 1014 155 0 1 98 1 0
  5. 0 0 0 346220 28848 493544 0 0 0 21 698 93 0 0 100 0 0
  6. 0 0 0 346220 28856 493544 0 0 0 48 703 102 0 0 100 0 0
  7. 0 0 0 346220 28856 493544 0 0 0 21 693 94 0 0 100 0 0
  8. 0 0 0 346220 28860 493544 0 0 0 30 701 95 0 0 100 0 0
  9. DESCRIPTION
  10. vmstat reports information about processes, memory, paging, block IO, traps, and cpu activ-ity.
  11. FIELD DESCRIPTION FOR VM MODE
  12. Procs
  13. r: The number of processes waiting for run time.
  14. b: The number of processes in uninterruptible sleep.
  15. Memory
  16. swpd: the amount of virtual memory used.
  17. free: the amount of idle memory.
  18. buff: the amount of memory used as buffers.
  19. cache: the amount of memory used as cache.
  20. inact: the amount of inactive memory. (-a option)
  21. active: the amount of active memory. (-a option)
  22. Swap
  23. si: Amount of memory swapped in from disk (/s).
  24. so: Amount of memory swapped to disk (/s).
  25. IO
  26. bi: Blocks received from a block device (blocks/s).
  27. bo: Blocks sent to a block device (blocks/s).
  28. System
  29. in: The number of interrupts per second, including the clock.
  30. cs: The number of context switches per second.
  31. CPU
  32. These are percentages of total CPU time.
  33. us: Time spent running non-kernel code. (user time, including nice time)
  34. sy: Time spent running kernel code. (system time)
  35. id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.
  36. wa: Time spent waiting for IO. Prior to Linux 2.5.41, included in idle.
  37. st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.
Copyright © Linux教程網 All Rights Reserved