All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Dario Faggioli <raistlin@linux.it>
Cc: Andre Przywara <andre.przywara@amd.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
	Juergen Gross <juergen.gross@ts.fujitsu.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH 09 of 10 v3] libxl: have NUMA placement deal with cpupools
Date: Fri, 6 Jul 2012 14:27:16 +0100	[thread overview]
Message-ID: <4FF6E7B4.6070204@eu.citrix.com> (raw)
In-Reply-To: <1341580217.15708.27.camel@Abyss>

On 06/07/12 14:10, Dario Faggioli wrote:
> On Fri, 2012-07-06 at 13:42 +0100, George Dunlap wrote:
>>> libxl: have NUMA placement deal with cpupools
>>>
>>> In such a way that only the cpus belonging to the cpupool of the
>>> domain being placed are considered for the placement itself.
>>>
>>> This happens by filtering out all the nodes in which the cpupool has
>>> not any cpu from the placement candidates. After that -- as a cpu pooling
>>> not necessarily happens at NUMA nodes boundaries -- we also make sure
>>> only the actual cpus that are part of the pool are considered when
>>> counting how much processors a placement candidate is able to provide.
>>>
>>> Signed-off-by: Dario Faggioli<dario.faggioli@citrix.com>
>>> Acked-by: Ian Campbell<ian.campbell@citrix.com>
>> If I'm reading this right, the filtering won't prevent duplicate entries
>> returned from get_numa_candidates; is that right?  I.e., suppose you
>> have a 4-node system and you run "xl cpupool-numa-split" to get one pool
>> per node.  Before this patch, your generator might return the following
>> sets containing node 0:
>> {0}
>> {0,1}
>> {0,2}
>> {0,3}
>> {0,1,2}
>> {0,1,3}
>> {0,1,2,3}
>> {0,2,3}
>>
>> But now, if the domain is placed in a cpupool that has only numa node 0,
>> it will return 8 copies of {0}.  Is that correct?
>>
> It is. As the generation happens before cpupool are being considered at
> all. Point is, while the number of cores could be quite high (and
> continue to grow), the number of NUMA nodes in existing machines that
> such a case won't hurt that much. Anyway, you're definitely right, it
> would have been possible to do much better.
>
> Maybe, if we're cool with patch 8, we can jut skip this for now, and
> I'll resubmit a separate patch (where I'll deal with duplicates) like
> later or on Monday?
Well, before discussing acking or nacking, I just wanted to establish 
that this is what the code did.  The thing is, apart from re-writing 
your generator only to use nodes in the cpupool, the most efficient 
thing to get rid of duplicates is probably to do a sort anyway; so the 
end-to-end number of operations may end up similar either way.

Why don't we do this: let's check in this version, so we can start 
getting the cpu placement stuff tested.  Then if there's time, you can 
post patches to do the filtering at the node generation stage rather 
than the filtering stage.  Does that make sense?

  -George

  reply	other threads:[~2012-07-06 13:27 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 16:17 [PATCH 00 of 10 v3] Automatic NUMA placement for xl Dario Faggioli
2012-07-04 16:18 ` [PATCH 01 of 10 v3] libxl: add a new Array type to the IDL Dario Faggioli
2012-07-04 16:18 ` [PATCH 02 of 10 v3] libxl, libxc: introduce libxl_get_numainfo() Dario Faggioli
2012-07-06 10:35   ` Ian Campbell
2012-07-04 16:18 ` [PATCH 03 of 10 v3] xl: add more NUMA information to `xl info -n' Dario Faggioli
2012-07-06 11:37   ` Ian Campbell
2012-07-06 12:00     ` Dario Faggioli
2012-07-06 12:15       ` Ian Campbell
2012-07-06 12:52         ` Dario Faggioli
2012-07-04 16:18 ` [PATCH 04 of 10 v3] libxl: rename libxl_cpumap to libxl_bitmap Dario Faggioli
2012-07-06 10:39   ` Ian Campbell
2012-07-04 16:18 ` [PATCH 05 of 10 v3] libxl: expand the libxl_bitmap API a bit Dario Faggioli
2012-07-06 10:40   ` Ian Campbell
2012-07-04 16:18 ` [PATCH 06 of 10 v3] libxl: introduce some node map helpers Dario Faggioli
2012-07-04 16:18 ` [PATCH 07 of 10 v3] libxl: explicitly check for libmath in autoconf Dario Faggioli
2012-07-04 16:44   ` Roger Pau Monne
2012-07-06 11:42   ` Ian Campbell
2012-07-06 11:54     ` Dario Faggioli
2012-07-04 16:18 ` [PATCH 08 of 10 v3] libxl: enable automatic placement of guests on NUMA nodes Dario Faggioli
2012-07-04 16:41   ` Dario Faggioli
2012-07-06 10:55   ` Ian Campbell
2012-07-06 13:03     ` Dario Faggioli
2012-07-06 13:21       ` Ian Campbell
2012-07-06 13:52         ` Dario Faggioli
2012-07-06 13:54           ` Ian Campbell
2012-07-06 11:30   ` George Dunlap
2012-07-06 13:00     ` Dario Faggioli
2012-07-06 13:05       ` George Dunlap
2012-07-06 14:35         ` Dario Faggioli
2012-07-06 14:40           ` George Dunlap
2012-07-06 16:27             ` Ian Campbell
2012-07-04 16:18 ` [PATCH 09 of 10 v3] libxl: have NUMA placement deal with cpupools Dario Faggioli
2012-07-06 12:42   ` George Dunlap
2012-07-06 13:10     ` Dario Faggioli
2012-07-06 13:27       ` George Dunlap [this message]
2012-07-06 13:32         ` Ian Campbell
2012-07-06 13:42         ` Dario Faggioli
2012-07-10 15:16         ` Dario Faggioli
2012-07-04 16:18 ` [PATCH 10 of 10 v3] Some automatic NUMA placement documentation Dario Faggioli
2012-07-06 14:08   ` George Dunlap
2012-07-06 14:26     ` George Dunlap
2012-07-06 14:37       ` Dario Faggioli
2012-07-06 11:16 ` [PATCH 00 of 10 v3] Automatic NUMA placement for xl Ian Campbell
2012-07-06 11:20   ` Ian Campbell
2012-07-06 11:22     ` Ian Campbell
2012-07-06 13:05       ` Dario Faggioli
2012-07-06 12:19 ` Ian Campbell
2012-07-08 18:32 ` Ian Campbell
2012-07-09 14:32   ` Dario Faggioli

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=4FF6E7B4.6070204@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=andre.przywara@amd.com \
    --cc=juergen.gross@ts.fujitsu.com \
    --cc=raistlin@linux.it \
    --cc=roger.pau@citrix.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 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.