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

Re: [Xen-devel] [PATCH] Avoid endless loop for vcpu migration


  • To: Keir Fraser <keir.xen@xxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Tue, 15 Mar 2011 09:53:02 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jan Beulich <JBeulich@xxxxxxxxxx>
  • Delivery-date: Tue, 15 Mar 2011 01:53:39 -0700
  • 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=q9ac3xRM1b8OgEIb/YejapIqiZeKMNur1mIbls8z51fc/XojSujuIbhk 9PhlsYBPL+acHsyLEaFD0wbA+937yV9Ec+/7jxzqB227cULpsAbxSIKhq bhljhHe13ym9lKk5RXlo0HGEYGj0sD0GHEHw4Rp+DbrKBY2hRK7zCz+dk 2pSLuL5TjCLRLmoWniPMdWmBHHC09bw07sFgH+QzVojKWg6fyP8hEj+rj vpB5cSCwOG2s0GqWaR5I6DILuPksK;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 03/15/11 09:50, Keir Fraser wrote:
On 15/03/2011 08:46, "Juergen Gross"<juergen.gross@xxxxxxxxxxxxxx>  wrote:

It's not critical, and not affecting correctness. But with updating
idle_bias on the first invocation you're (on the right hardware)
basically guaranteeing the second invocation to return a
different CPU. That way, your loop will be run minimally three
times on such systems. I already find it odd to require two
iterations when previously this was a strait code path.

This was wrong. It was always required to hold the schedule lock of the
picked cpu as well, otherwise a race with cpu hotplug would be possible.

What would that race be? CPU offlining is done in stop_machine context.

Ahh, okay.


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®.