Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp637958pxb; Thu, 14 Jan 2021 14:56:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8vWFNt9MCWZ/AOq+7SWrijr98zxucSVp7OOiSxONaiZ1Kq03CiFY086IZtKZzB+k6ZL4m X-Received: by 2002:a17:907:7255:: with SMTP id ds21mr6710715ejc.258.1610665009100; Thu, 14 Jan 2021 14:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610665009; cv=none; d=google.com; s=arc-20160816; b=MtEDfZTIK8SpH+AwGExU1thgHKWSQfhM4AGHnguw8UsfaBebnS5pQU+yQ2ekAihU5D qDWOwNzwDCTB5Q0ddqDFh8edpPa11k7XEqNGOE6cKsvVorFDiXAsrfhyNhcq3/vs6OdQ 6YTHgjNdTG0CtBcc8vMHn1GjQEyEpzTvhTAU7UixvXjCpte4bOT8fR/pVP3AMhkBXXX7 WtSf9OVISc9c9Zmfh30nf47Np+CKrBiBSkLDl31aOyLaZuEn6UvxsrEeljC51uWsw+lC H7mVpYnDEaTAtIMenbl08fJU3YfTVVdsB8Zxy9MdPaVk6OVflzScKrnN8Ht1NOKbd+cI ZZOw== 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:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=1G7IAUBmd/0sY1XuCO5rw7Kmy7ntz3emVWpDAv7fFoQ=; b=DaiaQBXQDKJ40QH18IeKjDSrEz0/z0pIKT8xvDJDeJluXA4pfFp6fxWW/6Le78dQ/Y 1J+xVEt6B+JxdYAj239jCzmhFCUFFuFxbwxtgLtTe6IbZkKcKZpKhx+BAC4EfurkK4Nx uAvpIx/amBJNu+eDuTZGZC3EkBqLnQrCO0+sxWEB42gCaOO/qwvagxVjOe+9L7SJp0gU 2MjCfIA7UTDmXZdShKDoqErpcl0STLcdPmGEI3PUzQQR/MO0O4Ta6aa2kqqWJz8dPWBA MptzsWhZE2Iy81nO3GvHxD747wiQpdkBXCJ+RG6eLsI/XyQf9K9xoS0yeQL4FUrUVSre cflw== 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 b8si3265145edx.538.2021.01.14.14.56.25; Thu, 14 Jan 2021 14:56:49 -0800 (PST) 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 S1730922AbhANWxE (ORCPT + 99 others); Thu, 14 Jan 2021 17:53:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:53636 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730840AbhANWxE (ORCPT ); Thu, 14 Jan 2021 17:53:04 -0500 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 5D507AA6F; Thu, 14 Jan 2021 22:52:22 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id A3910DA7EE; Thu, 14 Jan 2021 23:50:28 +0100 (CET) Date: Thu, 14 Jan 2021 23:50:28 +0100 From: David Sterba To: Xing Zhengjun Cc: dsterba@suse.cz, kernel test robot , Josef Bacik , David Sterba , =?iso-8859-1?Q?Ren=E9?= Rebe , LKML , lkp@lists.01.org, lkp@intel.com, ying.huang@intel.com, feng.tang@intel.com, linux-btrfs@vger.kernel.org Subject: Re: [LKP] Re: [btrfs] e076ab2a2c: fio.write_iops -18.3% regression Message-ID: <20210114225028.GF6430@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Xing Zhengjun , kernel test robot , Josef Bacik , David Sterba , =?iso-8859-1?Q?Ren=E9?= Rebe , LKML , lkp@lists.01.org, lkp@intel.com, ying.huang@intel.com, feng.tang@intel.com, linux-btrfs@vger.kernel.org References: <20210112153614.GA2015@xsang-OptiPlex-9020> <20210112154529.GT6430@twin.jikos.cz> <979aee28-c603-a187-e03f-29957c7b94d6@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <979aee28-c603-a187-e03f-29957c7b94d6@linux.intel.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 01:58:18PM +0800, Xing Zhengjun wrote: > > > On 1/12/2021 11:45 PM, David Sterba wrote: > > On Tue, Jan 12, 2021 at 11:36:14PM +0800, kernel test robot wrote: > >> Greeting, > >> > >> FYI, we noticed a -18.3% regression of fio.write_iops due to commit: > >> > >> > >> commit: e076ab2a2ca70a0270232067cd49f76cd92efe64 ("btrfs: shrink delalloc pages instead of full inodes") > >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > >> > >> > >> in testcase: fio-basic > >> on test machine: 192 threads Intel(R) Xeon(R) CPU @ 2.20GHz with 192G memory > >> with following parameters: > >> > >> disk: 1SSD > >> fs: btrfs > >> runtime: 300s > >> nr_task: 8 > >> rw: randwrite > >> bs: 4k > >> ioengine: sync > >> test_size: 256g > > Though I do a similar test (emulating bit torrent workload), it's a bit > > extreme as it's 4k synchronous on a huge file. It always takes a lot of > > time but could point out some concurrency issues namely on faster > > devices. There are 8 threads possibly competing for the same inode lock > > or other locks related to it. > > > > The mentioned commit fixed another perf regression on a much more common > > workload (untgrring files), so at this point drop in this fio workload > > is inevitable. > > Do you have a plan to fix it? Thanks. My plan is to find somebody who will fix it. Thanks.