Comment 10 for bug 1568592

Revision history for this message
Wei Tsui (ghostplant) wrote :

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?