From: "Andre Przywara" <andre.przywara@amd.com>
To: Ryan Harper <ryanh@us.ibm.com>
Cc: Christoph Egger <christoph.egger@amd.com>,
xen-devel@lists.xensource.com, Keir Fraser <keir@xensource.com>
Subject: Re: [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call
Date: Wed, 15 Aug 2007 12:12:56 +0200 [thread overview]
Message-ID: <46C2D1A8.1030001@amd.com> (raw)
In-Reply-To: <20070813204947.GC1228@us.ibm.com>
Ryan Harper wrote:
> One concern has been the static nature of the ACPI SRAT data versus the
> dynamic ability of the vcpu to cpu mapping. If the scheduler is
> migrating the guest vcpu to various cpus, then the SRAT information is
> likely to be incorrect.
I think this is a problem even for the native OSes when you think of
CPU- and/or memory-hotplugging. Although Linux can do CPU hotplugging,
AFAIK NUMA isn't currently considered in this process. I think the most
feasible approach would be to rebuild all affected structures when the
hotplug event occurs. This will probably considered quite rare and thus
could be potentially more costly, so I this is not something you want to
do every time Xen decides to reschedule a VCPU. So IMHO pinning VCPUs to
a certain node (actually all cores within this node) is OK for now.
>
> That said, if one creates a vnode, and it sufficiently restricts the
> vcpu affinity, then accurate SRAT information can be exported for the
> guest to utilize.
My patch does this automatically. CPU affinity information from the
config file is ignored and each VCPUs affinity is set to match the NUMA
topology.
Regards,
Andre.
--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 277-84917
----to satisfy European Law for business letters:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden,
Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington,
Delaware, USA)
Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
next prev parent reply other threads:[~2007-08-15 10:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-13 10:02 [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call Andre Przywara
2007-08-13 10:30 ` Keir Fraser
2007-08-13 12:59 ` Christoph Egger
2007-08-13 14:00 ` Isaku Yamahata
2007-08-13 14:06 ` Keir Fraser
2007-08-13 20:49 ` Ryan Harper
2007-08-15 10:12 ` Andre Przywara [this message]
2007-08-15 11:18 ` Andi Kleen
2007-08-15 10:13 ` Andre Przywara
2007-08-15 10:43 ` Keir Fraser
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=46C2D1A8.1030001@amd.com \
--to=andre.przywara@amd.com \
--cc=christoph.egger@amd.com \
--cc=keir@xensource.com \
--cc=ryanh@us.ibm.com \
--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.