Re: [RFC] prefer allocations from nodes w/o CPUs

From: Jesse Barnes <jbarnes_at_engr.sgi.com>
Date: 2004-11-05 04:49:53
On Thursday, November 4, 2004 9:33 am, Jesse Barnes wrote:
> On Thursday, November 4, 2004 9:32 am, Alex Tsariounov wrote:
> > On Thu, Nov 04, 2004 at 10:11:19AM -0700, Alex Williamson wrote:
> > > On Thu, 2004-11-04 at 08:57 -0800, Jesse Barnes wrote:
> > > > Small patch for the ia64 version of topology.h to make the zonelist
> > > > building code prefer nodes w/o CPUs for allocations.  Do any
> > > > platforms aside from Altix have nodes with only memory?  If not, then
> > > > this will only affect sn2, otherwise I'm interested in hearing
> > > > feedback.
> > >
> > >    Yes, hp sx1000 systems represent interleaved memory in a separate
> > > node w/o cpus.
> >
> > So what's the ramifications of this patch?  Does this mean that
> > interleaved memory will now be preferably allocated over cell
> > local memory on sx1000 systems?
>
> Memory local to the node will come first, followed by the closest memory
> that doesn't have associated CPUs, followed by memory belonging to other
> CPUs.

Actually, I lied.  There's a bug in find_next_best_node that prevents the 
local node from coming first if the PENALTY_FOR_NODE_WITH_CPUS is set high 
enough.  Here's the fix (I'll send it to Andrew shortly).

Jesse

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Thu Nov 4 12:55:50 2004

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