some LXC exposing Host CPU Information

cfr

New Member
Sep 8, 2023
2
0
1
Hi, I recently noticed a strange behavior with some of our LXC containers. In some containers htop shows all available CPU cores of the host machine, but other LXC containers running on the same host do not. I know about this old "bug" (https://forum.proxmox.com/threads/lxc-loadavg.44463/), but it has been fixed for many years, and the -l flag is set in /etc/systemd/system/lxcfs.service.d/override.conf, so this should not be the problem here.

Please see the attached screenshot of the configuration of almost identical LXC for small websites. They were created just a few months apart on the same host, but behave differently. Also worth mentioning for container 3831 is that CPU 0-17 are declared offline, CPU 18 (as pct cpusets also correctly detects) has low (1.3%) utilization and all other CPUs are shown with 0.0% utilization instead of "offline"
 

Attachments

  • screenshot.jpg
    screenshot.jpg
    786.2 KB · Views: 24
thanks for the info! i completely overlooked that one container was already upgraded to debian 12. a quick test/upgrade of another container now also has this bug.