Bug 42789
Summary: | cpuset cgroup: when a CPU goes offline, it is removed from all cgroup's cpuset.cpus, but when it comes online, it is only restored to the root cpuset.cpus | ||
---|---|---|---|
Product: | Process Management | Reporter: | bugs-kernel (bugs-kernel.8eaf7cd8e5128d8191fe) |
Component: | Other | Assignee: | process_other |
Status: | NEEDINFO --- | ||
Severity: | normal | CC: | alan, spartacus06, srivatsa |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | v3.2.6 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
bugs-kernel@spamgourmet.com
2012-02-17 02:15:55 UTC
This was independently reported by Prashanth Nageshappa <prashanth@linux.vnet.ibm.com> and fixed in commit 8f2f748b0656257153bcf0941df8d6060acc5ca6, but subsequently reverted by Linus as commit 4293f20c19f44ca66e5ac836b411d25e14b9f185. According to his commit, the fix caused regressions elsewhere. There are bugs in RedHat and Ubuntu tracking this issue as it impacts libvirt: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/993354 https://bugzilla.redhat.com/show_bug.cgi?id=714271 In this particular case, the effect is that all VM vcpus are pinned to the boot cpu (cpu 0) because the cpusets aren't maintained properly during suspend/resume which, as I understand, uses cpu hotplug. This thread has a userspace workaround: https://www.redhat.com/archives/libvir-list/2012-April/msg00777.html This is a pretty significant kernel issue. I can see a lot of people hitting this now that the distros are using versions of libvirt that utilize cgroups. Hi, Recently, I posted a new set of patches to fix this issue in the kernel. Link: http://thread.gmane.org/gmane.linux.documentation/4805 The discussion is still going on around that patchset... Regards, Srivatsa S. Bhat By the way, AFAICT, Thomas Gleixner's efforts to rework CPU hotplug is not aimed at fixing this cpuset issue. His work addresses a very different problem (cleaning up duplication of cpu hotplug code in arch/ implementations, and possibly improving the performance to cpu hotplug itself). Is this now resolved ? |