From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Andre Przywara <andre.przywara@amd.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"yunhong.jiang@intel.com" <yunhong.jiang@intel.com>
Subject: Re: [PATCH] xend: Fix non-contiguous NUMA node assignment
Date: Sun, 17 Jan 2010 17:48:50 +0000 [thread overview]
Message-ID: <C778FE02.6761%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <4B506D7F.1050500@amd.com>
nr_nodes was always num_online_nodes() returned by Xen -- not accounting for
holes in node id space. Hance I emulated that behaviour from the Python
extension package. If what you actually want everywhere in the Python code
is max_node_id, then please remove the nr_nodes code from xc.c and all
references to it from the Python code. I agree that using max_node_id seems
more correct than nr_nodes -- the intention was for someone to plumb that
new field properly into the Python code anyway.
-- Keir
On 15/01/2010 13:28, "Andre Przywara" <andre.przywara@amd.com> wrote:
> Hi,
>
> it seems that I missed a point in this whole addition of max_node_id. I
> see the difference in the Xen HV part, so nr_nodes got replaced with
> max_node_id in physinfo_t (and xc_physinfo_t, respectively).
> But where does this value help in xend? There is no single Python
> reference to the physinfo()'s max_node_id field, instead all functions
> use the old (but now bogus) nr_nodes variable.
> So in the attached patch I kept the xc.physinfo() returned dictionary
> with only a nr_nodes field, calculated by simply adding 1 to max_node_id
> from libxc. Empty nodes can (and will) be detected by iterating through
> the node_to_cpus and node_to_memory lists.
> Nodes without memory should not be considered during guest's memory
> allocation, but will be used for further CPU affinity setting if the
> number of VCPUs exceeds the number of cores per node.
>
> Please correct me if I am totally wrong on this, but this seems to work
> much better in my case.
>
> Regards,
> Andre.
>
> Signed-off-by: Andre Przywara <andre.przywara@amd.com>
next prev parent reply other threads:[~2010-01-17 17:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-15 13:28 [PATCH] xend: Fix non-contiguous NUMA node assignment Andre Przywara
2010-01-17 2:10 ` Jiang, Yunhong
2010-01-17 17:48 ` Keir Fraser [this message]
2010-01-17 18:55 ` Keir Fraser
2010-01-18 8:53 ` Andre Przywara
2010-01-18 9:19 ` 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=C778FE02.6761%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=andre.przywara@amd.com \
--cc=xen-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.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.