Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3163891pxb; Tue, 12 Jan 2021 07:51:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyO5RIGAy/qqzuQfzYQNNykoS3Qh0tHwy7XpPDmrQ76ve5QL5uI92+xAMY/+ErAtUNNYX31 X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr3850388edb.143.1610466662490; Tue, 12 Jan 2021 07:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610466662; cv=none; d=google.com; s=arc-20160816; b=tg1rjS6w+VVSw9mZKbK0E6d10bESn/jdCyw2q+LpMaJfXqh6Pln3wnYWfTaaugrdL7 6FFka38pjaxoFA1tsCFqr/PGWQsJPEi7NwCYZmc5K6eUNrSfFmWjquKPmmozDn7KkidH 7jexHr5Hjzw5/Tb9jfrK6emQBI4ivSn3/Cnx0jRkzXq57In+Ki9et7FP0PeEyXYjw91m arC9O4eQzdy4Ug46n1iCefK9Bw1KMHlhqnFQ0iFQPADPcZBcTNETRbCqdaDnKkbcsg6H ZjG9AqPUolU6lN1O/Tk34RNmskN82pceRR5XAXYk2RotskRke1IcnrnGcZjCynOiVssP WlLQ== 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=ZBmth6nsxxSr2GMF+eBBWY+3jFviE8ddfC0agWQtipY=; b=ZSJQbX3oWN+8GTul0V5P9MdNy/cfOoUAFtpRM4B1ynZWv5vzAodOMQvCEZBlZTSLNj y0UCamVQkEOZ8bXiNv7MdzosP1QBZh8oZ/bpEPZBz3Tx6nkcRZI+zV2hZv7ezn3C3GwV Dw+1SiKXlB0wXaLPZa9yUfVZukJprfWHz1lLf5PgE36P0iY0wkFFsBfDcBGNJd4xwjYh 4kLIm+dXcKxdQ+WOFubGYIo31Y/Irgf6ynkNJLD+70g1eo6d1bI0TU4xcJpRzg4aKOIZ 6bG/a5Q/zMe6ZUsO3jtXXzrXFs82I7YvzfHpb0cikTtJwARkaDu2YeSqjdRKHuYUt1Mz f0KA== 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 p22si1308401eji.449.2021.01.12.07.50.38; Tue, 12 Jan 2021 07:51:02 -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 S2405690AbhALPsE (ORCPT + 99 others); Tue, 12 Jan 2021 10:48:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:36772 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405550AbhALPsD (ORCPT ); Tue, 12 Jan 2021 10:48:03 -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 E6FCEAC24; Tue, 12 Jan 2021 15:47:21 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 93EADDA87C; Tue, 12 Jan 2021 16:45:29 +0100 (CET) Date: Tue, 12 Jan 2021 16:45:29 +0100 From: David Sterba To: kernel test robot Cc: 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, zhengjun.xing@intel.com, linux-btrfs@vger.kernel.org Subject: Re: [btrfs] e076ab2a2c: fio.write_iops -18.3% regression Message-ID: <20210112154529.GT6430@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: 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, zhengjun.xing@intel.com, linux-btrfs@vger.kernel.org References: <20210112153614.GA2015@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210112153614.GA2015@xsang-OptiPlex-9020> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.