[lkml]   [2007]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC, PATCH] SLAB : [NUMA] keep nodeid in struct page instead of struct slab
On Wed, 21 Mar 2007 17:47:13 +0200
"Pekka Enberg" <> wrote:

> On 3/21/07, Eric Dumazet <> 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:
> 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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-03-21 16:57    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean