Successor of lxc.cgroup.memory.memsw.limit_in_bytes

Hi all !

Ive got a problem with my lxc infra,

I used

lxc.cgroup.memory.memsw.limit_in_bytes

in lxc 2.07 for my containers’ swap, but on 3.0.3 it isn’t working anymore. Is there a successor to this ?

Thanks for your help.

Are you running your kernel with swapaccount=1?

Yes I am. But I got :

lxc-start: 782: start.c: lxc_spawn: 1735 Failed to setup cgroup limits for container “782”

everytime i try to start a container with this directive in the config.