This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH 2/3] xend: Add multiple cpumasks support

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/3] xend: Add multiple cpumasks support
From: Ryan Harper <ryanh@xxxxxxxxxx>
Date: Tue, 15 Aug 2006 17:58:37 -0500
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Ryan Harper <ryanh@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Ryan Grimm <grimm@xxxxxxxxxx>
Delivery-date: Tue, 15 Aug 2006 15:59:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1074D77.E40%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060814222021.GS1694@xxxxxxxxxx> <C1074D77.E40%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
* Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> [2006-08-15 17:36]:
> On 14/8/06 11:20 pm, "Ryan Harper" <ryanh@xxxxxxxxxx> wrote:
> >> Either Keir's cpu[X] = "Y" approach or my cpu = [ "A","B","C" ] approach
> >> seem workable.
> >> 
> >> Keir's approach is rather ill defined if someone tries using both cpu=
> >> and cpu[X]= in the same config file, but I don't see that as a big
> >> problem.  Take your pick :-)
> > 
> > I'm leaning toward the list notation since I already have code that
> > parses that properly.
> Am I mistaken or aren't both the above forms basically the same (in both
> cases 'cpu' is a list of strings)? I like this form, even if we cook it down
> in xm into a different sxp syntax (if you want to avoid python lists in the
> sxp).

I'm not really opposed to any particular way.  IMO, I think that having a
single config variable, cpus, is simpler, and more compact, for
instance, when passing a one-time value on the command line.  Certainly
cpu[X]="Y" is easier to understand, but I don't think it is a far
stretch to list form.

If we went with cpu[X]="Y", would we do away with cpus?  If not, would
a cpus value map to cpu[0]?  And what about 'cpu', which currently is
prepended to the cpus value, which retains the behavior of pinning

I'm about to resend the patches which currently parse the list form,
[ "a", "b", "c" ].  If you are set on cpu[X]="Y" and we know how we want
to handled the cases I mentioned above, I can rework to suit.  My
preference is the list form which has the benefit of working code
behind it.

Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>