Load average is very high, but CPU using is low? Why?

Jerry’s Notes
What’s next?
Published in
2 min readSep 11, 2019

奇怪Load average很高,但CPU使用率卻很低!!

這個情況有可能是因為低優先權的程式, 耗儘CPU的關係!!

重點是要搞懂Priority與Niceness之間的關係~~ 下面有些解釋及說明可以參考!

What difference between PR (Priority) and NI (Niceness).PR — Priority The scheduling priority of the task. If you see ‘rt’ in this field, it means the task is running under ‘real time’ scheduling priority.NI is nice value of task.
NI - Nice Value The nice value of the task. A negative nice value means higher priority, whereas a positive nice value means lower priority.Zero in this field simply means priority will not be adjusted in determining a task's dispatch-abilit

$ nc -n x ← 這個指令可以調整指令優先權!!

Reference:
https://askubuntu.com/questions/656771/process-niceness-vs-priority
http://linux.vbird.org/linux_basic/0440processcontrol/0440processcontrol-fc4.php#nice

--

--

Jerry’s Notes
What’s next?

An cloud support engineer focus on troubleshooting with customer reported issue ,and cloud solution architecture.