linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Josh Boyer <jwboyer@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Josh Boyer <jwboyer@fedoraproject.org>,
	Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: [GIT PULL] core kernel update
Date: Tue, 19 Nov 2013 20:18:06 +0100	[thread overview]
Message-ID: <20131119191806.GA22620@gmail.com> (raw)
In-Reply-To: <20131119191434.GQ16796@laptop.programming.kicks-ass.net>


* Peter Zijlstra <peterz@infradead.org> wrote:

> On Tue, Nov 19, 2013 at 08:09:04PM +0100, Ingo Molnar wrote:
> > The actual value of the limit - here's the on-stack cpumask sizes of 
> > the candidate range:
> > 
> > 	128 CPUs: 16 byte cpumasks
> > 	256 CPUs: 32 byte cpumasks
> > 	512 CPUs: 64 byte cpumasks
> 
> So 512 / 64bytes is a single cacheline and feels like a nice cut-off
> before requiring an extra indirection and more cachelines.
> 
> 64 bytes also doesn't sound _that_ big to have on-stack.

The cacheline size itself isn't necessarily super meaningful for 
on-stack variables: they are rarely cacheline aligned so they will 
take part in two cachelines.

> So I'd go for having the cut-off on >512, unless of course theres 
> evidence 64bytes is already too much.

I'm fine with that in any case, for the other reason I outlined: it's 
the highest one and we can iterate down if it proves to be bad. If we 
start out too low we'll probably never know it was too low.

Thanks,

	Ingo

  reply	other threads:[~2013-11-19 19:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 15:42 [GIT PULL] core kernel update Ingo Molnar
2013-11-19 18:47 ` Linus Torvalds
2013-11-19 19:09   ` Ingo Molnar
2013-11-19 19:14     ` Peter Zijlstra
2013-11-19 19:18       ` Ingo Molnar [this message]
2013-11-19 19:18     ` Linus Torvalds
2013-11-19 23:05     ` Rusty Russell
2013-11-20 11:50       ` Ingo Molnar

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=20131119191806.GA22620@gmail.com \
    --to=mingo@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=jwboyer@fedoraproject.org \
    --cc=jwboyer@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=rusty@rustcorp.com.au \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).