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: 8
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!