Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp538749ybi; Fri, 24 May 2019 07:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQUOm96zjKenMBguskC7XCywkJJOG+R0lLmPjct8FljDxrxA1L/W/tgVHDgS6y7IJHILi2 X-Received: by 2002:a17:902:f085:: with SMTP id go5mr96670700plb.53.1558708746796; Fri, 24 May 2019 07:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558708746; cv=none; d=google.com; s=arc-20160816; b=esY98Iutq+iTGkA7L+NvoMmz/bZ3kOePT98CReGltorruoHpdRgBGVmnEiNMi3DT6D 2/SxND4XnrwTLSxKgsU6KSZlnwff31Inp8qIwSsqZZ28xV/G3DyhTcazlaKIoAmgwad1 oFzSQbKcJ9zoaa0PpBYA2E9m1rmOVpR8fpwSODEuu+JvpEiR2Q34FqG9X7L2nESDfgl0 zLVIVNXznyHBl+cQ4wq7X43w/4LPumzOCcNA4cpk6axMFfcKWm6XQiBPhwXnK1tM0h0V e3jX9XFPurQSJq3d8JnvE6Uafo3VkFIiLSH2Y+xDwA40fceehjLTxV5cPolDm8zftkVp Nlfw== 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:dkim-signature; bh=NnZGIthDEueJLTUBQETcG96Vc5ZQvAyOxLJeHJged4c=; b=Lg/ua0tdLy9wko/CL5Pg3+EcfgVv/OlTlEqJQGhkeeZWlBxslayKaSk+MVtYmtHGrn lgE1XnB2j5jupmo47KHL6UpRZznZkzN7bmMwXuEWNkiJpVoVD2y7wqovRSELKajOr//f CGl1q8SJryCTPVJhhTGmhPMUQyJG6Ht0nWvPXEY+2d6yywVj1C3HrVd65A552VWkm4I4 ttsOByMSZCzAi0ssbWs87gZplJ3z86YXtimfQhcVMtTSAvJLw3ee6Up9860fsXzX7F2h VqUvF7e3bd6AZBW/l6T70qUV/Gue/D7AeyzDeCXWZfcc/aVfdXpbE7GosKzqymuo30v3 qEYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b="llWHcf/M"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si4620327pfn.47.2019.05.24.07.38.49; Fri, 24 May 2019 07:39:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b="llWHcf/M"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404127AbfEXOgF (ORCPT + 99 others); Fri, 24 May 2019 10:36:05 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:39972 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390885AbfEXOgE (ORCPT ); Fri, 24 May 2019 10:36:04 -0400 Received: by mail-ua1-f67.google.com with SMTP id d4so3611667uaj.7 for ; Fri, 24 May 2019 07:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NnZGIthDEueJLTUBQETcG96Vc5ZQvAyOxLJeHJged4c=; b=llWHcf/MoXl1N0hYHw3FyAGdJnvwUAjwpx+gqR3CiT28ez2O5NrbABifCGb68vO35n aglsDuuQoBQsBW+tnetGwOFE3uqGBb1wTqZVGEoeJKlPLt0zOnmSjN4hm4y6uHcYhr9k g3MD9/Z8bzRPyCkHu4/7X0fdkKgaLk/kOdsctTXlQBDcfbMQkc3i4DPtvfIjcwXQyIxw +Ei3acksfhldi+ISYZYDsmTwCpFX7BJhKURVHu5wECESV/c90nl2kHJkVX/kp8lACQ0O Yi0HvAFvbzuUQCp/p9MvQlqPnDH2HTbropYfGjSljC+5AgBFP4SG/iwNlwuTzwXJocwY hj/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NnZGIthDEueJLTUBQETcG96Vc5ZQvAyOxLJeHJged4c=; b=om8RzUXDYhrddj/dETzR6vWgJ9tpmynpEM2ZpSv+npalPSC+9rb6NXM+Xjp12yP8vs 73h33nvNxs/EJQ5ll3we0S+TZUeqjYPodFm894+nJLPZn92Zg+pEdP4+Kujlo/HgVyM5 2qLlGR6bKaKYHXGnBss+3l58WIYXXdgHWrDsKJHoWL56jL0e0MCba93E9b0UNCbN5O9b 1CFPvcYMGdIwYSaJLh46Rws0fTedMd9++ojLBSPA66k/iobxWPPc20e4sdfY7VX7j3AK VIGKNlEHp5VY+sNKHI8F64tD8gBE3B9dsFO2SBZhV5M0HDK7Re66JTwqio2isuneXEni 89BA== X-Gm-Message-State: APjAAAUIchSWQHDKvH62rTO9iKSXOY6jY67Rm0V3U0i+6poomX82Dg6k bs1GsJA2aWn27jrRM2sNarLgKQ== X-Received: by 2002:a9f:22e8:: with SMTP id 95mr45354033uan.6.1558708563381; Fri, 24 May 2019 07:36:03 -0700 (PDT) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id x71sm1253913vkd.24.2019.05.24.07.36.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 07:36:02 -0700 (PDT) Date: Fri, 24 May 2019 10:36:00 -0400 From: Josef Bacik To: "Huang, Ying" Cc: Josef Bacik , kernel test robot , David Sterba , Stephen Rothwell , "lkp@01.org" , LKML , Qu Wenruo Subject: Re: [LKP] [btrfs] 302167c50b: fio.write_bw_MBps -12.4% regression Message-ID: <20190524143558.mem7gircjjmut54f@MacBook-Pro-91.local> References: <20190203081802.GD10498@shao2-debian> <87h8alqong.fsf@yhuang-dev.intel.com> <87o94dl6pg.fsf@yhuang-dev.intel.com> <874l5k9tx2.fsf@yhuang-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874l5k9tx2.fsf@yhuang-dev.intel.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 03:46:17PM +0800, Huang, Ying wrote: > "Huang, Ying" writes: > > > "Huang, Ying" writes: > > > >> Hi, Josef, > >> > >> kernel test robot writes: > >> > >>> Greeting, > >>> > >>> FYI, we noticed a -12.4% regression of fio.write_bw_MBps due to commit: > >>> > >>> > >>> commit: 302167c50b32e7fccc98994a91d40ddbbab04e52 ("btrfs: don't end > >>> the transaction for delayed refs in throttle") > >>> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git pending-fixes > >>> > >>> in testcase: fio-basic > >>> on test machine: 88 threads Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz with 64G memory > >>> with following parameters: > >>> > >>> runtime: 300s > >>> nr_task: 8t > >>> disk: 1SSD > >>> fs: btrfs > >>> rw: randwrite > >>> bs: 4k > >>> ioengine: sync > >>> test_size: 400g > >>> cpufreq_governor: performance > >>> ucode: 0xb00002e > >>> > >>> test-description: Fio is a tool that will spawn a number of threads > >>> or processes doing a particular type of I/O action as specified by > >>> the user. > >>> test-url: https://github.com/axboe/fio > >>> > >>> > >> > >> Do you have time to take a look at this regression? > > > > Ping > > Ping again. > This happens because now we rely more on on-demand flushing than the catchup flushing that happened before. This is just one case where it's slightly worse, overall this change provides better latencies, and even in this result it provided better completion latencies because we're not randomly flushing at the end of a transaction. It does appear to be costing writes in that they will spend more time flushing than before, so you get slightly lower throughput on pure small write workloads. I can't actually see the slowdown locally. This patch is here to stay, it just shows we need to continue to refine the flushing code to be less spikey/painful. Thanks, Josef