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
>> 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 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.
>
> 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.

As I understand the current code (ie this may be totally wrong ;-) ) I think
we already pretty much have what you're suggesting. There's one (or more)
zone per node chained off the pgdata_t, and during memory allocation we
try to scan through the zones attatched to the local node first. The problem
seems to me to be that the way we do current swap-out scanning is virtual,
not physical, and thus cannot be per zone => per node.

Am I totally missing your point here?

Thanks,

Martin.



-
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    [W:0.111 / U:0.164 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site