← Back to team overview

touch-packages team mailing list archive

[Bug 1392176] Comment bridged from LTC Bugzilla

 

------- Comment From preeti.murthy@xxxxxxxxxx 2015-04-10 06:05 EDT-------
(In reply to comment #43)
> Note that when i start up a vivid vm without cgmanager installed, cpuset is
> still mounted and login sessions get a cpuset cgroup:
>
> ubuntu@v1:~$ dpkg -l | grep cgmanager
> ubuntu@v1:~$ cat /proc/self/cgroup
> 10:perf_event:/user.slice/user-1000.slice/session-1.scope
> 9:freezer:/user.slice/user-1000.slice/session-1.scope
> 8:memory:/user.slice/user-1000.slice/session-1.scope
> 7:hugetlb:/user.slice/user-1000.slice/session-1.scope
> 6:net_cls,net_prio:/user.slice/user-1000.slice/session-1.scope
> 5:cpu,cpuacct:/user.slice/user-1000.slice/session-1.scope
> 4:blkio:/user.slice/user-1000.slice/session-1.scope
> 3:devices:/user.slice/user-1000.slice/session-1.scope
> 2:cpuset:/user.slice/user-1000.slice/session-1.scope
> 1:name=systemd:/user.slice/user-1000.slice/session-1.scope
>
> And I do think that's the right thing to do.  We simply need the daemon.
>
> @Preeti,
>
> will you be available during the next set of UOS
> (http://summit.ubuntu.com/uos-1505/)
> to discuss a good design?  Issues include:
>
> . Where to ship the code
> . How to configure defaults and exceptions
> . What all needs to be handled (cpusets, memory, hugetlb?)

>From what I can make out, the sessions are in May ? In which case
I will be happy to discuss.

Regards
Preeti U Murthy

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1392176

Title:
  mounts cgroups unconditionally which causes undesired effects with cpu
  hotplug

Status in cgmanager package in Ubuntu:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed
Status in systemd package in Ubuntu:
  New

Bug description:
  == Comment: #0 - Preeti U. Murthy <preeti.murthy@xxxxxxxxxx> - 2014-10-20 04:40:12 ==
  ---Problem Description---
  Systemd mounts cgroups explicitly every boot. Since the user had no say in it, undesired consequences are observed in reaction to cpu hotplug operations.  Here is how.

  Systemd moves the tasks to the cgroup mounted by it. This cgroup automatically becomes the child of the root cgroup which is present by default. The children cgroups are not expected to remember their configured cpusets after hotplug operations in the kernel. Hence when cpus are taken offline and brought back online they are no longer used for load balancing of tasks and hence remain unused. 
     This is an undesired consequence because the user had not even asked for cgroups to be mounted, yet is not able to use the full capacity of the system.

  Only when the user himself creates cgroup hierarchies, should he be
  exposed to the side effects of cpu hotplug on cpusets. Else all online
  cpus must be made available to him which is not happening since
  systemd mounts cgroups on every boot.

  Hence please revert this feature or provide an explaination as to why this is being done.
   
  ---uname output---
  Linux tul181p1 3.16.0-18-generic #25-Ubuntu SMP Fri Sep 26 02:39:53 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = Tuleta 8286-42A 
   ---Debugger---
  A debugger was configured, however the system did not enter into the debugger
   
  ---Steps to Reproduce---
   $ taskset -p $$
  $ 0-127
  $ echo 0 > /sys/devices/system/cpu/cpu7/online
  $ taskset -p $$
  $ 0-6,8-127
  $ echo 1 > /sys/devices/system/cpu/cpu7/online
  $ taskset -p $$
  $ 0-6,8-127
   
   
  Userspace tool common name: systemd 
   
  The userspace tool has the following bit modes: 64-bit 

  Userspace rpm: systemd_208-8ubuntu8_ppc64el.deb

  Userspace tool obtained from project website:   208-8ubuntu8

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