From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [PATCH v3 1/2] qspinlock: Introducing a 4-byte queue spinlock implementation Date: Thu, 30 Jan 2014 12:43:29 -0500 Message-ID: <52EA8F41.7000807@redhat.com> References: <1390933151-1797-1-git-send-email-Waiman.Long@hp.com> <1390933151-1797-2-git-send-email-Waiman.Long@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58696 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbaA3RpI (ORCPT ); Thu, 30 Jan 2014 12:45:08 -0500 In-Reply-To: <1390933151-1797-2-git-send-email-Waiman.Long@hp.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Waiman Long , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Arnd Bergmann Cc: linux-arch@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt , Andrew Morton , Michel Lespinasse , Andi Kleen , "Paul E. McKenney" , Linus Torvalds , Raghavendra K T , George Spelvin , Tim Chen , Daniel J Blueman , Alexander Fyodorov , Aswin Chandramouleeswaran , Scott J Norton , Thavatchai Makphaibulchoke On 01/28/2014 01:19 PM, Waiman Long wrote: > This patch introduces a new queue spinlock implementation that can > serve as an alternative to the default ticket spinlock. Compared with > the ticket spinlock, this queue spinlock should be almost as fair as > the ticket spinlock. It has about the same speed in single-thread and > it can be much faster in high contention situations. Only in light to > moderate contention where the average queue depth is around 1-2 will > this queue spinlock be potentially a bit slower due to the higher > slowpath overhead. > > This queue spinlock is especially suit to NUMA machines with a large > number of cores as the chance of spinlock contention is much higher > in those machines. The cost of contention is also higher because of > slower inter-node memory traffic. > > Signed-off-by: Waiman Long Acked-by: Rik van Riel