Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.8 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:

Once testing of the upstream kernel is complete, please mark this bug as

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Tags added: kernel-da-key xenial

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  Wrong memory.stat values in container root cgroup

Status in linux package in Ubuntu:

Bug description:
  1) Ubuntu 16.04.1 LTS

  2) linux-image-4.4.0-41-generic, bug happens and first tested on
  4.4.0-38, happens in all versions, including from 4.4.0-38 to 4.4.0-41
  and possibly. See this bug on totally different xenial lts machines

  3) What you expected to happen:
  cat /sys/fs/cgroup/memory/lxc/containername/memory.stat should display 
correct information

  4) What happened instead
  cat /sys/fs/cgroup/memory/lxc/containername/memory.stat shows incorrect 
  cat /sys/fs/cgroup/memory/memory.stat in container shows different information
  lxc exec containername -- cat /sys/fs/cgroup/memory/memory.stat shows totally 
different information from two above. Meanwhile cat 
/sys/fs/cgroup/memory/lxc/containername/memory.usage_in_bytes is always correct.

  5) mount | grep cgroup output:
  tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)
  cgroup on /sys/fs/cgroup/systemd type cgroup 
  cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup 
  cgroup on /sys/fs/cgroup/perf_event type cgroup 
  cgroup on /sys/fs/cgroup/hugetlb type cgroup 
  cgroup on /sys/fs/cgroup/memory type cgroup 
  cgroup on /sys/fs/cgroup/devices type cgroup 
  cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup 
  cgroup on /sys/fs/cgroup/cpuset type cgroup 
  cgroup on /sys/fs/cgroup/freezer type cgroup 
  cgroup on /sys/fs/cgroup/pids type cgroup 
  cgroup on /sys/fs/cgroup/blkio type cgroup 

  6) I was able to reproduce the bug on another machine where memory.stat for 
container is correct  after removing this packages, but it makes no sense at 
  mountall:amd64 plymouth-theme-ubuntu-text:amd64 plymouth:amd64 upstart:amd64
  Installing back didn't help.

  7) memory.stat information for programs running in containers is
  correct. Only memory.stat information for container root is incorrect.

  Bug graphical representation:
  First chart is based on cat 
/sys/fs/cgroup/memory/lxc/containername/memory.usage_in_bytes and cat 
/sys/fs/cgroup/memory/lxc/containername/memsw_usage_in_bytes. Second chart 
based on incorrect cat /sys/fs/cgroup/memory/lxc/containername/memory.stat

  Possibly the same problems (bugs quite old):

  Bug original sources:

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to