From: Ian Jackson Subject: Re: [PATCH RESEND 11/12] xl: numa-sched: enable getting/specifying per-vcpu node-affinity Date: Fri, 8 Nov 2013 15:18:23 +0000 Message-ID: <21117.191.14394.791489@mariner.uk.xensource.com> References: <20131105142844.30446.78671.stgit@Solace> <20131105143604.30446.53765.stgit@Solace> <21115.56554.192020.926963@mariner.uk.xensource.com> <1383903234.12181.19.camel@Abyss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383903234.12181.19.camel@Abyss> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Marcus Granado , Keir Fraser , Ian Campbell , Li Yechen , George Dunlap , Andrew Cooper , Juergen Gross , xen-devel@lists.xen.org, Jan Beulich , Justin Weaver , Daniel De Graaf , Matt Wilson , Elena Ufimtseva List-Id: xen-devel@lists.xenproject.org Dario Faggioli writes ("Re: [PATCH RESEND 11/12] xl: numa-sched: enable getting/specifying per-vcpu node-affinity"): > On gio, 2013-11-07 at 18:33 +0000, Ian Jackson wrote: > > Dario Faggioli writes ("[PATCH RESEND 11/12] xl: numa-sched: enable getting/specifying per-vcpu node-affinity"): > > > # xl vcpu-list -n > > > > > > Name ID VCPU CPU State Time(s) CPU Affinity / NUMA Affinity > > > Domain-0 0 0 8 -b- 4.4 any cpu / any node > > > Domain-0 0 1 0 -b- 1.2 any cpu / any node > > > vm-test 1 0 8 -b- 2.4 any cpu / 1 > > > vm-test 1 1 13 -b- 3.3 any cpu / 1 ... > > Can you use the same syntax for printing as would be legal in > > the config file ? > > > That is actually what is happening, for single cpu/node bitmaps. Err, I meant always, not just in one special case. Eg, "any cpu" should be "all". I don't know if you want to try to boil ranges cpumap ranges down to node sets during printing - that's probably too hard. > The problem arises when I need to print two bitmaps, one next to the > other, like the cpumap for vCPU affinity and the nodemap for NUMA > affinity above. Separating them with a / is fine I think. > (BTW, the new version of the series I'm preparing will be very > different, considering we decided with George and Jan to change the > fundamental architecture of the whole thing. However, there still may be > the need to doing something like the above, independently whether it > will be for printing hard and soft affinity, instead than CPU and NUMA > affinity.) Right. > > > xl manual page is updated accordingly. > > > > > -static int update_cpumap_range(const char *str, libxl_bitmap *cpumap) > > > +static int update_bitmap_range(const char *str, libxl_bitmap *bitmap) > > > > I don't understand how this set of changes relates to this patch. > > > Well, I need to parse strings that may be very similar (the usual > "1,2-7,^4" stuff), but with potentially different meaning for the > various substrings (pcpus vs. nodes). So perhaps there should be a pre-patch to change the names of these functions. > Anyway, in case I'm keeping this, or doing something similar to this for > the new series, I'll try to figure out a way to make it more simple, or > at minimum more readable and clarify why it is needed (by breaking the > patch down, etc.). Thanks, Ian.