From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753797AbbGOGrP (ORCPT ); Wed, 15 Jul 2015 02:47:15 -0400 Received: from cantor2.suse.de ([195.135.220.15]:45192 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751032AbbGOGrN (ORCPT ); Wed, 15 Jul 2015 02:47:13 -0400 Date: Wed, 15 Jul 2015 08:47:05 +0200 From: Jan Kara To: Dave Hansen Cc: Oleg Nesterov , Jan Kara , Al Viro , Linus Torvalds , Paul McKenney , Peter Zijlstra , Daniel Wagner , Davidlohr Bueso , Ingo Molnar , Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 0/4] change sb_writers to use percpu_rw_semaphore Message-ID: <20150715064705.GA22609@quack.suse.cz> References: <20150713212536.GA13855@redhat.com> <20150714104810.GB24369@quack.suse.cz> <20150714133731.GA24837@redhat.com> <55A57C50.1080406@linux.intel.com> <20150714212249.GA18441@redhat.com> <55A581F9.3090507@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55A581F9.3090507@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 14-07-15 14:41:13, Dave Hansen wrote: > On 07/14/2015 02:22 PM, Oleg Nesterov wrote: > >> Using my little write-1-byte test (under will-it-scale), your 4 patches > >> improves the number of writes/sec by 12%. My 3 patches improve the > >> number of writes/sec by 32%. > > I looked at it again. I tested with this patch in addition to the ones > modifying __sb_start/end_write(): > > https://lkml.org/lkml/2015/6/24/682 > > That is where the performance delta came from. Your patches (plus the > fsnotify optimization) perform very similarly to my approach. > > Yours remove so much code that I think they are the preferable approach. > > They don't compile with lockdep on, btw. :) Great, thanks for hashing it out. So I'm also in favor of Oleg's approach as well. We just have to wait until he fixes the outstanding issues with his code. Dave, just send your fsnotify patch separately to AKPM - he usually merges fsnotify stuff. Thanks. Honza -- Jan Kara SUSE Labs, CR