搜索

首页  >  问答  >  正文

linux 负载很高.

使用SSH 命令操作也没感觉 很慢.就是访问
top - 16:10:43 up 50 min, 2 users, load average: 4.72, 4.58, 4.35
Tasks: 114 total, 1 running, 113 sleeping, 0 stopped, 0 zombie
%Cpu(s): 18.7 us, 3.0 sy, 0.0 ni, 37.5 id, 40.6 wa, 0.2 hi, 0.0 si, 0.0 st
KiB Mem: 7693560 total, 1957232 used, 5736328 free, 47460 buffers
KiB Swap: 0 total, 0 used, 0 free. 1291540 cached Mem

Total DISK READ :       0.00 B/s | Total DISK WRITE :       0.00 B/s
Actual DISK READ:       0.00 B/s | Actual DISK WRITE:       0.00 B/s
  TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND                                                                                                                                                                      
 5972 be/4 www         0.00 B/s    0.00 B/s  0.00 % 99.99 % nginx: worker process
    1 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % init
    2 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kthreadd]
    3 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/0]
    4 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/0:0]
    5 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/0:0H]
    7 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcu_sched]
    8 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuos/0]
    9 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuos/1]
   10 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuos/2]
   11 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuos/3]
   12 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcu_bh]
   13 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuob/0]
   14 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuob/1]
   15 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuob/2]
   16 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [rcuob/3]
   17 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/0]
   18 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/0]
   19 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/1]
   20 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/1]
   21 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/1]
   22 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/1:0]
   23 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/1:0H]
   24 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/2]
   25 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/2]
   26 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/2]
   27 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/2:0]
   28 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/2:0H]
   29 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [watchdog/3]
   30 rt/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [migration/3]
   31 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ksoftirqd/3]
   32 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/3:0]
   33 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/3:0H]
   34 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [khelper]
   35 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kdevtmpfs]
   36 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [netns]
   37 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [xenwatch]
   38 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [xenbus]
   39 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [writeback]
   40 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kintegrityd]
   41 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [bioset]
   42 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/u9:0]
   43 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kblockd]
   44 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [kworker/1:1]
   45 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [ata_sff]
   46 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [khubd]
   47 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [md]
   48 be/0 root        0.00 B/s    0.00 B/s  0.00 %  0.00 % [devfreq_wq]


CPU型号 [4核]  Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz | 频率:2793.304 | 二级缓存:25600 KB | Bogomips:5586.60 ×4
内存使用状况

内存参数解读  物理内存:共 7.337 GB , 已用 0.948 GB , 空闲 6.389 GB , 使用率 12.92%

Cache化内存为 0.239 GB , 使用率 3.25 % | Buffers缓冲为 0.052 GB

真实内存使用 0.657 GB , 真实内存空闲 6.68 GB , 使用率 8.96 %

系统平均负载  5.95 4.89 4.70 1/172


Linux 3.13.0-29-generic (ip-172-31-8-92)        09/26/2014      _x86_64_        (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          15.47    0.00    3.42   36.55    0.16   44.40

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
xvdap1           20.57        65.31      1718.47     268101    7054072
ringa_leeringa_lee2767 天前645

全部回复(2)我来回复

  • 大家讲道理

    大家讲道理2017-04-17 11:58:15

    你需要补充一下你机器的配置。比如cpu核数,内存啥的。看起来你的负载并不是很高,才4而已,cpu的wa比较高,说明cpu在等待磁盘io。你使用iostat再看一下磁盘io情况

    回复
    0
  • 黄舟

    黄舟2017-04-17 11:58:15

    负载不算高;安装iotop,然后执行

    #iotop
    

    贴。


      TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND                                                      
    5972 be/4 www         0.00 B/s    0.00 B/s  0.00 % 99.99 % nginx: worker process
    

    看起来是nginx 问题,对这个东西咱不了解,只知道点apache。所以看看这个文章是不是对你有帮助吧:http://www.oschina.net/question/54100_30419

    回复
    0
  • 取消回复