I'm going to preface this with this worked in Deb12 / PVE8.x.
My application use case ingests a large file, decompiles it, moves on.
I'm using two mountpoints other than the boot disk.
mp0 is a small temp rbd stored on fast disks.
mp1 is a shared mount point on cephfs.
The files being processed are larger than what is available in memory, hence the temp drive.
The memory usage climbs slowly over time to 99% of the limit.
During this time the CPU goes to 99% and the processes/LXC become unresponsive; the only solution is to kill the container or to increase the memory allocation.
By default memory.high = memory.max meaning the LXC isn't told to reduce memory usage within the container before the host refuses to allocate anymore.
If I'm right, LXCs need a better way of handling memory at their OS level for caching and applications.
As a test I've run to see where the memory usage lies.
With this set the LXC grabs and hovers around 1.41G usage.
Could we get a UI implementation of memory.high or a global setting for memory.high at 90% of memory.max
My application use case ingests a large file, decompiles it, moves on.
I'm using two mountpoints other than the boot disk.
mp0 is a small temp rbd stored on fast disks.
mp1 is a shared mount point on cephfs.
The files being processed are larger than what is available in memory, hence the temp drive.
The memory usage climbs slowly over time to 99% of the limit.
During this time the CPU goes to 99% and the processes/LXC become unresponsive; the only solution is to kill the container or to increase the memory allocation.
By default memory.high = memory.max meaning the LXC isn't told to reduce memory usage within the container before the host refuses to allocate anymore.
If I'm right, LXCs need a better way of handling memory at their OS level for caching and applications.
As a test I've run to see where the memory usage lies.
Code:
memory: 4096
lxc.cgroup2.memory.high: 1024
Could we get a UI implementation of memory.high or a global setting for memory.high at 90% of memory.max