public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Lazy NUMA sorting?
@ 2004-04-15 21:12 Timothy Miller
  2004-04-15 22:07 ` Martin J. Bligh
  0 siblings, 1 reply; 2+ messages in thread
From: Timothy Miller @ 2004-04-15 21:12 UTC (permalink / raw)
  To: Linux Kernel Mailing List

So, I understand that the 2.6 SMP balancer redistributes workload on a 
periodic basis.  Once every second or something, it migrates processes.

A NUMA system would have to do something similar, where if there is a 
page which is referenced by only one process, and the page is located on 
the "wrong" node, it could be migrated.  This could be done gradually by 
a periodic background process.  Is this already how it works?

Also, if a page is being referenced by multiple nodes, the same 
background process could make mirror copies.  (Age of page would be an 
important consideration here so moves don't happen for short-lived pages.)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Lazy NUMA sorting?
  2004-04-15 21:12 Lazy NUMA sorting? Timothy Miller
@ 2004-04-15 22:07 ` Martin J. Bligh
  0 siblings, 0 replies; 2+ messages in thread
From: Martin J. Bligh @ 2004-04-15 22:07 UTC (permalink / raw)
  To: Timothy Miller, Linux Kernel Mailing List

> So, I understand that the 2.6 SMP balancer redistributes workload on a periodic basis.  Once every second or something, it migrates processes.
> 
> A NUMA system would have to do something similar, where if there is a page which is referenced by only one process, and the page is located on the "wrong" node, it could be migrated.  This could be done gradually by a periodic background process.  Is this already how it works?

We don't do page migration. It has proved extraordinarily hard to know when
to migrate pages correctly ... in conjunction with the cross-node movement
of tasks.

> Also, if a page is being referenced by multiple nodes, the same background process could make mirror copies.  (Age of page would be an important consideration here so moves don't happen for short-lived pages.)

We can do that for read-only mappings and kernel text already. Dave Hansen
did a patch for the read-only mappings, though I need to update it to the
latest kernel tree.

M.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-15 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15 21:12 Lazy NUMA sorting? Timothy Miller
2004-04-15 22:07 ` Martin J. Bligh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox