Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp22899imi; Thu, 21 Jul 2022 15:05:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vm8vb7mGxLtH5ctyrCrxpiWxeDXroQOVfxfWexUHEht01YU8DTmdopTIaEU22iUsIvj7W9 X-Received: by 2002:a17:907:6d8e:b0:72b:95d9:ee94 with SMTP id sb14-20020a1709076d8e00b0072b95d9ee94mr548399ejc.465.1658441139032; Thu, 21 Jul 2022 15:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658441139; cv=none; d=google.com; s=arc-20160816; b=WvZKzgDhUTVz7qfMDM6rDRJNpd6Bl9b0kRJqyEhFRk6WJbdjvN+p0tUjNOVm/o/lXS IkQNmTj3wDCZoG1Ul1hR3eTsq0ttMpWXFNr4gKdrLAlCDDsC2DmgI6R5xO7DocvGWNEc efbojD3PajZvrXXjXvpqKJYbHp7pGmuXeHBPRTzjaJWhlzX9yKq5TdhL+oE/BFG8vl7V bpn6A4WVLcACjmf0Mh7mehGb2ioFTEaxX2C6k6Jy/a8GQ60+OrdNCoiG2AZ6oKFPwY2Z dF0R3uR0WSMHZ2Ud9UpcXpg0An5p3p3DQ/W08cX7PTESfThgMwWpis7Csvc9dhaeeKTd b31w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qkF/80OfsBVIU09WeQgt9IUQm39UX4xDvurfzzLnyRc=; b=aE3PNWgLCjWYBr/1nkr6z53OlXezpM42gc5T/aomaFme4eW0Q+LKMjYKn2uMRs7lHd ek/vGPVCy+uam4kGkYhYu3PNpxkYoC5tU95VC3Z8y4/dqHBs8TJkrH6axYank+stG5jZ TVPHx9w2oWRS3vi/bxS4g1MASPK/7rXwgfdAnFCYbXQgszYTkgolbwq6ulcfMuVT6pMV 6M8inmBLh5RAAdDNVH3ASKW/XqcpnfWXm27UhZkZWxWDOFIyK7cIFn2r2m9RGbxxIIjz HzYVzDL7yu2q6RK7wG8uyF01V30PhUD7jNeXeOvHTiI2/s7xbGwy9jmNk6Gi5u0NKIkL v3nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk39-20020a1709077fa700b0072f67932939si4096323ejc.865.2022.07.21.15.05.12; Thu, 21 Jul 2022 15:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234054AbiGUWBu (ORCPT + 99 others); Thu, 21 Jul 2022 18:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233456AbiGUWBt (ORCPT ); Thu, 21 Jul 2022 18:01:49 -0400 Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0376393C36; Thu, 21 Jul 2022 15:01:47 -0700 (PDT) Received: from dread.disaster.area (pa49-181-2-147.pa.nsw.optusnet.com.au [49.181.2.147]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id 88F5962CA1B; Fri, 22 Jul 2022 08:01:44 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1oEeEo-003i9f-Da; Fri, 22 Jul 2022 08:01:42 +1000 Date: Fri, 22 Jul 2022 08:01:42 +1000 From: Dave Chinner To: kernel test robot Cc: Dave Chinner , "Darrick J. Wong" , LKML , Linux Memory Management List , linux-xfs@vger.kernel.org, lkp@lists.01.org, lkp@intel.com, ying.huang@intel.com, feng.tang@intel.com, zhengjun.xing@linux.intel.com, fengwei.yin@intel.com Subject: Re: [xfs] 016a23388c: stress-ng.xattr.ops_per_sec 58.4% improvement Message-ID: <20220721220142.GW3861211@dread.disaster.area> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=OJNEYQWB c=1 sm=1 tr=0 ts=62d9ccc9 a=ivVLWpVy4j68lT4lJFbQgw==:117 a=ivVLWpVy4j68lT4lJFbQgw==:17 a=8nJEP1OIZ-IA:10 a=RgO8CyIxsXoA:10 a=VwQbUJbxAAAA:8 a=NEAV23lmAAAA:8 a=7-415B0cAAAA:8 a=Cv6hED_WFzwE_hcpyKwA:9 a=wPNLvfGTeEIA:10 a=AjGcO6oz07-iQ99wixmX:22 a=biEYGPWJfzWAr4FL6Ov7:22 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 21, 2022 at 10:30:21AM +0800, kernel test robot wrote: > > > Greeting, > > FYI, we noticed a 58.4% improvement of stress-ng.xattr.ops_per_sec due to commit: > > > commit: 016a23388cdcb2740deb1379dc408f21c84efb11 ("xfs: Add order IDs to log items in CIL") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > in testcase: stress-ng > on test machine: 96 threads 2 sockets Ice Lake with 256G memory > with following parameters: > > nr_threads: 10% > disk: 1HDD > testtime: 60s > fs: xfs > class: filesystem > test: xattr > cpufreq_governor: performance > ucode: 0xb000280 > > > > > > > Details are as below: > --------------------------------------------------------------------------------------------------> > > > To reproduce: > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > sudo bin/lkp install job.yaml # job file is attached in this email > bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run > sudo bin/lkp run generated-yaml-file > > # if come across any failure that blocks the test, > # please remove ~/.lkp and /lkp dir to run from a clean state. > > ========================================================================================= > class/compiler/cpufreq_governor/disk/fs/kconfig/nr_threads/rootfs/tbox_group/test/testcase/testtime/ucode: > filesystem/gcc-11/performance/1HDD/xfs/x86_64-rhel-8.3/10%/debian-11.1-x86_64-20220510.cgz/lkp-icl-2sp1/xattr/stress-ng/60s/0xb000280 > > commit: > df7a4a2134 ("xfs: convert CIL busy extents to per-cpu") > 016a23388c ("xfs: Add order IDs to log items in CIL") This bisect looks like it's identified the wrong commit. The reason things went faster was: > df7a4a2134b0a201 016a23388cdcb2740deb1379dc4 > ---------------- --------------------------- > %stddev %change %stddev > \ | \ ..... > 25.64 ? 8% -25.6 0.00 perf-profile.calltrace.cycles-pp.native_queued_spin_lock_slowpath._raw_spin_lock.xlog_cil_insert_items.xlog_cil_commit.__xfs_trans_commit A huge amount of spinlock contention in the xlog_commit_cil() path went away. The commit identified doesn't remove/change any spinlocks, it actually adds more overhead to the critical section of the above spinlock in preparation for removing said spinlocks. That removal happens in the next commit in that series - c0fb4765c508 ("xfs: convert CIL to unordered per cpu lists") - so I'd be expecting a bisect to demonstrate that the spinlock contention goes away with the commit that removed the spinlocks (as it does in all the testing of this I've done over the past 2 years), not the commit this bisect identified. Hence I think the bisect went wrong somewhere... Cheers, Dave. -- Dave Chinner david@fromorbit.com