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 3/3] tools/xm-test: add cpus parm test in create

To: Ryan Harper <ryanh@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 3/3] tools/xm-test: add cpus parm test in create bucket
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 16 Aug 2006 15:43:06 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 16 Aug 2006 07:43:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060816142752.GW1694@xxxxxxxxxx>
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: AcbBQkjMhxq4tS01Edu/QAAKle7CWA==
Thread-topic: [Xen-devel] [PATCH 3/3] tools/xm-test: add cpus parm test in create bucket
User-agent: Microsoft-Entourage/11.2.5.060620


On 16/8/06 3:27 pm, "Ryan Harper" <ryanh@xxxxxxxxxx> wrote:

> As long as the first cpu in the mask is available then the affinity
> settings will succeed.

Really? Xen itself doesn't have such a test (at least not any more) I
believe. Xen ANDs the mask with cpu_online_map and then complains if the
result is empty.

 -- Keir

>  In my current revision of the test I examined the
> number of vcpus in the test strings but I think instead I'll examine all
> of the test strings and compare the first value of every set.  The max
> of those values is the minimum number of cpus needed since xen will pin
> the vcpu to the first bit in the affinity mask.



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