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>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] xend: update cpu config option
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 16 Nov 2005 22:06:54 -0000
Delivery-date: Wed, 16 Nov 2005 22:06:55 +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: AcXq9rGB+a0/st9tQgSM4vRzWIUoBAAAX36w
Thread-topic: [Xen-devel] [PATCH] xend: update cpu config option
 > The 'cpu' option in domain config files will pin VCPU0 of a domain.
> This is not as useful now that domains can have more than 1 
> vcpu.  This patch changes 'cpu' to 'cpus' and takes a list of 
> physical cpus the domains' vcpus can use and will pin the 
> vcpus upon domain creation.
> 
> cpus = [1]      # this starts all domain vcpus pinned to CPU1

I think this patch is generally a good thing. Should we support cpu= as
backward compatible legacy option?
 
> The list is circular, so in a domain with the following config:
> 
> vcpus = 4
> cpus  = [0,3,7]  # Use any of 0, 3, 7 for this domain.
> 
> would see vcpus 0-3 pinned to cpus 0,3,7,0 respectively.

Actually, although this is a reasonable syntax, I think we'll probably
interpret it differently in future when we have CPU load ballancing: I
think we'll want to list the set of CPUs that a given _domain_ can use
rather than pining individual CPUs.

However, I wander whether this should be a string so that we can list
e.g. cpus='0-3,5,^1'


Ian

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