Proxmox 5 Ballooning not working (after upgrade)

masterdaweb

Active Member
Apr 17, 2017
87
4
28
31
Hello guys,

I found a bug on Proxmox 5, after upgrading. Proxmox 5 is not releasing balloning memory.

As we can see below, ballooning drivers are still working:

upload_2017-8-22_14-33-3.png

But that free memory is not being released to the host, that VM above just increased 12 GB on Host System total ram usage:

upload_2017-8-22_14-35-8.png
 
I doubt Win7/64b VM could run with just 1GB RAM used. Balooning driver could reclaim that memory, but Win7-VM would start using it immediatelly after that again...

BTW, I really do not understand this obsession of having as much free memory as possible. WHY??? Any meaninful using of memory is better, than not using it at all. You still have ~5GB free so there is no need to worry...
 
I doubt Win7/64b VM could run with just 1GB RAM used. Balooning driver could reclaim that memory, but Win7-VM would start using it immediatelly after that again...

BTW, I really do not understand this obsession of having as much free memory as possible. WHY??? Any meaninful using of memory is better, than not using it at all. You still have ~5GB free so there is no need to worry...

The case is that there's a bug, when ballooning release memory on VM, this memory is not being released on host. It was working until I upgrade to Proxmox 5
 
But, for my understanding, what is the link between ksm (merging of identical pages on the host) and ballooning (taking back memory from guests in case of host memory pressure) ?
KSM daemon is responsible to take RAM back to the host when a VM releases RAM.
 
there is no connection. with KSM the host memory usage might be reduced because freed pages from different guests are merged. this is not the same as ballooning.

if you want ballooning in the sense of "dynamically change amount of memory a guest can use", you need to configure your VM as described in 10.2.5 Memory under the header "Automatic Memory Allocation". the "ballooning" option for fixed memory allocation just allows PVE to retrieve memory allocation information from inside the guest (via the ballooning device).
 
I might have a similar "problem" I just installed ubuntu server with mate desktop core and is taking 4.63 GB of RAM in node and VM

On top of that the VM sometimes reports 1.2 GB of RAM while in the node 4.63 GB appears.
The task manager of MATE is reporting 734MB

BTW I'm using dynamic memory.

I know that empty RAM is a waste and all that but it doesn't make sense that a light installation of ubuntu is taking more memory than a full windows 10, so if something is not working properly I would like to fix it, but I need to be pointed in the right direction.

I have 8 gb why memtotal is showing something different?
root@local:~# cat /proc/meminfo
MemTotal: 7150784 kB
MemFree: 4990416 kB
And in proxmox -> Node -> Sumary it shows that I have 6.82 in total since proxmox itsel is using 932MV without any VM running.


Thanks in advance for your help
 
Last edited:

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!