XCP-NG PfSense reports wrong RAM size

Hi all, running pfSense in xcp-ng. Initially, there was 8GIG of RAM allocated to the VM, after some time I decided to reduce it to 4GIG, but the dashboard shows that I have 8GIG with increased usage which is not true. Is there any solution for this?

[2.5.1-RELEASE][root@pfSense.home.lan]/root: sysctl hw.physmem
hw.physmem: 8521355264
[2.5.1-RELEASE][root@pfSense.home.lan]/root: sysctl hw | egrep 'hw.(phys|user|real)'
hw.physmem: 8521355264
hw.usermem: 7836835840
hw.realmem: 8585740288

Since memory size was reduced pfsense was restarted multiple times and the server was powered off, the glitch still exists even after update from 2.5 to 2.5.1.

Not a problem I have encountered before, might want to post in their forums https://forum.netgate.com/

Thank you for the answer, I already did it some time ago, but still no reply, so decided to duplicate it here :frowning:

Looks like we’re kindred spirits! Not using pfsense, but I virtualize TrueNAS Core (also on FreeBSD), and i’m seeing the exact same issue when reverting the VM’s total memory from 32GB to 16GB :frowning:

1 Like

Found a solution, it’s not enough to change memory size for the PfSense VM under the “General” tab in XCP-NG. Under “Advanced” tab there are “Memory limits (min/max)” that should be set accordingly.