lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070321165230.257c61d1.dada1@cosmosbay.com>
Date:	Wed, 21 Mar 2007 16:52:30 +0100
From:	Eric Dumazet <dada1@...mosbay.com>
To:	"Pekka Enberg" <penberg@...helsinki.fi>
Cc:	"Christoph Lameter" <christoph@...eter.com>,
	"Andi Kleen" <andi@...stfloor.org>,
	"Andrew Morton" <akpm@...ux-foundation.org>,
	"linux kernel" <linux-kernel@...r.kernel.org>
Subject: Re: [RFC, PATCH] SLAB : [NUMA] keep nodeid in struct page instead
 of struct slab

On Wed, 21 Mar 2007 17:47:13 +0200
"Pekka Enberg" <penberg@...helsinki.fi> wrote:

> On 3/21/07, Eric Dumazet <dada1@...mosbay.com> wrote:
> > Last time I checked 'struct page', they was no nodeid in it.
> 
> Hmm, page_to_nid() in include/linx/mm.h doesn't agree with you:
> 
> #ifdef NODE_NOT_IN_PAGE_FLAGS
> extern int page_to_nid(struct page *page);
> #else
> static inline int page_to_nid(struct page *page)
> {
>         return (page->flags >> NODES_PGSHIFT) & NODES_MASK;
> }
> #endif
> 

Correct, but still another ifdef NODE_NOT_IN_PAGE_FLAGS

Anyway the correct path is to check GFP_THISNODE stuff, because we can
even avoid access to 'struct page' to get the nodeid, at least on x86_64 NUMA,
where struct memnode can provide the information with less cache footprint.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ