High CPU load

Actual Behaviour:

PiHole WEB Interface indicates a high CPU load (red dot). If I have a look to the running process with top there is no high CPU load from any process:

 PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                 
      1 root      20   0  104088  10812   8360 S   0.0   1.0   0:00.19 systemd                                                                 
     51 root      19  -1   36052  13348  12280 S   0.0   1.3   0:00.08 systemd-journal                                                         
     71 systemd+  20   0   27828   8012   7084 S   0.0   0.8   0:00.05 systemd-network                                                         
     90 systemd+  20   0   24976  12416   8316 S   0.0   1.2   0:00.04 systemd-resolve                                                         
    146 root      20   0  233400   6756   6056 S   0.0   0.6   0:00.16 accounts-daemon                                                         
    147 root      20   0    3800   2420   2172 S   0.0   0.2   0:00.00 cron                                                                    
    148 message+  20   0    8312   4784   4096 S   0.0   0.5   0:00.04 dbus-daemon                                                             
    151 root      20   0   26924  17628  10052 S   0.0   1.7   0:00.08 networkd-dispat                                                         
    152 syslog    20   0  221128   4180   3660 S   0.0   0.4   0:00.01 rsyslogd                                                                
    153 root      20   0   18004   7864   7012 S   0.0   0.7   0:00.03 systemd-logind                                                          
    161 root      20   0    2624   1732   1620 S   0.0   0.2   0:00.00 agetty                                                                  
    162 root      20   0    7608   4460   3556 S   0.0   0.4   0:00.00 login                                                                   
    163 root      20   0    2624   1840   1728 S   0.0   0.2   0:00.00 agetty                                                                  
    191 unbound   20   0   28136  15352   7836 S   0.0   1.5   0:00.34 unbound                                                                 
    196 www-data  20   0    8168   4504   3480 S   0.0   0.4   0:00.18 lighttpd                                                                
    221 www-data  20   0  198096  20716  16456 S   0.0   2.0   0:00.02 php-cgi                                                                 
    243 root      20   0    2952    240      0 S   0.0   0.0   0:00.02 dhcpcd                                                                  
    251 pihole    20   0   19064   8640   7612 S   0.0   0.8   0:00.01 systemd                                                                 
    252 www-data  20   0  198568  14096   9140 S   0.0   1.3   0:00.10 php-cgi                                                                 
    253 www-data  20   0  198572  16120  10684 S   0.0   1.5   0:00.11 php-cgi                                                                 
    254 www-data  20   0  198584  15700  10600 S   0.0   1.5   0:00.11 php-cgi                                                                 
    255 www-data  20   0  198588  15772  10616 S   0.0   1.5   0:00.12 php-cgi                                                                 
    257 pihole    20   0   25288   2840      0 S   0.0   0.3   0:00.00 (sd-pam)                                                                
    293 pihole    10 -10  470536   8640   4032 S   0.0   0.8   0:02.14 pihole-FTL                                                              
    415 root      20   0   38404   4304   3856 S   0.0   0.4   0:00.01 master                                                                  
    417 postfix   20   0   38664   5704   5216 S   0.0   0.5   0:00.00 pickup                                                                  
    418 postfix   20   0   38712   5856   5360 S   0.0   0.6   0:00.00 qmgr                                                                    
   1074 root      20   0   19068   8396   7376 S   0.0   0.8   0:00.01 systemd                                                                 
   1075 root      20   0  107216   2936     16 S   0.0   0.3   0:00.00 (sd-pam)                                                                
   1080 root      20   0    5152   4400   2828 S   0.0   0.4   0:00.02 bash                                                                    
   3682 root      20   0    7040   3472   2928 R   0.0   0.3   0:00.00 top           

Debug Token:

https://tricorder.pi-hole.net/sbi1LxkR/

What is the output of the command

uptime

?

root@pihole:~# uptime
08:37:06 up 2:45, 1 user, load average: 1.74, 1.66, 1.71

Its a brand new installation. Installed on a Proxmox LXC Container based on Ubuntu 20.10

It depends on whether Proxmox/LXC implements system load isolated for each container. As your top showed basically no CPU load at all, I'd guess the answer is "no". So your container may be seeing the load of the entire server and, at the same time, that there is only one core to handle this (assuming you assigned only one core). In this case, the red warning is expected as a load close to two is too high for a server with only one core.

That`s it!

I have assigned 1 core for the container. Just to try I switch to 4 and the load singal switched to green!

Thx

Concerning the load itself, it is always good to keep the comment at the top of kernel/sched/loadavg.c in the Linux source code in mind:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.