From: "Jan Beulich" Subject: Re: Xen spinlock questions Date: Fri, 15 Aug 2008 13:15:51 +0100 Message-ID: <48A58F97.76E4.0078.0@novell.com> References: <48A1BB46.2080304@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 12.08.08 19:00 >>> >On 12/8/08 17:33, "Jeremy Fitzhardinge" wrote: > >>>> That seems reasonable. In this use-case, it's quite likely that if = the >>>> poll is interrupted by event delivery, on return it will find that = the >>>> spinlock is now free and never re-enter the poll. >>>> =20 >>>=20 >>> Attached is a new version of the patch which clears the vcpu from = poll_mask >>> when it is unblocked for any reason. Jan: please can you give this one = a >>> spin if you get time. >>> =20 >>=20 >> Forgot to attach? > >Sorry, attached now. I can't really explain the results of testing with this version of the = patch: While the number of false wakeups got further reduced by somewhat less than 20%, both time spent in the kernel and total execution time went up (8% and 4% respectively) compared to my original (and from all I can tell worse) version of the patch. Nothing else changed as far as I'm aware. Jan