I run an old desktop mainboard as my homelab server. It runs Ubuntu smoothly at loads between 0.7 and 3 (whatever unit that is).
Problem:
Occasionally, the CPU load skyrockets above 400 (yes really), making the machine totally unresponsive. The only solution is the reset button.
Solution:
- I haven’t found what the cause might be, but I think that a reboot every few days would prevent it from ever happening. That could be done easily with a crontab line.
- alternatively, I would like to have some dead-simple script running in the background that simply looks at the CPU load and executes a reboot when the load climbs over a given threshold.
–> How could such a cpu-load-triggered reboot be implemented?
cron@feddit.de 8 months ago
Just as a side note, the load factor can also mean that processes are limited by IO:
Source
teawrecks@sopuli.xyz 8 months ago
I would assume that wouldn’t cause so much contention that the system is unusable, though, right? Unless they’re busy waiting.