Interview Prep/Linux/Load, CPU and I/O performance

`top` shows the CPU fully busy in `ni` (nice). Should you be concerned?

BeginnerTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Low-priority (niced) processes are using spare CPU; that's what nice is for.

Diagnose →

ps -eo pid,ni,pcpu,cmd --sort=-pcpu | head

Fix → Nothing, if normal-priority workloads are still responsive. If they suffer, lower the niced job further with cgroups (CPUWeight=).

Prevent → Use cgroup weights for predictable sharing.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance