[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xl cpupool-numa-split: reduce number of Dom0 vcpus


  • To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Wed, 16 Feb 2011 09:40:55 +0100
  • Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 16 Feb 2011 00:42:32 -0800
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=SLdbgzhvR3COGN3vk3rNq99s1ZSEcKh5N7q3uBao2GaFpGfHYO7439zx QA2FBT7wumuJ4l/yQU3Ne2abYTgu4dWp+Pt1JLHGOAPb99/0w/hMqYoIM qXhFAfGej+82iGRwnQ4jzomx+Zr3g+5YXTW0gHDMukooVaZ8iAL7jVSP5 8ILg3w6XQTKgHUHYetLWVUqv1YH5HAaQEVO4k5Q1kkboKxDj83XNrozjW ygdl6XaAhQlOYGYIVUDiMOVfzzmwF;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 02/15/11 20:27, Ian Jackson wrote:
Juergen Gross writes ("Re: [Xen-devel] [PATCH] xl cpupool-numa-split: reduce number 
of Dom0 vcpus"):
I added a failure exit if not all required vcpus are offlined.

Thanks.  But, is this test correct ?

+        if (info.vcpu_online == n) {
+            break;
+        }

Is it possible for the online map to have n cpus in it, but for them
to be the wrong n cpus ?

The number of online vcpus is important, not which vcpus.
In a strange case it could lead to a wrong number of online vcpus, if the
number was correct in the beginning and e.g. vcpu 0 was offline and
offlining the last vcpu fails. But I don't think this would be a huge
problem, as offlining the vcpus is just a optimization measure.


What if two copies of this code run concurrently ?  (Perhaps in 4.2 we
will need to add a lock?)

The result of both copies should be the same, as it is depending on the
machine configuration only.
And we are speaking of a global machine configuration action. This would mean
two administrators are configuring the same machine without knowing what the
other is doing. Seems to be a very strange scenario. A possible failure
(meaning: not reaching the desired configuration, but no crashing) should be
regarded as acceptable in this case.


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.