Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1516283pxy; Mon, 2 Aug 2021 03:46:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy15zPBkVSo9C70BrDZ4zOyzZkC51hlq894rDzWY2mwmJ6muVCLhQj+UcpBWTmUmQgtNijM X-Received: by 2002:a5d:91c2:: with SMTP id k2mr1578328ior.117.1627901190782; Mon, 02 Aug 2021 03:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627901190; cv=none; d=google.com; s=arc-20160816; b=QoyUYD6MRRWfwsB4xpr6dB8D2x6mxc6ULfSBeN9F7saMnu8g2A6Vz6AGAduCYvAEBd qeeJsK+hxFBCduLl2K3yQGoDOMAfHDq907k6JnZYRx01jMrqVvXDEtSKE7brWhIMp1zu zRzq6gm1Yy6dMLKSm0xRHTB9PhXdMn0nGb2CMDbm0uTsa11aYCjip/YHsFddRJQ/O8IC Diy7ChgaXza0iRfDuGGdsUSsxBrb+aKq5kwvNrau4fnTg3xpJswBpEl30eivNJsp5vKQ iJggdV4AD1ose/yWrhNkFHYW5Jm4OZUmikgHr+QCiT6X850stilYCblk/9/RdPEcckSz rrKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=VxFAlZRWfHE8zP8qOh62DFtxrnipd396WDxPmF91GQE=; b=cp+nOxoJkUbA+N0WI+oqSeImRcpA/P1hyCE3Y+HiF+b/M1E3AsgY8SrLx+3rIgLjW6 qw1p8IgTYeVpeOhxNqE6GNp981KR4iIzcOn0KCGIQNFbEybXUZco72fCGg+ZMlkHEVD3 7LzFyistK1DoX9PsVYz+ko65zpqn5J3C3GUHoWHwEeIfIodimZqqnnrzQTuqjBBm0igH 49M2/umM16hT7ffXXAaVjMu906jMupqO/AgZwEVPwoYP/idYUcEtyn36tCLjlSqXxX8M hNhMjiiHxq8GKL+3UP+blZ57ISyLjh7+Tn5AbzEqTCkHY7YFdJZWGY22REetbAfIjEOv I1XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=udrXl7Fq; dkim=neutral (no key) header.i=@suse.cz header.b=YQX27ccu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si5848772ilg.140.2021.08.02.03.46.16; Mon, 02 Aug 2021 03:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=udrXl7Fq; dkim=neutral (no key) header.i=@suse.cz header.b=YQX27ccu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233274AbhHBKqD (ORCPT + 99 others); Mon, 2 Aug 2021 06:46:03 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:44158 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233176AbhHBKqD (ORCPT ); Mon, 2 Aug 2021 06:46:03 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id CBE8A1FF6F; Mon, 2 Aug 2021 10:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1627901152; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VxFAlZRWfHE8zP8qOh62DFtxrnipd396WDxPmF91GQE=; b=udrXl7FqvE6M9vDvdJm1BLdKineY5Z+XwdtCOraHx5bLsG+m8S0DHHa4wmqZ/oYGoco40w mv8v+/9htuPIMmH9tUXIHjhuofYWeig6EkBN5DXEdwYZRfrNFG42Zb5rw/7dfULgUV4ibk 9TanxJ7ZRbxcla/cfJOR9W7NlyRTBlM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1627901152; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VxFAlZRWfHE8zP8qOh62DFtxrnipd396WDxPmF91GQE=; b=YQX27ccuwy7LpoziV3ARKuYHpgktNzmSz4QO8dAUBCLu6p8epOLDK8/IOzcbLFUi5Y5brt hkwFg0kACsvDs8Aw== Received: from quack2.suse.cz (unknown [10.100.200.198]) by relay2.suse.de (Postfix) with ESMTP id 7A2D3A3BB3; Mon, 2 Aug 2021 10:45:52 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 6471D1F2C91; Mon, 2 Aug 2021 12:45:49 +0200 (CEST) Date: Mon, 2 Aug 2021 12:45:49 +0200 From: Jan Kara To: Amir Goldstein Cc: Gabriel Krisman Bertazi , 0day robot , LKML , lkp@lists.01.org, ying.huang@intel.com, feng.tang@intel.com, zhengjun.xing@linux.intel.com, Jan Kara , "Darrick J. Wong" , Theodore Tso , Dave Chinner , David Howells , Khazhismel Kumykov , linux-fsdevel , Ext4 , kernel@collabora.com, Mel Gorman , kernel test robot Subject: Re: [fsnotify] 4c40d6efc8: unixbench.score -3.3% regression Message-ID: <20210802104549.GA28745@quack2.suse.cz> References: <20210720155944.1447086-9-krisman@collabora.com> <20210731063818.GB18773@xsang-OptiPlex-9020> <87lf5mi7mv.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun 01-08-21 09:32:40, Amir Goldstein wrote: > On Sat, Jul 31, 2021 at 10:51 PM Gabriel Krisman Bertazi > wrote: > > > > Amir Goldstein writes: > > > > > On Sat, Jul 31, 2021 at 9:20 AM kernel test robot wrote: > > >> > > >> > > >> > > >> Greeting, > > >> > > >> FYI, we noticed a -3.3% regression of unixbench.score due to commit: > > >> > > >> > > >> commit: 4c40d6efc8b22b88a45c335ffd6d25b55d769f5b ("[PATCH v4 08/16] fsnotify: pass arguments of fsnotify() in struct fsnotify_event_info") > > >> url: https://github.com/0day-ci/linux/commits/Gabriel-Krisman-Bertazi/File-system-wide-monitoring/20210721-001444 > > >> base: https://git.kernel.org/cgit/linux/kernel/git/jack/linux-fs.git fsnotify > > >> > > >> in testcase: unixbench > > >> on test machine: 96 threads 2 sockets Intel(R) Xeon(R) CPU @ 2.30GHz with 128G memory > > >> with following parameters: > > >> > > >> runtime: 300s > > >> nr_task: 1 > > >> test: pipe > > >> cpufreq_governor: performance > > >> ucode: 0x4003006 > > >> > > >> test-description: UnixBench is the original BYTE UNIX benchmark suite aims to test performance of Unix-like system. > > >> test-url: https://github.com/kdlucas/byte-unixbench > > >> > > >> In addition to that, the commit also has significant impact on the following tests: > > >> > > >> +------------------+-------------------------------------------------------------------------------------+ > > >> | testcase: change | will-it-scale: will-it-scale.per_thread_ops -1.3% regression | > > >> | test machine | 192 threads 4 sockets Intel(R) Xeon(R) Platinum 9242 CPU @ 2.30GHz with 192G memory | > > >> | test parameters | cpufreq_governor=performance | > > >> | | mode=thread | > > >> | | nr_task=100% | > > >> | | test=eventfd1 | > > >> | | ucode=0x5003006 | > > >> +------------------+-------------------------------------------------------------------------------------+ > > >> > > >> > > >> If you fix the issue, kindly add following tag > > >> Reported-by: kernel test robot > > >> > > > > > > Gabriel, > > > > > > It looks like my change throws away much of the performance gain for > > > small IO on pipes without any watches that was achieved by commit > > > 71d734103edf ("fsnotify: Rearrange fast path to minimise overhead > > > when there is no watcher"). > > > > > > I think the way to fix it is to lift the optimization in __fsnotify() > > > to the fsnotify_parent() inline wrapper as Mel considered doing > > > but was not sure it was worth the effort at the time. > > > > > > It's not completely trivial. I think it requires setting a flag > > > MNT_FSNOTIFY_WATCHED when there are watches on the > > > vfsmount. I will look into it. > > > > Amir, > > > > Since this patch is a clean up, would you mind if I drop it from my > > series and base my work on top of mainline? Eventually, we can rebase > > this patch, when the performance issue is addressed. > > > > I ask because I'm about to send a v5 and I'm not sure if I should wait > > to have this fixed. > > I guess you mean that you want to add the sb to fsnotify() args list. > I don't mind, it's up to Jan. Yeah, no problem with that from my side either. Honza -- Jan Kara SUSE Labs, CR