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?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568592

Title:
  bug of "memory.kmem.limit_in_bytes" and "memory.kmem.usage_in_bytes"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1568592/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to