Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560316 - sys-kernel/gentoo-sources-4.2.0-r1 - NOHZ_FULL and cgroup/cpusets lock processes to 1 cpu
Summary: sys-kernel/gentoo-sources-4.2.0-r1 - NOHZ_FULL and cgroup/cpusets lock proces...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-13 04:06 UTC by chris salch
Modified: 2015-10-20 22:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Working 4.0.4 config (.config,100.12 KB, text/plain)
2015-09-13 04:06 UTC, chris salch
Details
Brokeb 4.2.0-r1 config (.config,101.92 KB, text/plain)
2015-09-13 04:09 UTC, chris salch
Details
emerge --info (info.txt,5.59 KB, text/plain)
2015-09-13 04:12 UTC, chris salch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chris salch 2015-09-13 04:06:20 UTC
Created attachment 411772 [details]
Working 4.0.4 config

When upgrading the kernel on my system from 4.0.4 to 4.2.0-r1 all processes wound up tied to core 0.  The 4.2.0-r1 config was created by running make old config.

In an attempt to track down what changed I did experiment and prune the 4.2.0-r1 kernel and tracked it down to some changes in kernel/cpuset.c (At least that's what led me to the problem).  With NOHZ_FULL enabled in the 4.2.0-r1 kernel processors appear to be "isolated" which seems to prevent processes from moving between cores.  I can create other cpusets and move tasks into the explicitly but, those sets also limit processes to the first core in the cpuset.  Setting NOHZ_IDLE appears to alleviate the problem.  Using the nohz_full kernel command line argument to limit which cpus are running tickless also seems to work.
Comment 1 chris salch 2015-09-13 04:09:32 UTC
Created attachment 411774 [details]
Brokeb 4.2.0-r1 config
Comment 2 chris salch 2015-09-13 04:12:56 UTC
Created attachment 411776 [details]
emerge --info
Comment 3 Alan Swanson 2015-09-24 15:04:15 UTC
Same problem here. Already reported on the kernel bugtracker;

https://bugzilla.kernel.org/show_bug.cgi?id=104111
Comment 4 Mike Pagano gentoo-dev 2015-10-20 22:18:52 UTC
Upstream reports this as expected behavior but with a potential rethink.  We'll follow the upstream bug in case anything changes, but there's nothing left for us to do here.