lkml.org 
[lkml]   [2002]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.4.19pre1aa1
On Mon, 04 Mar 2002 08:59:10 -0800
"Martin J. Bligh" <Martin.Bligh@us.ibm.com> wrote:

> 2) We can do local per-node scanning - no need to bounce
> information to and fro across the interconnect just to see what's
> worth swapping out.

Well, you can achieve this by "attaching" the nodes' local memory (zone) to its cpu and let the vm work preferably only on these attached zones (regarding the list scanning and the like). This way you have no interconnect traffic generated. But this is in no way related to rmap.

> I suspect that the performance of NUMA under memory pressure
> without the rmap stuff will be truly horrific, as we decend into
> a cache-trashing page transfer war.

I guess you are right for the current implementation, but I doubt rmap will be a _real_ solution to your problem.

> I can't see any way to fix this without some sort of rmap - any
> other suggestions as to how this might be done?

As stated above: try to bring in per-node zones that are preferred by their cpu. This can work equally well for UP,SMP and NUMA (maybe even for cluster).
UP=every zone is one or more preferred zone(s)
SMP=every zone is one or more preferred zone(s)
NUMA=every cpu has one or more preferred zone(s), but can walk the whole zone-list if necessary.
cluster=every cpu has one or more preferred zone(s), but cannot walk the whole zone-list.

Preference is implemented as simple list of cpu-ids attached to every memory zone. This is for being able to see the whole picture. Every cpu has a private list of (preferred) zones which is used by vm for the scanning jobs (swap et al). This way there is no need to touch interconnection. If you are really in a bad situation you can alway go back to the global list and do whatever is needed.
This sounds pretty scalable and runtime-configurable. And not related to rmap...

Beat me,
Stephan

PS: Drop clusters from the discussion, I know this would become weird.

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

\
 
 \ /
  Last update: 2005-03-22 13:24    [from the cache]
©2003-2011 Jasper Spaans