Xymon Mailing List Archive search

CPU LOAD

3 messages in this thread

list Luca Tolomelli · Sat, 30 Mar 2019 14:23:25 +0100 ·
The Analysys.cfg has this default LOAD value:
LOAD    5.0 10.0
For a 2 CPU machine, wouldn't those values be too high?
A load 2.0 on a 2 CPU machine means a 100% usage of the total "CPU power",
right?

Any help is appreciated

Luca
list Martin Lenko · Sun, 31 Mar 2019 11:39:28 +0000 ·
Hi Luca,
the answer is a bit more complex than that, but basically, load 2 on 2 CPU
machine means that the machine is just about able to cope with the load
thrown at it. If the load is higher than the number of CPUs for a longer
period of time, you might have a performance problem.
More detailed explanation here:
https://www.howtogeek.com/194642/understanding-the-load-average-on-linux-and-other-unix-like-systems/

I usually set the warning/yellow threshold to a value slightly higher than
the number of CPUs and the critical/red to twice the number of
warning/yellow value. At least on machines with a small number of CPUs.

I case of 2CPU machine I would set it to:
LOAD 2.5 5.0

Obviously, if you should review the CPU load patterns of your server and
update the LOAD config accordingly to make sure the thresholds are not:
- too low - you might get a lot of false positive alerts
- too high - you might not notice there is something going and the machine
is struggling to cope with the load

Regards,
Martin
list Luca Tolomelli · Mon, 1 Apr 2019 13:38:44 +0200 ·
Ok, thank you for your help :)

Il giorno dom 31 mar 2019 alle ore 13:39 Martin Lenko <user-024fe0c6d298@xymon.invalid>
quoted from Martin Lenko
ha scritto:
Hi Luca,
the answer is a bit more complex than that, but basically, load 2 on 2 CPU
machine means that the machine is just about able to cope with the load
thrown at it. If the load is higher than the number of CPUs for a longer
period of time, you might have a performance problem.
More detailed explanation here:
https://www.howtogeek.com/194642/understanding-the-load-average-on-linux-and-other-unix-like-systems/

I usually set the warning/yellow threshold to a value slightly higher than
the number of CPUs and the critical/red to twice the number of
warning/yellow value. At least on machines with a small number of CPUs.

I case of 2CPU machine I would set it to:
LOAD 2.5 5.0

Obviously, if you should review the CPU load patterns of your server and
update the LOAD config accordingly to make sure the thresholds are not:
- too low - you might get a lot of false positive alerts
- too high - you might not notice there is something going and the machine
is struggling to cope with the load

Regards,
Martin