bug in showing memory of connected nodes

zyghom

Member
Mar 9, 2023
40
28
23
I have 3 connected PVE and 4 PBS and all seem ok except I the graph showing total RAM on PBS - see below - doubt I have 2 PiB of RAM ;-)
version:
Datacenter Manager 1.1.7

Screenshot 2026-10-21 at 20.50.29.png
 
Interesting, CPU (1.27 of 16 cores) and storage look plausible, only the memory total is off. Since that widget sums up all 4 PBS, my guess is that one of them reports a bogus total and the others are fine. Can you check each PBS on its own in PDM and see which one shows the weird value? Also, is one of them running in an LXC container or somewhere without a fixed memory limit? Then the total might come from the cgroup and not from real RAM. Just a hunch. Open a report on bugzilla.proxmox.com. Mention which PBS version it is and what free -b shows on that box.
 
you are right: 2 are in lxc, 2 are in vm
both lxc ones are showing 1 PB of ram
 

Attachments

  • Screenshot 2026-10-22 at 08.38.40.png
    Screenshot 2026-10-22 at 08.38.40.png
    65.9 KB · Views: 0
  • Screenshot 2026-10-22 at 08.38.33.png
    Screenshot 2026-10-22 at 08.38.33.png
    64.8 KB · Views: 0
  • Screenshot 2026-10-22 at 08.38.25.png
    Screenshot 2026-10-22 at 08.38.25.png
    64.6 KB · Views: 0
  • Screenshot 2026-10-22 at 08.38.17.png
    Screenshot 2026-10-22 at 08.38.17.png
    67.4 KB · Views: 0
Thanks for checking. The two with the bogus value are fhuqnap-pbs-qnap1 and pbstn, and both have only a few hundred MiB in use, so the data itself is fine. The total is just wrong. A PVE container always has a memory limit, but inside the container the cgroup is nested and usually reports "unlimited" anyway. My guess is that ends up as the 1 PiB total. What does free -b show inside one of them, and what does cat /sys/fs/cgroup/lxc/<ID>/memory.max show on the PVE host? If both show the configured limit, the real value is available and PBS just reads the wrong source. Either way, put that output in the bug report. It helps more than the screenshot.
 
free -b it is easy to show: Screenshot 2026-10-22 at 09.33.34.png

but with this container being on truenas I have issues to locate "/sys/fs/cgroup/lxc/<ID>/memory.max" as:

Code:
9:38:27 root@truenas /home/admin $: ls -la /sys/fs/cgroup/lxc
ls: cannot access '/sys/fs/cgroup/lxc': No such file or directory
 
That one helps. 1125899906842624 is exactly 2^50, so the container itself reports 1 PiB in free. PBS isn't calculating anything wrong. It reads what the container tells it, and that's the "no limit set" value. Forget my cgroup path from before, that was for a PVE host and doesn't apply on TrueNAS. My guess is that the container on TrueNAS has no memory limit configured at all. Set a fixed RAM limit on the instance in TrueNAS, restart it and check free -b again. It should show the limit then, and PDM should be fine after the next poll. The other LXC one probably has the same cause. A bug report still makes sense IMO, because PBS/PDM could easily treat 2^50 as "unlimited" instead of adding it to the total.