Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755474Ab3I3Koo (ORCPT ); Mon, 30 Sep 2013 06:44:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38191 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753128Ab3I3Kol (ORCPT ); Mon, 30 Sep 2013 06:44:41 -0400 Date: Mon, 30 Sep 2013 12:44:08 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Ingo Molnar , Waiman Long , Ingo Molnar , Andrew Morton , Linux Kernel Mailing List , Rik van Riel , Peter Hurley , Davidlohr Bueso , Alex Shi , Tim Chen , Andrea Arcangeli , Matthew R Wilcox , Dave Hansen , Michel Lespinasse , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Subject: Re: [PATCH] rwsem: reduce spinlock contention in wakeup code path Message-ID: <20130930104408.GW3081@twins.programming.kicks-ass.net> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> <20130928192123.GA8228@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 19 On Sat, Sep 28, 2013 at 12:33:36PM -0700, Linus Torvalds wrote: > The old rwlock's really have been a disappointment - they are slower > than spinlocks, and seldom/never end up scaling any better. Their > main advantage was literally the irq behavior - allowing readers to > happen without the expense of worrying about irq's. So in part that is fundamental to the whole rw-spinlock concept. Typically lock hold times should be short for spinlock type locks and if your hold times are short, the lock acquisition times are significant. And a read acquisition is still a RMW operation on the lock, thus read locks are still entirely bound by the cacheline transfer of the lock itself. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/