WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] xend: update cpu config option

To: "Ryan Harper" <ryanh@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] xend: update cpu config option
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 16 Nov 2005 22:59:24 -0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 16 Nov 2005 22:59:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXq/WUu8PP/4o/eRA+2myCrGj6/TwAAvhkw
Thread-topic: [Xen-devel] [PATCH] xend: update cpu config option
 


> I think the list is already representative of that idea: this 
> is a list of cpus that any of the vcpus in this domain can 
> use.  Currently without a load balancer we only get one go at 
> vcpu to cpu allocation.
> 
> Also, no reason we can't replace the current algorithm down 
> the road with a call out to the load balancer which would 
> supply the mappings.

Yes, that's what I was getting at.
 
> > However, I wander whether this should be a string so that 
> we can list 
> > e.g. cpus='0-3,5,^1'
> 
> I like that notation better, but it opens up a few questions. 
>  Do you mean the commas to indicate which cpus each vcpu is 
> allowed to use, or just a list of cpus the domain can use?  

Just a list the domain can use.

> Also, I take ^1 to mean any cpu, yes?

No, I meant 'not CPU 1'. It takes precendence over 0-3 as its later in
the list, so the final set of usable CPUs for this domain would be
0,2,3,5

> I'll end up converting the string into a big list of possible 
> cpus to use and for each vcpu pick a cpu and pin it there.

That's good for the moment, though we'll probably turn it into a list of
CPUs available to the domain. 

Best,
Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel