From: Dario Faggioli <dario.faggioli@citrix.com>
To: Sarah Newman <srn@prgmr.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xen.org
Subject: Re: Can't always start 32 bit domains after 64 bit domains
Date: Tue, 22 Nov 2016 19:37:20 +0100 [thread overview]
Message-ID: <1479839840.2712.31.camel@citrix.com> (raw)
In-Reply-To: <fd1dec0f-cb92-54a6-e7d2-db6051edb187@prgmr.com>
[-- Attachment #1.1: Type: text/plain, Size: 1973 bytes --]
On Mon, 2016-11-21 at 11:37 -0800, Sarah Newman wrote:
> On 11/21/2016 05:21 AM, Andrew Cooper wrote:
> > I suspect that libxl's preference towards NUMA allocation of
> > domains
> > interferes with this, by adding a NUMA constraints to memory
> > allocations
> > for 64bit PV guests.
>
> I ran xl info -n (which I didn't know about before) and that shows
> the problem much more clearly.
>
> If that's the reason not all the higher memory is being used first:
> is a potential workaround to pin 64 bit domains to the second
> physical core on
> boot, and 32 bit domains to the first physical core on boot, and then
> change the allowed cores with 'xl vcpu-pin' after the domain is
> loaded?
>
If you're looking for a way to disable libxl's NUMA-aware domain
placement --which does indeed interfere whit what memory (as in, the
memory of what NUMA node) is going to be used for the domains-- you can
"just" specify this, in all the domains' config files:
cpus="all"
This will leave all the vcpus free to run everywhere, and stop libxl to
pass down to Xen any hint on memory allocation.
Using
cpus="foo"
and/or
cpus_soft="bar"
would allow to tweak things more.
And the same is true for creating cpupools, with specific cpus from
specific NUMA nodes in them, and creating the domain direcly inside
those various pools.
That being said, what values are the best for your use case, I'm not
really sure... But maybe have a look at this.
Some more info:
https://wiki.xen.org/wiki/Xen_on_NUMA_Machines
https://wiki.xen.org/wiki/Xen_4.3_NUMA_Aware_Scheduling
https://wiki.xen.org/wiki/Tuning_Xen_for_Performance#vCPU_Soft_Affinity_for_guests
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-11-22 18:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3423fa13-18bd-ff7b-f44a-af015eda2eb7@prgmr.com>
2016-11-19 21:22 ` Can't always start 32 bit domains after 64 bit domains Sarah Newman
2016-11-21 8:20 ` Jan Beulich
2016-11-21 9:45 ` Sarah Newman
2016-11-21 10:05 ` Jan Beulich
2016-11-21 13:21 ` Andrew Cooper
2016-11-21 19:37 ` Sarah Newman
2016-11-21 21:06 ` Sarah Newman
2016-11-22 18:46 ` Dario Faggioli
2016-11-22 19:37 ` Sarah Newman
2016-11-22 21:40 ` Dario Faggioli
2016-11-27 1:14 ` Dario Faggioli
2016-11-27 2:46 ` Sarah Newman
2016-11-22 18:37 ` Dario Faggioli [this message]
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=1479839840.2712.31.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=srn@prgmr.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).