Re: [RFC] pcibus_to_node implementation for ia64

From: Christoph Lameter <>
Date: 2005-05-12 01:49:24
On Wed, 11 May 2005, colin ngam wrote:

> >That's certainly another way to go--just make the function do a search
> >to find the closest node with memory (and/or CPUs) all by itself.  The
> >obvious disadvantage is that you'll incur that cost on every function
> >call unless you build a lookup table at boot time or somesuch.

This search is performed by alloc_pages using the zonelists.

> How often do you do this to worry about latency?

Currently pcibus_to_node is only used during device initialization to
allocate the control structures on a node.

> >That's where things get confusing, since 'node' is an overloaded term
> >here.  It does *not* return a node that you can pass into
> >alloc_pages_node for instance, which I think is what Christoph wants.
> >It does, however, return a node id in the cnodeid sense, but one that
> >could be useless in most parts of the kernel.
> >
> >
> Exactly.

How do I get a node that I can pass to alloc_pages_node?

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed May 11 11:53:08 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:38 EST