public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: Andi Kleen <andi@firstfloor.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Christoph Lameter <christoph@lameter.com>,
	linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: [RFC, PATCH] SLAB : [NUMA] keep nodeid in struct page instead of struct slab
Date: Wed, 21 Mar 2007 17:08:46 +0100	[thread overview]
Message-ID: <20070321160846.GA25583@one.firstfloor.org> (raw)
In-Reply-To: <20070321102231.7288f231.dada1@cosmosbay.com>

On Wed, Mar 21, 2007 at 10:22:31AM +0100, Eric Dumazet wrote:
> In order to avoid a cache miss in kmem_cache_free() on NUMA and reduce hot path length, we could exploit the following common facts.
> 
> 1) MAX_NUMNODES <= 64
> 
> 2) alignment of 'struct kmem_cache *' can be >= 64
> 
> The following patch changes the page->lru.next to contain not only the 'struct kmem_cache *' pointer, but also the nodeid in the low order bits.
> 

It might be cleaner to just put it into flags on 64bit. There is enough
space there and we don't really care about 32bit NUMA machines.

-Andi

      parent reply	other threads:[~2007-03-21 16:08 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21  9:22 [RFC, PATCH] SLAB : [NUMA] keep nodeid in struct page instead of struct slab Eric Dumazet
2007-03-21 12:21 ` Pekka Enberg
2007-03-21 14:42   ` Christoph Lameter
2007-03-21 15:03     ` Pekka Enberg
2007-03-21 15:43       ` Christoph Lameter
2007-03-21 15:42     ` Pekka J Enberg
2007-03-21 15:49       ` Eric Dumazet
2007-03-21 15:55         ` Pekka J Enberg
2007-03-21 16:09       ` Andi Kleen
2007-03-21 16:19         ` Pekka Enberg
2007-03-21 16:27         ` Christoph Lameter
2007-03-23 11:15         ` [RFC] NUMA : could we introduce virt_to_nid() ? Eric Dumazet
2007-03-23 12:48           ` Pekka Enberg
2007-03-23 13:53             ` Eric Dumazet
2007-03-23 14:16           ` Andi Kleen
2007-03-23 14:50           ` Christoph Lameter
2007-03-23 16:22             ` Eric Dumazet
2007-03-23 17:19               ` Christoph Lameter
2007-03-21 12:27 ` [RFC, PATCH] SLAB : [NUMA] keep nodeid in struct page instead of struct slab Pekka Enberg
2007-03-21 14:41 ` Christoph Lameter
2007-03-21 15:36   ` Eric Dumazet
2007-03-21 15:44     ` Christoph Lameter
2007-03-21 15:58       ` Eric Dumazet
2007-03-21 15:47     ` Pekka Enberg
2007-03-21 15:52       ` Eric Dumazet
2007-03-21 16:08 ` Andi Kleen [this message]

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=20070321160846.GA25583@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=akpm@linux-foundation.org \
    --cc=christoph@lameter.com \
    --cc=dada1@cosmosbay.com \
    --cc=linux-kernel@vger.kernel.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