From: tgh <tianguanhua@ncic.ac.cn>
To: Daniel Stodden <stodden@cs.tum.edu>
Cc: Xen Developers <xen-devel@lists.xensource.com>
Subject: Re: Re: NUMA and SMP
Date: Wed, 21 Mar 2007 09:08:34 +0800 [thread overview]
Message-ID: <46008592.5070603@ncic.ac.cn> (raw)
In-Reply-To: <1174398691.5642.43.camel@lapbode42.lrr.in.tum.de>
Thank you for your reply
Daniel Stodden 写道:
> On Tue, 2007-03-20 at 21:10 +0800, tgh wrote:
>
>> I am puzzled ,what is the page migration?
>> Thank you in advance
>>
>
> NUMA is clear? NUMA distributes main memory across multiple memory
> interfaces.
>
> This used to be a feature reserved to high-end multiprocessor
> architectures, but in servers it is becoming sort of a commodity these
> days, in part due AMD multiprocessor systems being NUMA systems these
> days. AMD64 processors carry an integrated memory controller. So, if you
> buy an SMP machine with AMD processors today, you'd find each slice of
> the total memory being connected to a different processor inside.
>
> Note that this doesn't break the 'symmetric' in 'SMP': it still remains
> a global, flat physical address space. The processors have interconnects
> by which memory can be read from remote processors as well, and will do
> so transparently to system and application software.
>
that is ,in the smp with adm64,it is a numa in the hardware
architecture,while a smp in the system software,is it right?
Thank you in advance
> [The alternative is rather the 'classic' model: Multiple processors
> interconnected making SMP, but single memory interface in a single
> northbridge (Intel would call it the "MCH") connecting to the front-side
> bus, connecting all processors them to main memory. Obviously, that
> single memory interface will easily become a bottleneck, if all
> processors try to access memory simultaneously.]
>
> NUMA *may* help here: accessing local memory is very fast. Acessing
> remote memory is still pretty fast, but not as fast as it could be:
> hence 'NUMA' - non-uniform memory access.
>
> So, in order to take advantage of such a memory topology, memory data
> would ideally be always at the CPU where the processing happens. But
> processes (or domains, regarding xen) may migrate between different
> processors. Whether this happens depends on scheduling decisions.
> There's a cost involved in migration itself, so schedulers will do it
> ideally only if it really-makes-sense(TM).
>
> In order to keep a NUMA-system happy, pages once allocated could be
> moved as well, to where the current CPU is. This is page migration.
> As you may imagine, even more costly, and unfortunately completely
> useless if cpu migration needs to happen on a regular basis. Therefore
> it's difficult to get it right. Getting it right depends on how much the
> scheduler and memory management knows about where the memory asked for
> will be needed -- in advance. This is the hardest part: Most software
> won't tell, because the programming models employed today do not even
> recognize the fact that it may matter. Even if they would, in many
> cases, it would be even difficult to predict at all.
>
> regards,
> daniel
>
>
next prev parent reply other threads:[~2007-03-21 1:08 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-14 11:55 NUMA and SMP David Pilger
2007-01-14 19:00 ` Ryan Harper
2007-01-15 17:21 ` Anthony Liguori
2007-01-16 10:47 ` Petersson, Mats
2007-01-16 13:55 ` Emmanuel Ackaouy
2007-01-16 14:19 ` Petersson, Mats
2007-01-16 16:13 ` Emmanuel Ackaouy
2007-01-16 16:30 ` Petersson, Mats
2007-03-20 13:10 ` tgh
2007-03-20 13:19 ` Petersson, Mats
2007-03-20 13:49 ` tgh
2007-03-20 15:50 ` Petersson, Mats
2007-03-20 16:45 ` Ryan Harper
2007-03-20 16:47 ` Petersson, Mats
2007-03-20 13:51 ` Daniel Stodden
2007-03-21 1:08 ` tgh [this message]
2007-03-21 2:45 ` Daniel Stodden
2007-03-22 1:16 ` tgh
2007-03-22 10:42 ` Daniel Stodden
2007-03-22 12:13 ` tgh
2007-03-22 12:28 ` Daniel Stodden
2007-03-22 13:02 ` Ryan Harper
2007-03-22 14:56 ` Daniel Stodden
2007-03-22 15:12 ` Ryan Harper
2007-03-22 15:38 ` Daniel Stodden
2007-03-22 16:01 ` Ryan Harper
2007-03-22 16:22 ` Daniel Stodden
2007-03-22 17:02 ` Ryan Harper
2007-03-23 5:47 ` tgh
2007-03-23 14:42 ` Ryan Harper
2007-03-23 14:48 ` Petersson, Mats
2007-03-28 1:50 ` tgh
2007-03-28 2:01 ` Ryan Harper
2007-03-28 21:25 ` The context switch overhead comparison between vmexit/vmentry and hypercall Liang Yang
2007-01-16 14:51 ` Re: NUMA and SMP ron minnich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46008592.5070603@ncic.ac.cn \
--to=tianguanhua@ncic.ac.cn \
--cc=stodden@cs.tum.edu \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.