Thanks, but a strange thing is that lxc performs different from docker. Can you try the following?
# sudo -i # lxc-start -n ubuntu1 # echo 1g > /sys/fs/cgroup/memory/lxc/ubuntu1/memory.limit_in_bytes # echo 1g > /sys/fs/cgroup/memory/lxc/ubuntu1/memory.memsw.limit_in_bytes # lxc-freeze -n ubuntu1 # echo 0 > /sys/fs/cgroup/memory/lxc/ubuntu1/memory.limit_in_bytes # cat /sys/fs/cgroup/memory/lxc/ubuntu1/memory.usage_in_bytes 0
Then, why the last command returns "0" ? Where is kmem? It makes me think that kmem has been drop. Do you know why the whole memory data including kmem is moved to swap, or a bug?
Thanks, but a strange thing is that lxc performs different from docker. Can you try the following?
# sudo -i cgroup/ memory/ lxc/ubuntu1/ memory. limit_in_ bytes cgroup/ memory/ lxc/ubuntu1/ memory. memsw.limit_ in_bytes cgroup/ memory/ lxc/ubuntu1/ memory. limit_in_ bytes cgroup/ memory/ lxc/ubuntu1/ memory. usage_in_ bytes
# lxc-start -n ubuntu1
# echo 1g > /sys/fs/
# echo 1g > /sys/fs/
# lxc-freeze -n ubuntu1
# echo 0 > /sys/fs/
# cat /sys/fs/
0
Then, why the last command returns "0" ? Where is kmem? It makes me think that kmem has been drop. Do you know why the whole memory data including kmem is moved to swap, or a bug?