怎么看系统负载uptime参数

本文解释了如何通过uptime命令分析服务器负载平均值,并提供了判断何时需要关注的具体指标。重点关注五到十五分钟的平均值,当十五分钟平均值持续高于处理器核心数时,表明系统可能存在问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

nice passage explains how to analyse the parameters in uptime command ref:http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages

I'VE underlined the answer.

Which average should I be observing? One, five, or 15 minute?

For the numbers we've talked about (1.00 = fix it now, etc), you should be looking at the five or 15-minute averages. Frankly, if your box spikes above 1.0 on the one-minute average, you're still fine. It's when the 15-minute average goes north of 1.0 and stays there that you need to snap to. (obviously, as we've learned, adjust these numbers to the number of processor cores your system has).

So # of cores is important to interpreting load averages ... how do I know how many cores my system has?

cat /proc/cpuinfo to get info on each processor in your system.Note: not available on OSX, Google for alternatives. To get just a count, run it throughgrep and word count: grep 'model name' /proc/cpuinfo | wc -l



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值