linux中平均负载 average load

 

1、top或者uptime命令查看平均负载

[root@centos7 ne]# uptime    ## 分别表示过去一分钟、过去五分钟、过去15分钟的平均负载
 13:54:11 up  5:37,  2 users,  load average: 0.00, 0.01, 0.05

 

2、平均负载与cpu的内核数目有关系,合理值为:内核数目乘以0.7左右

查看内核数目:

[root@centos7 ne]# grep "model name" /proc/cpuinfo | wc -l
8

内核数8 * 0.7 = 5.6,平均负载约5.6表示基本满载 。

 

posted @ 2022-04-12 14:00  小鲨鱼2018  阅读(128)  评论(0编辑  收藏  举报