Limiting swap in LXC container

Yeah, that’s what we do in LXD.

Indeed if completely running out of physical memory, the system will still use the swap, so it’s not a complete off switch, but it’s about as close as we can get.