Monitoring average load

malat asked:

I am trying to monitor a system load average using uptime. On my debian box, I used the following:

$ for ((i=0;i<=1000000000;i++)); do uptime; done

However looking at top, 18% of CPU was allocated to bash ! This means that my uptime checking is way too agressive.

How do I gently check the load average ?

My answer:


Have you tried watch?

watch uptime

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.