From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755246AbcHXBWy (ORCPT ); Tue, 23 Aug 2016 21:22:54 -0400 Received: from g2t4620.austin.hp.com ([15.73.212.81]:56951 "EHLO g2t4620.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752344AbcHXBWw (ORCPT ); Tue, 23 Aug 2016 21:22:52 -0400 Message-ID: <1472001223.2381.96.camel@j-VirtualBox> Subject: Re: [RFC][PATCH 0/3] locking/mutex: Rewrite basic mutex From: Jason Low To: Davidlohr Bueso Cc: jason.low2@hpe.com, Peter Zijlstra , Linus Torvalds , Waiman Long , Ding Tianhong , Thomas Gleixner , Will Deacon , Ingo Molnar , Imre Deak , Linux Kernel Mailing List , Tim Chen , "Paul E. McKenney" , jason.low2@hp.com Date: Tue, 23 Aug 2016 18:13:43 -0700 In-Reply-To: <1471970103.2381.51.camel@j-VirtualBox> References: <20160823124617.015645861@infradead.org> <20160823161750.GD31186@linux-80c1.suse> <1471970103.2381.51.camel@j-VirtualBox> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-08-23 at 09:35 -0700, Jason Low wrote: > On Tue, 2016-08-23 at 09:17 -0700, Davidlohr Bueso wrote: > > I have not looked at the patches yet, but are there any performance minutia > > to be aware of? > > This would remove all of the mutex architecture specific optimizations > in the (common) fastpath, so that is one thing that could reduce > performance. I'll run some benchmarks to see what some of the > performance impacts of these patches would be. I tested this patch on an 8 socket system with the high_systime AIM7 workload with diskfs. The patch provided big performance improvements in terms of throughput in the highly contended cases. ------------------------------------------------- | users | avg throughput | avg throughput | | without patch | with patch | ------------------------------------------------- | 10 - 90 | 13,943 JPM | 14,432 JPM | ------------------------------------------------- | 100 - 900 | 75,475 JPM | 102,922 JPM | ------------------------------------------------- | 1000 - 1900 | 77,299 JPM | 115,271 JPM | ------------------------------------------------- Unfortunately, at 2000 users, the modified kernel locked up. # INFO: task reaim:<#> blocked for more than 120 seconds. So something appears to be buggy.