cPanel confirmed that they're using sysinfo(2) via Perl to get the loads, and lxc would need the kernel patch discussed here https://github.com/lxc/lxcfs/issues/202
I just realized I have this same problem.
The VPS when I do top shows:
0.48
But in CPanel it puts more than 10 points.
What can I do to solve it?
Greetings!
Hello,
Thank you greatly for your patience while I investigated this issue further. I was able to note the mentioned discrepancy when comparing the load average displayed within the WHM user interface and the load average from the command line.
While investigating this issue I noticed that the server is running CentOS 7 as the guest. Our installation guide for Linux Containers strongly recommends using CentOS 6 as the guest and notes additional steps required for using CentOS 7 as a guest.
What kind of operating system is being run on the host node? Have the additional steps from our documentation been performed?
I've included our documentation for Linux Containers below for review:
https://documentation.cpanel.net/display/84Docs/Linux+Containers
Please note that this issue does not look to be caused by or related to cPanel or the cPanel-bundled software. We want everyone who uses cPanel to have an amazing experience, both with our software and our support. Sometimes that means pointing you to an expert about your particular problem if it is not a cPanel-related issue.
We will be here on standby awaiting your update. Please let me know if you have any additional questions or concerns regarding this issue.
Thanks,
--
Ryland Robertson
Technical Analyst II
cPanel, L.L.C.
Here's what I got back from cPanel when I asked them about it:
I didn't bother pushing more past that point. If you feel like contacting them and pushing, maybe open a feature request and link it here? I'm sure others will come...
Our installation guide for Linux Containers strongly recommends using CentOS 6 as the guest and notes additional steps required for using CentOS 7 as a guest.
What kind of operating system is being run on the host node? Have the additional steps from our documentation been performed?
I've included our documentation for Linux Containers below for review:
https://documentation.cpanel.net/display/84Docs/Linux+Containers
Please note that this issue does not look to be caused by or related to cPanel or the cPanel-bundled software. We want everyone who uses cPanel to have an amazing experience, both with our software and our support. Sometimes that means pointing you to an expert about your particular problem if it is not a cPanel-related issue.
Hello!
perhaps this can be useful. Our servers are running the same pve-manager and lxcfs as yours, and after the change to the /lib/systemd/system/lxcfs.service they still give the correct load.
Hope it can help.
Best regards,
Juan.
ps | grep lxcfs
root 1273 0.2 0.0 1372520 4472 ? Ssl 14:15 0:06 /usr/bin/lxcfs -l /var/lib/lxcfs/
Did you reboot?After Upgrade to Proxmox 7 the -l Trick (https://bugzilla.proxmox.com/show_bug.cgi?id=1870) dont work anymore.
My lxcfs is started with the -l Parameter:
but the Containers shows the Host Load.Code:ps | grep lxcfs root 1273 0.2 0.0 1372520 4472 ? Ssl 14:15 0:06 /usr/bin/lxcfs -l /var/lib/lxcfs/
[Unit]
Description=FUSE filesystem for LXC
ConditionVirtualization=!container
Before=lxc.service
Documentation=man:lxcfs(1)
[Service]
ExecStart=/usr/bin/lxcfs /var/lib/lxcfs -l
KillMode=process
Restart=on-failure
ExecStopPost=-/bin/fusermount -u /var/lib/lxcfs
Delegate=yes
ExecReload=/bin/kill -USR1 $MAINPID
[Install]
WantedBy=multi-user.target
You are right, my machine shows the same behavior.Yes of course i rebootet. And yes i was not clear enough. The Load avg is correct but the cpu usage (sed -n 's/^cpu\s//p' /proc/stat) is from the Host. And that was correct on 6.4 and shows the CPU Usage from the Container.