性能问答>【已结算】请教一个负载高的问题【赏金20元】>
5回复

【已结算】请教一个负载高的问题【赏金20元】



你好,有个负载高的问题,我判断是因为开的线程数过多导致的,我想请教一下是下面的这些数据是不是有说服力或者有什么手段进一步确认? 谢谢!

top
top - 18:46:33 up 186 days,  4:31,  3 users,  load average: 67.47, 55.78, 61.19
Tasks: 377 total,   1 running, 376 sleeping,   0 stopped,   0 zombie
%Cpu(s): 51.0 us, 30.2 sy,  0.0 ni,  8.0 id,  0.0 wa,  0.0 hi, 10.8 si,  0.0 st
KiB Mem : 13173332+total, 21147572 free,  6840020 used, 10374573+buff/cache

grep procs_running /proc/stat
procs_running 70
grep procs_running /proc/stat
procs_running 90
grep procs_running /proc/stat
procs_running 119

 perf top -U
   4.41%  [kernel]          [k] system_call_after_swapgs
   3.49%  [kernel]          [k] do_select
   3.23%  [kernel]          [k] copy_user_enhanced_fast_string
   2.98%  [kernel]          [k] sysret_check
   2.78%  [kernel]          [k] __schedule
   1.82%  [kernel]          [k] __check_object_size
   1.67%  [kernel]          [k] fget_light
   1.22%  [kernel]          [k] tcp_ack
   1.21%  [kernel]          [k] __audit_syscall_exit
   1.16%  [kernel]          [k] __x86_indirect_thunk_rax
   1.15%  [kernel]          [k] tcp_poll
   1.13%  [kernel]          [k] _raw_spin_lock_irqsave
   1.12%  [kernel]          [k] __switch_to
 


 perf stat
 Performance counter stats for 'system wide':

     376801.028719      cpu-clock (msec)          #   31.997 CPUs utilized          
         7,323,807      context-switches          #    0.019 M/sec                  
           824,699      cpu-migrations            #    0.002 M/sec                  
           100,337      page-faults               #    0.266 K/sec                  
   808,730,622,944      cycles                    #    2.146 GHz                    
   429,965,110,114      instructions              #    0.53  insn per cycle         
    90,908,416,046      branches                  #  241.264 M/sec                  
     2,554,107,830      branch-misses             #    2.81% of all branches        

      11.776125779 seconds time elapsed

【赏金领取规则及入口】

麻烦大家关注【Heapdump性能社区】公众号,及时接收信息!

973 阅读
请先登录,查看5条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步