public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: Amul Shah <amul.shah@unisys.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86_64: Make the NUMA hash function nodemap allocation dynamic and remove NODEMAPSIZE
Date: Fri, 10 Nov 2006 10:51:52 +0100	[thread overview]
Message-ID: <200611101051.52727.ak@suse.de> (raw)
In-Reply-To: <200611101043.14749.dada1@cosmosbay.com>


> Therefore I suggest to use a structure like that :
> 
> struct memnode {
>  	int shift;
> 	unsigned int mapsize; /* no need to use 8 bytes here */
> 	u8 *map;
> 	u8 embedded_map[64-8]; /* total size = 64 bytes */
>  } ____cacheline_aligned;
> 
> and make memnode.map point to memnode.embedded_map if mapsize <= 56 ?

That's a good idea yes.

-Andi

  parent reply	other threads:[~2006-11-10  9:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08 23:37 [PATCH] x86_64: Make the NUMA hash function nodemap allocation dynamic and remove NODEMAPSIZE Amul Shah
2006-11-10  6:48 ` Andi Kleen
2006-11-10  9:43   ` Eric Dumazet
2006-11-10  9:46     ` Eric Dumazet
2006-11-10  9:51     ` Andi Kleen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-11-15 21:48 Amul Shah
2006-11-26 20:49 ` Andi Kleen
2006-11-27 10:23   ` Eric Dumazet
2006-11-27 15:32     ` Amul Shah
2006-11-27 15:38       ` Andi Kleen

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=200611101051.52727.ak@suse.de \
    --to=ak@suse.de \
    --cc=amul.shah@unisys.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