linux – 高负载平均值,CPU利用率适中,几乎没有IO

前端之家收集整理的这篇文章主要介绍了linux – 高负载平均值,CPU利用率适中,几乎没有IO前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
linux下使用很少cpu的高负载平均值的通常解释是IO太多(或者更合适 uninterruptable sleep).

我有一个运行在2核虚拟机群集上的服务,它表现出适度的cpu使用率(约55-70%空闲)但高于2个负载平均值,同时经历接近零的IO,适度的上下文切换,以及没有交换.使用ps进行轮询我从未在进程状态列中看到D.

该服务是在独角兽下运行的ruby 1.9.它连接到两个上游postgres数据库,这些数据库提供非常快速的avg语句执行(~0.5ms).该服务记录的请求持续时间大约是我们在性能测试网络上的较高压力负载下所证明的生产量的两倍.唯一看起来不稳定的监控信号是负载平均值(当然还有平均响应持续时间),其他所有信息(cpu,内存,io,网络,cswitch,intr)都是名义和匹配的投影.

系统是Ubuntu 10.04.4 LTS“清醒”. uname是Linux dirsvc0 2.6.32-32-server#62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011 x86_64 GNU / Linux.管理程序是VMWare ESX 5.1.

更新:@ewwhite要求的更多信息.存储是映射到连接到NetApp的vm主机上的NFS安装的虚拟磁盘设备.我要指出的是,所有迹象都表明没有重要的磁盘IO发生.该服务读写网络套接字(~200KB / s)并进行普通访问和错误记录(速率约为20KB / s). vm主机有一对千兆端口,连接到两个机架式交换机顶部,每个交换机都有四个千兆端口连接到核心路由器,所有这些都是铜线.每个vm主机具有24(4×6)个物理内核和150GB内存,通常托管大约30个大小相似的vm来宾,运行各种不同的服务.在生产中,这些主机永远不会在内存上过度提交,只能在cpu上过度提交.

我很乐意解释高负荷的想法.

这是今天正午两小时窗口的一些提取sar数据:

sar -q#load average

  1. runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15
  2. 12:05:01 PM 1 173 1.15 2.41 2.48
  3. 12:15:01 PM 0 173 0.96 1.56 1.99
  4. 12:25:01 PM 2 173 2.60 2.49 2.21
  5. 12:35:01 PM 1 173 1.44 2.10 2.06
  6. 12:45:01 PM 0 173 3.66 3.31 2.56
  7. 12:55:01 PM 0 173 3.05 2.66 2.43
  8. 01:05:01 PM 0 174 1.37 2.35 2.36
  9. 01:15:01 PM 0 173 3.06 3.07 2.60
  10. 01:25:01 PM 2 173 5.03 6.50 4.50
  11. 01:35:01 PM 0 173 4.26 5.61 4.98
  12. 01:45:01 PM 8 173 4.61 4.46 4.48
  13. 01:55:01 PM 0 173 3.30 3.60 3.92
  14. 02:05:01 PM 1 173 2.51 2.62 3.15

sar#cpu

  1. cpu %user %nice %system %iowait %steal %idle
  2. 12:05:01 PM all 31.31 0.60 2.18 0.02 0.00 65.89
  3. 12:15:01 PM all 27.51 0.60 2.07 0.02 0.00 69.79
  4. 12:25:01 PM all 28.09 0.61 1.90 0.03 0.00 69.36
  5. 12:35:01 PM all 32.04 0.67 2.26 0.02 0.00 65.02
  6. 12:45:01 PM all 33.44 0.69 2.61 0.02 0.00 63.24
  7. 12:55:01 PM all 30.62 0.63 2.14 0.02 0.00 66.59
  8. 01:05:01 PM all 29.42 0.61 2.07 0.03 0.00 67.87
  9. 01:15:01 PM all 31.93 0.62 2.39 0.02 0.00 65.05
  10. 01:25:01 PM all 41.60 0.82 3.65 0.03 0.00 53.90
  11. 01:35:01 PM all 43.14 0.88 3.68 0.03 0.00 52.28
  12. 01:45:01 PM all 38.38 0.79 3.43 0.02 0.00 57.39
  13. 01:55:01 PM all 30.65 0.61 2.23 0.03 0.00 66.49
  14. 02:05:01 PM all 29.17 0.58 2.10 0.03 0.00 68.12

sar -d #disk

  1. DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util
  2. 12:05:01 PM dev8-0 1.37 0.00 35.94 26.14 0.00 3.09 1.98 0.27
  3. 12:15:01 PM dev8-0 1.65 0.00 39.89 24.23 0.00 2.96 1.98 0.33
  4. 12:25:01 PM dev8-0 1.26 0.00 33.39 26.57 0.00 2.89 1.79 0.22
  5. 12:35:01 PM dev8-0 1.33 0.00 35.23 26.52 0.00 3.15 1.82 0.24
  6. 12:45:01 PM dev8-0 1.68 0.00 42.31 25.23 0.00 2.95 1.89 0.32
  7. 12:55:01 PM dev8-0 1.44 0.00 35.76 24.86 0.00 3.20 1.88 0.27
  8. 01:05:01 PM dev8-0 1.43 0.00 35.57 24.93 0.00 2.17 1.46 0.21
  9. 01:15:01 PM dev8-0 1.74 0.00 43.13 24.74 0.01 3.88 2.15 0.37
  10. 01:25:01 PM dev8-0 1.39 0.00 35.36 25.44 0.01 3.65 2.42 0.34
  11. 01:35:01 PM dev8-0 1.32 0.00 33.74 25.65 0.00 3.39 2.09 0.28
  12. 01:45:01 PM dev8-0 1.48 0.00 37.20 25.20 0.01 3.92 2.26 0.33
  13. 01:55:01 PM dev8-0 1.62 0.00 39.36 24.35 0.01 3.27 1.70 0.27
  14. 02:05:01 PM dev8-0 1.42 0.00 34.72 24.51 0.00 3.28 2.13 0.30

sar -n #network

  1. IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s
  2. 12:05:01 PM eth0 365.52 359.86 236.91 227.35 0.00 0.00 0.00
  3. 12:15:01 PM eth0 344.55 337.10 221.20 206.47 0.00 0.00 0.00
  4. 12:25:01 PM eth0 357.81 352.76 229.83 216.22 0.00 0.00 0.00
  5. 12:35:01 PM eth0 372.62 366.34 239.95 227.99 0.00 0.00 0.00
  6. 12:45:01 PM eth0 388.65 378.51 252.11 235.81 0.00 0.00 0.00
  7. 12:55:01 PM eth0 364.50 359.19 233.63 222.82 0.00 0.00 0.00
  8. 01:05:01 PM eth0 361.08 353.88 231.75 218.89 0.00 0.00 0.00
  9. 01:15:01 PM eth0 370.41 363.19 240.53 224.16 0.00 0.00 0.00
  10. 01:25:01 PM eth0 357.67 352.20 230.37 213.57 0.00 0.00 0.00
  11. 01:35:01 PM eth0 354.89 348.58 226.29 214.61 0.00 0.00 0.00
  12. 01:45:01 PM eth0 355.49 344.98 228.41 211.27 0.00 0.00 0.00
  13. 01:55:01 PM eth0 335.96 331.13 213.85 204.26 0.00 0.00 0.00
  14. 02:05:01 PM eth0 323.03 314.49 208.12 194.81 0.00 0.00 0.00

sar -w#context开关

  1. proc/s cswch/s
  2. 12:05:01 PM 0.97 2382.38
  3. 12:15:01 PM 2.58 2415.16
  4. 12:25:01 PM 0.84 2406.79
  5. 12:35:01 PM 0.84 2371.04
  6. 12:45:01 PM 2.70 2414.09
  7. 12:55:01 PM 0.84 2385.57
  8. 01:05:01 PM 1.20 2419.94
  9. 01:15:01 PM 2.57 2387.75
  10. 01:25:01 PM 0.85 2164.65
  11. 01:35:01 PM 0.84 2156.29
  12. 01:45:01 PM 2.53 2251.43
  13. 01:55:01 PM 1.01 2331.93
  14. 02:05:01 PM 0.96 2323.19

sar -B#paging

  1. pgpgin/s pgpgout/s fault/s majflt/s pgfree/s pgscank/s pgscand/s pgsteal/s %vmeff
  2. 12:05:01 PM 0.00 17.97 549.43 0.00 289.21 0.00 0.00 0.00 0.00
  3. 12:15:01 PM 0.00 19.95 1179.08 0.00 405.61 0.00 0.00 0.00 0.00
  4. 12:25:01 PM 0.00 16.69 456.71 0.00 217.63 0.00 0.00 0.00 0.00
  5. 12:35:01 PM 0.00 17.61 480.42 0.00 240.01 0.00 0.00 0.00 0.00
  6. 12:45:01 PM 0.00 21.15 1210.09 0.00 424.96 0.00 0.00 0.00 0.00
  7. 12:55:01 PM 0.00 17.88 489.83 0.00 256.39 0.00 0.00 0.00 0.00
  8. 01:05:01 PM 0.00 17.79 624.89 0.00 387.26 0.00 0.00 0.00 0.00
  9. 01:15:01 PM 0.00 21.57 1168.87 0.00 393.34 0.00 0.00 0.00 0.00
  10. 01:25:01 PM 0.00 17.68 466.03 0.00 235.07 0.00 0.00 0.00 0.00
  11. 01:35:01 PM 0.00 16.87 435.24 0.00 199.43 0.00 0.00 0.00 0.00
  12. 01:45:01 PM 0.00 18.60 1125.69 0.00 432.85 0.00 0.00 0.00 0.00
  13. 01:55:01 PM 0.00 19.68 596.62 0.00 272.75 0.00 0.00 0.00 0.00
  14. 02:05:01 PM 0.00 17.36 511.80 0.00 243.83 0.00 0.00 0.00 0.00

sar -r#memory

  1. kbmemfree kbmemused %memused kbbuffers kbcached kbcommit %commit
  2. 12:05:01 PM 1017364 3041608 74.94 225564 1773324 1194728 16.64
  3. 12:15:01 PM 1014992 3043980 74.99 225564 1777268 1193688 16.63
  4. 12:25:01 PM 1009504 3049468 75.13 225564 1781360 1194504 16.64
  5. 12:35:01 PM 999484 3059488 75.38 225564 1785652 1194520 16.64
  6. 12:45:01 PM 994764 3064208 75.49 225564 1790136 1194864 16.65
  7. 12:55:01 PM 993772 3065200 75.52 225564 1794288 1194296 16.64
  8. 01:05:01 PM 993868 3065104 75.51 225564 1798584 1193428 16.63
  9. 01:15:01 PM 985016 3073956 75.73 225564 1802708 1194388 16.64
  10. 01:25:01 PM 992316 3066656 75.55 225564 1806804 1192996 16.62
  11. 01:35:01 PM 971732 3087240 76.06 225564 1810784 1194272 16.64
  12. 01:45:01 PM 968816 3090156 76.13 225564 1815036 1194556 16.64
  13. 01:55:01 PM 967968 3091004 76.15 225564 1818716 1194924 16.65
  14. 02:05:01 PM 966324 3092648 76.19 225564 1822452 1194516 16.64

ps aufx

  1. USER PID %cpu %MEM VSZ RSS TTY STAT START TIME COMMAND
  2. root 2 0.0 0.0 0 0 ? S Jan28 0:00 [kthreadd]
  3. root 3 0.0 0.0 0 0 ? S Jan28 0:01 \_ [migration/0]
  4. root 4 0.0 0.0 0 0 ? S Jan28 1:01 \_ [ksoftirqd/0]
  5. root 5 0.0 0.0 0 0 ? S Jan28 0:00 \_ [watchdog/0]
  6. root 6 0.0 0.0 0 0 ? S Jan28 0:01 \_ [migration/1]
  7. root 7 0.0 0.0 0 0 ? S Jan28 0:27 \_ [ksoftirqd/1]
  8. root 8 0.0 0.0 0 0 ? S Jan28 0:00 \_ [watchdog/1]
  9. root 9 0.0 0.0 0 0 ? S Jan28 0:37 \_ [events/0]
  10. root 10 0.0 0.0 0 0 ? S Jan28 0:33 \_ [events/1]
  11. root 11 0.0 0.0 0 0 ? S Jan28 0:00 \_ [cpuset]
  12. root 12 0.0 0.0 0 0 ? S Jan28 0:00 \_ [khelper]
  13. root 13 0.0 0.0 0 0 ? S Jan28 0:00 \_ [async/mgr]
  14. root 14 0.0 0.0 0 0 ? S Jan28 0:00 \_ [pm]
  15. root 16 0.0 0.0 0 0 ? S Jan28 0:02 \_ [sync_supers]
  16. root 17 0.0 0.0 0 0 ? S Jan28 0:04 \_ [bdi-default]
  17. root 18 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kintegrityd/0]
  18. root 19 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kintegrityd/1]
  19. root 20 0.0 0.0 0 0 ? S Jan28 0:03 \_ [kblockd/0]
  20. root 21 0.0 0.0 0 0 ? S Jan28 0:12 \_ [kblockd/1]
  21. root 22 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kacpid]
  22. root 23 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kacpi_notify]
  23. root 24 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kacpi_hotplug]
  24. root 25 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ata/0]
  25. root 26 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ata/1]
  26. root 27 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ata_aux]
  27. root 28 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ksuspend_usbd]
  28. root 29 0.0 0.0 0 0 ? S Jan28 0:00 \_ [khubd]
  29. root 30 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kseriod]
  30. root 31 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kmmcd]
  31. root 34 0.0 0.0 0 0 ? S Jan28 0:00 \_ [khungtaskd]
  32. root 35 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kswapd0]
  33. root 36 0.0 0.0 0 0 ? SN Jan28 0:00 \_ [ksmd]
  34. root 37 0.0 0.0 0 0 ? S Jan28 0:00 \_ [aio/0]
  35. root 38 0.0 0.0 0 0 ? S Jan28 0:00 \_ [aio/1]
  36. root 39 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ecryptfs-kthrea]
  37. root 40 0.0 0.0 0 0 ? S Jan28 0:00 \_ [crypto/0]
  38. root 41 0.0 0.0 0 0 ? S Jan28 0:00 \_ [crypto/1]
  39. root 44 0.0 0.0 0 0 ? S Jan28 0:00 \_ [pciehpd]
  40. root 45 0.0 0.0 0 0 ? S Jan28 0:00 \_ [scsi_eh_0]
  41. root 46 0.0 0.0 0 0 ? S Jan28 0:00 \_ [scsi_eh_1]
  42. root 47 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kstriped]
  43. root 50 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kmpathd/0]
  44. root 51 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kmpathd/1]
  45. root 52 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kmpath_handlerd]
  46. root 53 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ksnapd]
  47. root 54 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kondemand/0]
  48. root 55 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kondemand/1]
  49. root 56 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kconservative/0]
  50. root 57 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kconservative/1]
  51. root 213 0.0 0.0 0 0 ? S Jan28 0:24 \_ [mpt_poll_0]
  52. root 274 0.0 0.0 0 0 ? S Jan28 0:00 \_ [mpt/0]
  53. root 295 0.0 0.0 0 0 ? S Jan28 0:00 \_ [scsi_eh_2]
  54. root 310 0.0 0.0 0 0 ? S Jan28 1:41 \_ [jbd2/sda1-8]
  55. root 311 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ext4-dio-unwrit]
  56. root 312 0.0 0.0 0 0 ? S Jan28 0:00 \_ [ext4-dio-unwrit]
  57. root 342 0.0 0.0 0 0 ? S Jan28 0:54 \_ [flush-8:0]
  58. root 627 0.0 0.0 0 0 ? S Jan28 0:00 \_ [kpsmoused]
  59. root 18160 0.0 0.0 0 0 ? S Feb14 0:00 \_ [rpciod/0]
  60. root 18161 0.0 0.0 0 0 ? S Feb14 0:00 \_ [rpciod/1]
  61. root 18162 0.0 0.0 0 0 ? S Feb14 0:00 \_ [nfsiod]
  62. root 1 0.0 0.0 61824 2872 ? Ss Jan28 0:11 /sbin/init
  63. root 372 0.0 0.0 16904 860 ? S Jan28 0:00 upstart-udev-bridge --daemon
  64. root 375 0.0 0.0 17072 1012 ? S<s Jan28 0:00 udevd --daemon
  65. root 1054 0.0 0.0 16860 672 ? S< Jan28 0:00 \_ udevd --daemon
  66. root 18163 0.0 0.0 17068 832 ? S< Feb14 0:00 \_ udevd --daemon
  67. daemon 654 0.0 0.0 8256 644 ? Ss Jan28 0:00 portmap
  68. root 788 0.0 0.0 49260 2592 ? Ss Jan28 0:00 /usr/sbin/sshd -D
  69. root 8095 0.0 0.1 100888 4068 ? Ss 16:03 0:00 \_ sshd: root@pts/0
  70. root 8157 0.0 0.0 11212 2084 pts/0 Ss 16:03 0:00 \_ -bash
  71. root 15777 0.0 0.0 7172 1084 pts/0 R+ 17:28 0:00 \_ ps aufx
  72. statd 808 0.0 0.0 10392 844 ? Ss Jan28 0:00 rpc.statd -L
  73. root 829 0.0 0.0 140 32 ? Ss Jan28 0:16 runsvdir -P /etc/service log: .....................................................................................................
  74. root 834 0.0 0.0 116 32 ? Ss Jan28 0:00 \_ runsv chef-client
  75. root 838 0.0 0.0 136 48 ? S Jan28 0:00 \_ svlogd -tt ./main
  76. root 30898 0.2 1.8 192296 75736 ? S 01:57 2:25 \_ /usr/bin/ruby1.8 /usr/bin/chef-client -i 1800 -s 60 -L /var/log/chef/client.log
  77. root 832 0.0 0.0 6080 656 tty4 Ss+ Jan28 0:00 /sbin/getty -8 38400 tty4
  78. root 841 0.0 0.0 6080 656 tty5 Ss+ Jan28 0:00 /sbin/getty -8 38400 tty5
  79. root 844 0.0 0.0 6080 656 tty2 Ss+ Jan28 0:00 /sbin/getty -8 38400 tty2
  80. root 845 0.0 0.0 6080 660 tty3 Ss+ Jan28 0:00 /sbin/getty -8 38400 tty3
  81. root 847 0.0 0.0 6080 656 tty6 Ss+ Jan28 0:00 /sbin/getty -8 38400 tty6
  82. root 849 0.0 0.0 21076 1044 ? Ss Jan28 0:04 cron
  83. daemon 853 0.0 0.0 18884 468 ? Ss Jan28 0:00 atd
  84. root 864 0.0 0.0 11284 640 ? Ss Jan28 2:10 /usr/sbin/irqbalance
  85. root 890 0.0 0.0 112412 1908 ? Ssl Jan28 5:09 /usr/sbin/automount
  86. root 908 0.0 0.0 28016 976 ? Ss Jan28 0:00 Nginx: master process /usr/sbin/Nginx
  87. www-data 910 0.0 0.0 64532 3064 ? S Jan28 0:00 \_ Nginx: worker process
  88. root 922 0.0 0.0 169668 2584 ? Ssl Jan28 0:34 /usr/sbin/nscd
  89. mail 943 0.0 0.0 11888 648 ? S Jan28 0:00 /usr/sbin/nullmailer-send -d
  90. root 971 0.0 1.1 152036 46264 ? Sl Jan28 36:07 splunkd -p 8089 start
  91. root 972 0.0 0.0 49180 3512 ? Ss Jan28 0:00 \_ splunkd -p 8089 start
  92. root 1160 0.0 0.0 14888 1276 ? Ss Jan28 19:31 /usr/lib/vmware-tools/sbin64/vmware-guestd --background /var/run/vmware-guestd.pid
  93. ntp 1214 0.0 0.0 19700 1268 ? Ss Jan28 1:21 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /var/lib/ntp/ntp.conf.dhcp -u 103:107
  94. root 1231 0.0 0.3 21164 12980 ? SLs Jan28 0:00 /usr/sbin/memlockd -u memlockd
  95. scs 1270 1.2 2.3 187788 96228 ? SNl Jan28 537:27 /usr/bin/ruby /opt/wp/roles/scs/src/dev/scs/bin/server.rb -p 8843
  96. root 1309 0.0 0.0 6080 656 tty1 Ss+ Jan28 0:00 /sbin/getty -8 38400 tty1
  97. dirsvc 27448 0.1 1.2 177408 50748 ? Sl Feb20 8:57 narwhal master --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.19/confi
  98. dirsvc 13003 2.5 1.2 180012 49128 ? Sl 16:57 0:47 \_ narwhal worker[1] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  99. dirsvc 13460 2.5 1.2 180108 49236 ? Sl 17:05 0:36 \_ narwhal worker[9] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  100. dirsvc 13637 2.4 1.2 180008 49096 ? Sl 17:08 0:29 \_ narwhal worker[3] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  101. dirsvc 13650 2.9 1.2 180172 49420 ? Sl 17:08 0:35 \_ narwhal worker[11] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.
  102. dirsvc 13701 3.1 1.2 180172 49188 ? Sl 17:10 0:35 \_ narwhal worker[13] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.
  103. dirsvc 13731 2.7 1.2 181556 50628 ? Sl 17:10 0:29 \_ narwhal worker[7] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  104. dirsvc 13770 2.8 1.2 179400 50352 ? Sl 17:11 0:29 \_ narwhal worker[8] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  105. dirsvc 13778 3.3 1.2 180104 49172 ? Sl 17:11 0:34 \_ narwhal worker[5] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  106. dirsvc 13826 2.6 1.2 181556 50672 ? Sl 17:12 0:25 \_ narwhal worker[0] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  107. dirsvc 13939 2.8 1.2 177948 48848 ? Sl 17:13 0:25 \_ narwhal worker[4] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  108. dirsvc 13971 3.2 1.4 189052 58292 ? Sl 17:13 0:28 \_ narwhal worker[12] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.
  109. dirsvc 13982 2.5 1.2 177792 48780 ? Sl 17:14 0:22 \_ narwhal worker[6] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  110. dirsvc 15316 3.0 1.2 180072 49128 ? Sl 17:20 0:15 \_ narwhal worker[2] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.1
  111. dirsvc 15381 2.0 1.2 179944 48928 ? Sl 17:21 0:08 \_ narwhal worker[14] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.
  112. dirsvc 15743 3.5 1.1 177624 48596 ? Sl 17:28 0:00 \_ narwhal worker[10] --port 8862 -c /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.
  113. dirsvc 27461 0.1 1.3 235884 54744 ? Sl Feb20 9:20 /opt/ruby-1.9.2/bin/ruby /opt/wp/roles/directory/src/dev/directory/vendor/bundle/ruby/1.9.1/gems/wp-directory-svc-2.1.19/gem-bin/wo
  114. root 11068 0.0 0.0 130480 1720 ? Sl 04:20 0:00 rsyslogd -c4
  115. zabbix 18062 0.0 0.0 9908 728 ? SN 11:41 0:00 /usr/sbin/zabbix_agentd
  116. zabbix 18063 0.0 0.0 9908 756 ? SN 11:41 0:12 \_ /usr/sbin/zabbix_agentd
  117. zabbix 18064 0.0 0.0 9980 1044 ? SN 11:41 0:03 \_ /usr/sbin/zabbix_agentd
  118. zabbix 18065 0.0 0.0 9980 1044 ? SN 11:41 0:03 \_ /usr/sbin/zabbix_agentd
  119. zabbix 18066 0.0 0.0 9980 1044 ? SN 11:41 0:03 \_ /usr/sbin/zabbix_agentd
  120. zabbix 18067 0.0 0.0 9908 660 ? SN 11:41 0:00 \_ /usr/sbin/zabbix_agentd

编辑:更多信息请求:

  1. $dpkg --get-selections | grep vmware
  2. vmware-open-vm-tools-common install
  3. vmware-open-vm-tools-kmod-2.6.32-32-server install
  4.  
  5. $cat /proc/cpuinfo
  6. processor : 0
  7. vendor_id : GenuineIntel
  8. cpu family : 6
  9. model : 44
  10. model name : Intel(R) Xeon(R) cpu X5660 @ 2.80GHz
  11. stepping : 2
  12. cpu MHz : 2800.099
  13. cache size : 12288 KB
  14. fpu : yes
  15. fpu_exception : yes
  16. cpuid level : 11
  17. wp : yes
  18. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat
  19. bogomips : 5600.19
  20. clflush size : 64
  21. cache_alignment : 64
  22. address sizes : 40 bits physical,48 bits virtual
  23. power management:
  24.  
  25. processor : 1
  26. vendor_id : GenuineIntel
  27. cpu family : 6
  28. model : 44
  29. model name : Intel(R) Xeon(R) cpu X5660 @ 2.80GHz
  30. stepping : 2
  31. cpu MHz : 2800.099
  32. cache size : 12288 KB
  33. fpu : yes
  34. fpu_exception : yes
  35. cpuid level : 11
  36. wp : yes
  37. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat
  38. bogomips : 5600.19
  39. clflush size : 64
  40. cache_alignment : 64
  41. address sizes : 40 bits physical,48 bits virtual
  42. power management:

解决方法

负载平均值基于在运行队列中等待的进程.这意味着如果您的进程通常使用小数时间片,则可以看到高负载平均值而没有高cpu利用率.

最好的例子是邮件.发送消息所需的cpu时间量非常有限,但当数千条邮件在系统中移动时(特别是如果邮件守护程序分叉处理每个邮件),运行队列会变得非常长.通常会看到运行良好,响应迅速的邮件服务器,平均负载为25,50到100.

对于Web服务器,我将页面响应时间用作主要指标,不要担心负载平均值.在现代调度程序中,负载平均值小于核心数量的两倍通常不会产生负面影响.您可能希望尝试每个VM的核心数与VM的总数.一些应用程序将受益于少数计算机上的许多核心,而其他应用程序在少数核心和许多实例中更好.

猜你在找的Linux相关文章