D
D
Dmitry2022-01-21 13:00:57
linux
Dmitry, 2022-01-21 13:00:57

Does the number of CPUs affect the load readings in the top?

After adding additional processors to the server, the average load increased according to the top and htop utilities . At the same time, the real load on the server did not change. Does this mean that the server has become worse, or is it the peculiarities of these utilities?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2022-01-21
@Oldshelf

The matter is as follows.
Load AVG shows the total load across all processor cores (or core threads). In other words, this is the total load indicator of the entire system .
But, in the top/htop utility, you can see the load for each core (kernel thread) separately - press the 1 key , you will see the load for each core separately.
Returning to Load AVG :
- if you have 1 processor in your system, and AVG is equal to one, then your system is fully loaded;
- if you have 16 processors in your system, and AVG is equal to one, then your system is loaded by 1/16 part;
- if you have 16 processors in your system, and AVG is 16, then your system is fully loaded;
- if you have 1 processor in your system and AVG is 16 then your system is completely overloaded and I would add 15 cores.
In other words, there is nothing to say only by the value of AVG, without knowing the number of cores (well, at least).
In general, something like this ...

A
Armenian Radio, 2022-01-21
@gbg

If there are 16 processors in the computer and everyone is busy, the load (Load Avg) will be 16.
If 32 processors - 32. Are you talking about this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question