public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Galbraith <umgwanakikbuti@gmail.com>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Ingo Molnar" <mingo@kernel.org>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Frédéric Weisbecker" <fweisbec@gmail.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, "Ingo Molnar" <mingo@elte.hu>,
	afzal.mohd.ma@gmail.com
Subject: Re: 4.2.2: NR_CPUS effectively being 1 bug
Date: Sat, 03 Oct 2015 14:19:29 +0200	[thread overview]
Message-ID: <1443874769.3215.5.camel@gmail.com> (raw)
In-Reply-To: <20151003121423.GA1695@p183.telecom.by>

On Sat, 2015-10-03 at 15:14 +0300, Alexey Dobriyan wrote:
> On Sat, Oct 03, 2015 at 10:15:48AM +0200, Mike Galbraith wrote:
> > On Sat, 2015-10-03 at 09:38 +0200, Ingo Molnar wrote:
> > > * Peter Zijlstra <peterz@infradead.org> wrote:
> > > 
> > > > On Fri, Oct 02, 2015 at 02:00:33PM -0700, Andrew Morton wrote:
> > > > > On Fri, 2 Oct 2015 23:46:59 +0300 Alexey Dobriyan <adobriyan@gmail.com> wrote:
> > > > > 
> > > > > > FYI, I've upgraded from 4.1.7 to 4.2.1 (and retested with 4.2.2) and
> > > > > > everything is scheduled on 1 CPU out of 4 (i5 760).
> > > > > > 
> > > > > > 	$ sudo cat /proc/1/status | grep cpu -i
> > > > > > 	Cpus_allowed:   1
> > > > > > 	Cpus_allowed_list:      0
> > > > > > 
> > > > > > Every process inherits this tiny cpumask.
> > > > > 
> > > > > Sell the other CPUs on ebay?
> > > > > 
> > > > > I haven't seen such a report before - maybe it rings a bell with Peter
> > > > > & Ingo?
> > > > 
> > > > I think this is related to some NO_HZ_FULL quackery. People seem to have
> > > > enabled stuff they've really no sane reason for.
> > > 
> > > So the question is, is CONFIG_NO_HZ_FULL_ALL=y enabled? If yes then please disable 
> > > it.
> > > 
> > > Frederic, is there a fix for that? The Kconfig help text for CONFIG_NO_HZ_FULL_ALL 
> > > says::
> > > 
> > >  CONFIG_NO_HZ_FULL_ALL:
> > > 
> > >  If the user doesn't pass the nohz_full boot option to
> > >  define the range of full dynticks CPUs, consider that all
> > >  CPUs in the system are full dynticks by default.
> > >  Note the boot CPU will still be kept outside the range to
> > >  handle the timekeeping duty.
> > > 
> > > I can see people enabling that. Why are all CPUs lost if it's done?
> > 
> > Simple.  Rik made it such that cpu_isolated_map is immune to cpusets,
> > and Chris made tick_nohz_full_mask automatically set cpu_isolated_map,
> > so now if nohz_full is ever turned on, that CPU is gone from the generic
> > pool forever, with obvious consequences for CONFIG_NO_HZ_FULL_ALL.
> > 
> > Lovely eh?
> 
> Very clever. :^)
> 
> NO_HZ_FULL_ALL=n helps, thanks everyone.
> 
> I had it enabled since 3.10 for some reason.

Dave Jones was #1, I don't recall #2, but you're at least victim #3.

	-Mike


  reply	other threads:[~2015-10-03 12:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-02 20:46 4.2.2: NR_CPUS effectively being 1 bug Alexey Dobriyan
2015-10-02 21:00 ` Andrew Morton
2015-10-03  6:53   ` Peter Zijlstra
2015-10-03  7:38     ` Ingo Molnar
2015-10-03  8:15       ` Mike Galbraith
2015-10-03  8:18         ` Ingo Molnar
2015-10-03  8:24           ` Mike Galbraith
2015-10-03  8:52             ` Ingo Molnar
2015-10-03 12:04               ` Mike Galbraith
2015-10-03 12:31                 ` Frederic Weisbecker
2015-10-03 12:49                   ` Mike Galbraith
2015-10-03 12:14         ` Alexey Dobriyan
2015-10-03 12:19           ` Mike Galbraith [this message]
2015-10-03  6:50 ` Afzal Mohammed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443874769.3215.5.camel@gmail.com \
    --to=umgwanakikbuti@gmail.com \
    --cc=adobriyan@gmail.com \
    --cc=afzal.mohd.ma@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox