Hello,
i have PVE server with 170GB of RAM assigned to LXC CTs.
Typical CT settings look like this: 2GB RAM, 256GB Swap.
But when you assign CT 2GB of RAM and 256GB of swap, it actually gets 2GB of RAM and 2.25GB of Swap.
If i set the swap to 0GB, it still gets 2GB of swap.
This is just coconuts.
It means i can't have less than 170GB total (theoretical) swap enabled in CTs on such machine.
It doesn't make sense to have 170GB swap, as even SSDs are too slow to handle so much of swapping and it would just cause IO overload.
Having less swap than that. (like 10GB or so) causes the swap to be permanently full (just need few CTs to run out of ram to fill the swap).
In both cases this leads to performance problem for the whole PVE machine and even freezing of the server (and me having go to the work during weekend).
I would really prefer being able to set small swap for each CT, so if some of the CTs RAM gets full, the OOM kills the CT rather than causing swaping of huge volumes, which would undermine the server stability and ruin the day for all CTs. Even no swap in CT would be better than this. Unfortunately i can't set zero swap in PVE CTs right now.
Please make it possible to make CT swap zero or smaller than ram. This is HUGE problem.
i have PVE server with 170GB of RAM assigned to LXC CTs.
Typical CT settings look like this: 2GB RAM, 256GB Swap.
But when you assign CT 2GB of RAM and 256GB of swap, it actually gets 2GB of RAM and 2.25GB of Swap.
If i set the swap to 0GB, it still gets 2GB of swap.
This is just coconuts.
It means i can't have less than 170GB total (theoretical) swap enabled in CTs on such machine.
It doesn't make sense to have 170GB swap, as even SSDs are too slow to handle so much of swapping and it would just cause IO overload.
Having less swap than that. (like 10GB or so) causes the swap to be permanently full (just need few CTs to run out of ram to fill the swap).
In both cases this leads to performance problem for the whole PVE machine and even freezing of the server (and me having go to the work during weekend).
I would really prefer being able to set small swap for each CT, so if some of the CTs RAM gets full, the OOM kills the CT rather than causing swaping of huge volumes, which would undermine the server stability and ruin the day for all CTs. Even no swap in CT would be better than this. Unfortunately i can't set zero swap in PVE CTs right now.
Please make it possible to make CT swap zero or smaller than ram. This is HUGE problem.