Swap BUG CT

Cantalupo

Active Member
Dec 21, 2016
28
0
41
31
I created a CT with swap memory of "512MB", but when I access the CT I see that it was released much more than this.
v5qAPQj.png


I've reinstalled the proxmox server several times, so I've found that Swap is always the same value as RAM.
g3ka4gH.png


How could you solve this problem?
 
this a result of how containers/cgroups track memory usage. there is one limit for memory, and one for memory+swap. so while you configure 512mb of swap, you actually allow the container to use up to MEMORY+512MB swap, as long as the used memory and the used swap together stay under this limit.
 
I noticed that the selected ram is being added to the amount of swap memory.
Would that be a Proxmox bug?
Is there any solution?
 
please read my first reply.
 
  • Like
Reactions: fireon