From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz8bB-0007Nl-9D for qemu-devel@nongnu.org; Tue, 25 Oct 2016 16:45:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz8b6-0004Hu-DF for qemu-devel@nongnu.org; Tue, 25 Oct 2016 16:45:29 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42511) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bz8b6-0004Gp-8D for qemu-devel@nongnu.org; Tue, 25 Oct 2016 16:45:24 -0400 Date: Tue, 25 Oct 2016 16:45:15 -0400 From: "Emilio G. Cota" Message-ID: <20161025204515.GA22860@flamenco> References: <20161025153507.27110-1-bobby.prani@gmail.com> <5b91345d-fea6-8d98-69a9-eda1e256c3e1@redhat.com> <54c9a235-4ab4-1731-b076-116ecde91442@redhat.com> <87shrkckfv.fsf@gmail.com> <5190ece5-7167-dbe1-5b5a-38247cba5be3@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC PATCH] qht: Align sequence lock to cache line List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pranith Kumar Cc: Paolo Bonzini , "open list:All patches CC here" , Alex =?iso-8859-1?Q?Benn=E9e?= , Markus Armbruster , Richard Henderson On Tue, Oct 25, 2016 at 16:35:48 -0400, Pranith Kumar wrote: > On Tue, Oct 25, 2016 at 4:02 PM, Paolo Bonzini wrote: > > > > > >> I've written a patch (see below) to take the per-bucket sequence locks. > > > > What's the performance like? > > > > Applying only this patch, the perf numbers are similar to the 128 > cache line alignment you suggested. That makes sense. Having a single seqlock per bucket is simple and fast; note that bucket chains should be very short (we use good hashing and automatic resize for this purpose). E.