Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1395216pxj; Fri, 21 May 2021 13:11:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnjuvMLnCTSAHxAs+k0Gd4NQzvt9qoufdZUKJrXxSpZvnrvdGyU1iCb3aKV/KkUgOr98hX X-Received: by 2002:aa7:c718:: with SMTP id i24mr12821586edq.43.1621627869220; Fri, 21 May 2021 13:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627869; cv=none; d=google.com; s=arc-20160816; b=fowoKWGaeW0SMqp1uQb8qyTrStZHoH5Cj95DNy4IwSnqg3NZH6XgOnc3iHg+9tIs0P PGmHrFlqEQAy8eBkklDRxyr74iitHa7LlGAai17G9I1l47xJpxNuROBqvudwvaISUNQL 9ru0yCFJ2Hj2vsgvVHtQHr3phrJqdXmwc39+2KL5/JtqDDk0Uy90n4+aQDl1ZifTl0X0 FRChEzQ87jNkzG8jHMILffpASb3BCRckbWxFc0Uj7apGuBB4OxPj7Uf0tEW4a6CESH4n i5eDfTZj3BgZBfL/aZtH6ncESitIxUd0CdhTrGbx+As30nsJoMJuctTTzfRRhlUANRQr 8J0A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fG1w6v3UPexszjoW4BAxNxIG7eQ+Rcb2EjkLxVP2cgY=; b=iCfXcl/nWnfhIdTWb95yx+K86BCFRgwwv+eVulgfpiOrS6OScmRO2TJrdgxaikfxir BlML8FdOsnrgoeCHTuyS2IrkWhSNsWhsNJQR3iXCBMqLHziAI8dWpTufxl30rg5yiMm4 tWhPw8GLhPpAAqA3yPVO8wFJcl4ouAhZosL/CYyRN8zpORNmj/6ELLAlEgs/Cfe425Yk /4xtcNV9jmhZsKxk8hbEldwF/QMklYC3DtKCDUwXZx4I5QDDYsFg3SVyJa9uMyw4K+4E NK4V8G6Y8GI0s9Wwk9T3nATFhGlURMNXVxjWQ21uqNdF8FPeYYV2adRPwEYKgQIPfAWh ycMw== 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 gf1si6483581ejb.318.2021.05.21.13.10.46; Fri, 21 May 2021 13:11:09 -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 S236334AbhEUJ3d (ORCPT + 99 others); Fri, 21 May 2021 05:29:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:38544 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236502AbhEUJ3S (ORCPT ); Fri, 21 May 2021 05:29:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 03E41AACA; Fri, 21 May 2021 09:27:31 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 90BF61F2C73; Fri, 21 May 2021 11:27:30 +0200 (CEST) Date: Fri, 21 May 2021 11:27:30 +0200 From: Jan Kara To: Xing Zhengjun Cc: Jan Kara , kernel test robot , Theodore Ts'o , LKML , lkp@lists.01.org, lkp@intel.com Subject: Re: [LKP] [ext4] 05c2c00f37: aim7.jobs-per-min -11.8% regression Message-ID: <20210521092730.GE18952@quack2.suse.cz> References: <20210227120804.GB22871@xsang-OptiPlex-9020> <20210520095119.GA18952@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 21-05-21 09:16:42, Xing Zhengjun wrote: > Hi Jan, > > On 5/20/2021 5:51 PM, Jan Kara wrote: > > Hello! > > > > On Thu 20-05-21 15:13:20, Xing Zhengjun wrote: > > > > > > ???? Do you have time to look at this? The regression still existed in the > > > latest Linux mainline v5.13-rc2. > > > > Thanks for verification and for the ping! I had a look into this and I > > think the regression is caused by the changes in orphan handling. The load > > runs multiple tasks all creating and deleting files. This generally > > contends on the orphan locking with fast storage (which is your case > > because you use ramdisk as a backing store AFAICT). And the changes I did > > move superblock checksum computation under the orphan lock so the lock hold > > times are now higher. > > > > Sadly it is not easy to move checksum update from under the orphan lock and > > maintain checksum consistency since the checksum has to be recomputed > > consistently with the changes of superblock state. But I have one idea how > > we could maybe improve the situation. Can you check whether attached patch > > recovers the regression? Because that's about how good it could get when we > > are more careful when writing out superblock. > > > > Honza > > > > I apply the patch based on v5.13-rc2 and test, it can not recover the > regression and the regression became more serious(-45.7%). OK, thanks for testing. So the orphan code is indeed the likely cause of this regression but I probably did not guess correctly what is the contention point there. Then I guess I need to reproduce and do more digging why the contention happens... Honza > > ========================================================================================= > tbox_group/testcase/rootfs/kconfig/compiler/disk/md/fs/test/load/cpufreq_governor/ucode: > > lkp-csl-2sp9/aim7/debian-10.4-x86_64-20200603.cgz/x86_64-rhel-8.3/gcc-9/4BRD_12G/RAID1/ext4/creat-clo/1000/performance/0x5003006 > > commit: > 4392fbc4bab57db3760f0fb61258cb7089b37665 > 05c2c00f3769abb9e323fcaca70d2de0b48af7ba > v5.13-rc2 > 2a1eb1a2fc08daaaf76a5aa8ffa355b5a5013d86 (the test patch) > > 4392fbc4bab57db3 05c2c00f3769abb9e323fcaca70 v5.13-rc2 > 2a1eb1a2fc08daaaf76a5aa8ffa > ---------------- --------------------------- --------------------------- > --------------------------- > %stddev %change %stddev %change %stddev %change > %stddev > \ | \ | \ > | \ > 13342 -11.8% 11771 ? 2% -14.2% 11450 > -45.7% 7240 ? 3% aim7.jobs-per-min > > > > -- > Zhengjun Xing -- Jan Kara SUSE Labs, CR