From: "Jan Beulich" Subject: Re: [PATCH] switch rangeset's lock to rwlock Date: Wed, 01 Oct 2014 09:57:52 +0100 Message-ID: <542BDE30020000780003B653@mail.emea.novell.com> References: <5413094B020000780003480E@mail.emea.novell.com> <20140919163202.GA9327@laptop.dumpdata.com> <542A8ADD020000780003AE5E@mail.emea.novell.com> <20140930120149.GA30119@deinos.phlegethon.org> <542B1852.9070904@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XZFjP-00019o-RO for xen-devel@lists.xenproject.org; Wed, 01 Oct 2014 08:57:55 +0000 In-Reply-To: <542B1852.9070904@gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser Cc: Keir Fraser , Ian Jackson , Tim Deegan , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 30.09.14 at 22:53, wrote: > Do the searches ever get long enough that a read lock helps? If any of > the rangesets is getting large and making the searches slow then it > would be quite easy to switch from linked list to red-black tree? As noted elsewhere, even very brief locking periods can cause convoys for many-vCPU guests. One case where we observe this is hvm_get_guest_time_fixed() (without clear route for mitigation as converting to rw lock is not an option here, and I didn't get around to try out whether eliminating the lock altogether in favor of atomic CPU operations would make this any better). Jan