Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4742816pjb; Mon, 27 Jul 2020 04:07:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygOFi0oVJ41O0TKBezruX6tBuIlNF6/xGUY+uLiQBxXDGtQToEgL4gvvmQTa0sVm3GbZJX X-Received: by 2002:aa7:df8c:: with SMTP id b12mr348233edy.263.1595848050547; Mon, 27 Jul 2020 04:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595848050; cv=none; d=google.com; s=arc-20160816; b=O/S720c5Ww03ZEJ28b1VNpwWnM4Pxb9NoIAmQiFEH5txESIxsDAssQIwxQ1bmeXqrP MHHOmBB9kxOgtbFMCFn2OzSwuJiyAdZOOvIkiAN5Kb07+rAmBUEKcCr3t00iq+kCkZlF FVJ2z3ys6dJiLGwn/yuUd5SXJrbkgWrTUZdnTKhrmEv99XfVwvlSqvw6E7UPl90zpine eIH2wLru1Hki7HnINm+MG/hndEiw8CK4J9k4/Mv4pKDnWQST556QN8ZbzX61SND9GpNV uzGizkJndUT8PbPRW9vpNae/osh5i8Jmq7vZMQLDuig18fRbD5qn7UcVk3na8WOBU7wM oznQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pj454WmrV1DWDrm2uq+YQf2OSxBNURJ6W6aU2jbaBuE=; b=pjkFJNqxd99RHSVYC7+PtM0DsxDc8u+BXUj6xmZiB/cc/f7xAvdtCJDkzfeBJfKcaU 1FWUZY4EMZsAnftMxntrczOWDtlc6tGQueF/EBLNhLsEEhfqA6NXz+M9VM4dAQf4zFHH tKDprf/9LffD9OuONUC8XETMnnKEy4EwNJgQST14fCtoQWECin22C75jremfDPR4GUFF f7VyvJJCkfDHhh8PO1vxhbdKbOHFquj4oRb7gEzHvcgxBBSP3tL+D4SSknMEcrMtsiFy NsldoGBxH/jf3TkaKyM2ymO0bCR53PXuut0Sq3R4QsrgGHzOkUS6nK+0cb2iK5aBMsop 9vOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 i4si589926edt.77.2020.07.27.04.07.08; Mon, 27 Jul 2020 04:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728050AbgG0Kwo (ORCPT + 99 others); Mon, 27 Jul 2020 06:52:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:45466 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbgG0Kwo (ORCPT ); Mon, 27 Jul 2020 06:52:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id EEA79B632; Mon, 27 Jul 2020 10:52:52 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 8DCE01E12C5; Mon, 27 Jul 2020 12:52:42 +0200 (CEST) Date: Mon, 27 Jul 2020 12:52:42 +0200 From: Jan Kara To: Amir Goldstein Cc: Rong Chen , Jan Kara , LKML , lkp@lists.01.org Subject: Re: [fsnotify] c738fbabb0: will-it-scale.per_process_ops -9.5% regression Message-ID: <20200727105242.GK23179@quack2.suse.cz> References: <20200721001505.GD19262@shao2-debian> <9a2a4086-fbad-b4f8-9c00-2b7606441022@intel.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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 26-07-20 14:52:47, Amir Goldstein wrote: > On Fri, Jul 24, 2020 at 6:47 AM Amir Goldstein wrote: > > > > On Fri, Jul 24, 2020 at 5:45 AM Rong Chen wrote: > > > > > > > > > > > > On 7/21/20 11:59 PM, Amir Goldstein wrote: > > > > On Tue, Jul 21, 2020 at 3:15 AM kernel test robot wrote: > > > >> Greeting, > > > >> > > > >> FYI, we noticed a -9.5% regression of will-it-scale.per_process_ops due to commit: > > > >> > > > >> > > > >> commit: c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a ("fsnotify: fold fsnotify() call into fsnotify_parent()") > > > > Strange, that's a pretty dumb patch moving some inlined code from one > > > > function to > > > > another (assuming there are no fsnotify marks in this test). > > > > > > > > Unless I am missing something the only thing that changes slightly is > > > > an extra d_inode(file->f_path.dentry) deference. > > > > I can get rid of it. > > > > > > > > Is it possible to ask for a re-test with fix patch (attached)? > > > > > > Hi Amir, > > > > > > We failed to apply this patch, could you tell us the base commit or the > > > base branch? > > > > > > > Hi Rong, > > > > The patch is applied on top of the reported offending commit: > > c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a ("fsnotify: fold fsnotify() > > call into fsnotify_parent()") > > > > I pushed it to my github: > > https://github.com/amir73il/linux/commits/for_lkp > > > > FWIW, I tried reproducing the reported regression on a local machine. > > I ran the test twice on each of the branch commits: > > 26dc3d2bff62 fsnotify: pass inode to fsnotify_parent() > c738fbabb0ff fsnotify: fold fsnotify() call into fsnotify_parent() > 71d734103edf fsnotify: Rearrange fast path to minimise overhead when > there is no watcher > 47aaabdedf36 fanotify: Avoid softlockups when reading many events > > Not only did I not observe a regression with the reported commit, > but there was a slight improvement. And then there yet was another > improvement with the fix commit on top of it. I suspect this may be closely related to code generation, code cacheline alignment etc. and thus depends heavily on a particular compiler version and CPU. I've checked the commit myself and I agree it looks innocent so for these reasons, I'm not particularly worried about this regression. Honza -- Jan Kara SUSE Labs, CR