Swap allocation recommendatios

luison

Renowned Member
Feb 22, 2010
109
4
83
Spain
alsur.es
Hi, can any one point me to guidelines for RAM configuration on containers?
Ever since we updated to Proxmox 4 we to often get containers overusing swap even if their allocated RAM seems on ranges of 40-60%.

We've adjusted the vm.swappiness on the host system to 10 now with similar results. It seems somehow like swap remains "allocated" even if not use, so obviously the host machine's swap is too often too used.

We've been considering removing swap all together from containers as we assume that the host will start using it only when the SUM of the containers RAM is overseaded.

I could not find any info on optimal parameters, also depending on linux containers and/or Windows KVMs.

Thanks.
 
No one? Can someone at least confirm if they use swap or not in containers and if the behaviour is similar as I comment here? Thanks.
 

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!