Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751639AbdDMKd1 (ORCPT ); Thu, 13 Apr 2017 06:33:27 -0400 Received: from mail-co1nam03on0085.outbound.protection.outlook.com ([104.47.40.85]:14752 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750746AbdDMKdX (ORCPT ); Thu, 13 Apr 2017 06:33:23 -0400 Authentication-Results: codeaurora.org; dkim=none (message not signed) header.d=none;codeaurora.org; dmarc=none action=none header.from=caviumnetworks.com; Date: Thu, 13 Apr 2017 13:33:09 +0300 From: Yury Norov To: Adam Wallis Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Peter Zijlstra , Catalin Marinas , Will Deacon , Ingo Molnar , Jan Glauber , jason.low2@hp.com Subject: Re: [RFC PATCH 0/3] arm64: queued spinlocks and rw-locks Message-ID: <20170413103309.GA1875@yury-N73SV> References: <1491860104-4103-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [89.179.247.55] X-ClientProxiedBy: DB6PR0501CA0041.eurprd05.prod.outlook.com (10.168.78.155) To BY1PR0701MB1270.namprd07.prod.outlook.com (10.160.108.16) X-MS-Office365-Filtering-Correlation-Id: 150a598f-62ed-4456-aa25-08d4825880f5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY1PR0701MB1270; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1270;3:WzMxOYhZSZX/wuU7AQsfbi15ZJ4SuoMqy5VhoYTqIn1u9V5paiWOl+kfLa4Sb+l0PIbzznhzZfQs0bSnHr74GMz5ooz5hBa8+a2NJnn2zEoDr7s0VaimsJ0i2tU2hJ4T+7akrLS9f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ynbCOW9aZd8yOiV/F454tiUkB+VU+MnL1Y6twBIoQ1hyhYs2IZdDQiPyNtL7wMEf17ONVBiLjiyop2DQBuZ9mRiaThbds535jPb8XeJ+fCZb1LmkmbpoFog/FOVmtcYTfB6APKIIMWO0ezrilDIoi4IuRzWR6kbVt9Ze7YUzW94/TLP5DOVUWW+T4c3gC1+5o0L+njJ291MU4cwiCtEBhuy2PuVQdiTHy5YusnqGS66RgU19YiVV6+Wh8C6Vsl0whKK1fi8xsRcKnVg1+E956IjJmM9DD3145x0vLJxr6pPYUD2uhiA1qiLKO8QDpx95fVrGKWMfedh+LWS13YosyhljTWwHTmmssjwB3ZXOkDhpiMlAodovp98ztnpV0ytYgsnavy5TCoCdFJIZinjksJyvuN+t3I25LJdQZMZinsNa614WAAn5OKKc0EWBbFaozU3F1WkyKXYNZVfG3iVAZwIS93XNN09P8sOwL6wnbtmwggTNuoXomBwBJSyIm225AzTwayUnNGe73JHIpHug= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148);SRVR:BY1PR0701MB1270;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1270; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1270;4:/upkgIFAoQY0qsPdEhEFQZ0AuwPYOkQjua0M1wXcaNNnibziLY5/+kXE/FUlPgy9z+dLX3ju9YoqIou8doPt+AC6MVgiPOCRDIJ/fsoeQjfss/ltdpHh3iFg9zbWF/l26u9Fuzw1SIQT9kJiVm9pQqckgBWGkEZGk4wuxg8kzvlKFTuY+TG9ZS85qyDVZFB1MU3OH6BAImxOfEHJ/RicsbfpuwJLo8UICFmNpDke3TKK66gLEMK7slISNqCRTqi47rOpZL73+glyi0tCkRfz2Yr2tbB4WYLRdCXfqaEIl5iO4d+4XZH6i/UJGjBSjyaGPLxjpcF2quBIvnkbOJZzgfvZ8B9wSS8YzWyOQ4UwBDugmpIIqpeQlgo7cK6EQc9RWJIzhvz1mJSuF6tO/tzZKOqzupfAqz4m/Y6R6KfZKIstB7bffsR2ZTx8+Jszq4rCeesKRU5vSYth2dGnIPPt0J5INQSHFZdXGjhBLLys+svPqPrLstVSTlvn5zb1AgyWYTLinERPotBlrw00LQzSvFeUaoMwm+zeUkzfOYgSBHaigm6ylJaRF5QfDB+IxbkyVZdJE9Kc653lQUTSUyCeCNcoxdumUgHvpX/N6wgseEomzkTy/zG3tFiIHru87bqvfmyvc8L++vGXs8dBebZHoAw3pNn08t2IcKZr+YzdqeHI16HRCPbvIr+w2io6jdPVl0nkf6oAkiXSm0AmLkoxtA== X-Forefront-PRVS: 02760F0D1C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(39450400003)(39850400002)(39410400002)(39400400002)(377454003)(24454002)(229853002)(7416002)(25786009)(83506001)(53546009)(6496005)(6246003)(110136004)(5660300001)(38730400002)(23726003)(3846002)(305945005)(6116002)(7736002)(4001350100001)(4326008)(54906002)(8666007)(189998001)(53936002)(6306002)(9686003)(47776003)(50466002)(66066001)(50986999)(6486002)(42186005)(76176999)(33716001)(76506005)(54356999)(33656002)(81166006)(8676002)(2906002)(6916009)(2950100002)(6666003)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1270;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1270;23:31gV8ltOAYcDRuL5PPJbsf0pFSnu9yVi5IBkJs7?= =?us-ascii?Q?X/Qpp9Nga0ldBVjhMi7AKNcRuXRscSWFinqtqJA14/tp1H5twX7MtJW22pdV?= =?us-ascii?Q?xThgXZQ9Z+soPbmpKMJOl7qQcXcKUDXAX2eQ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u568pN0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1270;7:mH6T1cgOcnY87yPcBGeWxKx9X8tVaXQk34+X/0oCOnDXCJ7u/7pvVMlEvhn+/s9Na+KpLWmU2bibVMPfNH9Zqbxq3xQLU4kqq0y4Q5d8dZs8t5+tWtv70yuBU/qVWhxwyXKCE88JYuhTxwRBx8skaxVPhkLwyLQcCaZoQ0RDB6YUXYE8PeNZ7YFSy8hPuGM/dsM3N2lne/4Me+6FCvI4fY61n9nGjnWfkM/YY7WgjDjheWpGx3Nx2VE0uwAe0qJJPoNHMnjWljtXHHsoQcZitfobhbAbhSHFx2eQgUJBMD8/cLN93GsRf7FlZwv0CMghQNoW3+W7wGIA5Uf7lVRleQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2017 10:33:19.3711 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1270 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1154 Lines: 26 On Wed, Apr 12, 2017 at 01:04:55PM -0400, Adam Wallis wrote: > On 4/10/2017 5:35 PM, Yury Norov wrote: > > The patch of Jan Glauber enables queued spinlocks on arm64. I rebased it on > > latest kernel sources, and added a couple of fixes to headers to apply it > > smoothly. > > > > Though, locktourture test shows significant performance degradation in the > > acquisition of rw-lock for read on qemu: > > > > Before After > > spin_lock-torture: 38957034 37076367 -4.83 > > rw_lock-torture W: 5369471 18971957 253.33 > > rw_lock-torture R: 6413179 3668160 -42.80 > > > > On our 48 core QDF2400 part, I am seeing huge improvements with these patches on > the torture tests. The improvements go up even further when I apply Jason Low's > MCS Spinlock patch: https://lkml.org/lkml/2016/4/20/725 It sounds great. So performance issue is looking like my local problem, most probably because I ran tests on Qemu VM. I don't see any problems with this series, other than performance, and if it looks fine now, I think it's good enough for upstream. Yury.