Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852Ab3F0Bc6 (ORCPT ); Wed, 26 Jun 2013 21:32:58 -0400 Received: from mga03.intel.com ([143.182.124.21]:8873 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518Ab3F0Bcn (ORCPT ); Wed, 26 Jun 2013 21:32:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,948,1363158000"; d="scan'208";a="323144582" Message-ID: <51CB9631.1030508@intel.com> Date: Thu, 27 Jun 2013 09:32:33 +0800 From: Alex Shi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Tim Chen CC: Ingo Molnar , Andrew Morton , Andrea Arcangeli , Andi Kleen , Michel Lespinasse , Davidlohr Bueso , Matthew R Wilcox , Dave Hansen , Peter Zijlstra , Rik van Riel , Peter Hurley , linux-kernel@vger.kernel.org, linux-mm Subject: Re: [PATCH v4 1/5] rwsem: check the lock before cpmxchg in down_write_trylock References: <1372285674.22432.141.camel@schen9-DESK> In-Reply-To: <1372285674.22432.141.camel@schen9-DESK> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 625 Lines: 22 The following line should be added head of commit log on patches 1~4. :) From: Alex Shi > Cmpxchg will cause the cacheline bouning when do the value checking, > that cause scalability issue in a large machine (like a 80 core box). > > So a lock pre-read can relief this contention. > > Signed-off-by: Alex Shi -- Thanks Alex -- 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/