[lxc-devel] [lxc/lxc] 19a85f: Use the cgroup name for cpuset for lxc-ps

GitHub noreply at github.com
Mon Jan 6 15:34:57 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 19a85f1f8ffb67afd8df14173e624260bd398f55
      https://github.com/lxc/lxc/commit/19a85f1f8ffb67afd8df14173e624260bd398f55
  Author: Nick Huber <nicholashuber at gmail.com>
  Date:   2014-01-06 (Mon, 06 Jan 2014)

  Changed paths:
    M src/lxc/lxc-ps.in

  Log Message:
  -----------
  Use the cgroup name for cpuset for lxc-ps

On my Ubuntu 13.10 system, lxc-ps was always giving empty output. The
output of /proc/$initpid/cgroup was

11:name=systemd:/user/1000.user/c3.session
10:hugetlb:/container
9:perf_event:/container
8:blkio:/container
7:freezer:/container
6:devices:/container
5:memory:/container
4:cpuacct:/container
3:cpu:/container
2:cpuset:/container

Using the cpuset line should be a safer option.

Signed-off-by: Nick Huber <nicholashuber at gmail.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list