New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Why load average goes above 2 while CPU never goes above 58%
Trying to understand as to why my VPS load average goes above 2.0 when CPU never goes above 58%. I am checking it using htop.
So I was doing website load test and before test CPU was between 2% to 5% and 1minute load average was 0.00. Then I started 10 clients per second test which lasted for 1 minute and during this test load average went to 2.12 while CPU was mostly around 35% to 45%. Only 4 times it went above 50% (maximum 58%) and a few times below 30%.
This is a 1 vCPU VPS so shouldn't load average directly related to CPU usage shown in htop?
Comments
Good question, it always intrigues me to know how those numbers are calculated. I suggest this site as a starting point to learn more: http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html
sounds like high I/O wait.
In my experience it's usually always this. Can happen normally if using some kind of remote filesystem, or in cases where the node's drive is being thrashed.
Yeah may be this is the issue because my I/O speed is around 200 MB/s.
Is there a way to check I/O wait?
top => xx.xx%wa
And if you run that, also watch at st which stays for cpu steal.
You can also check the processes I/O with
iotop