From: Josef Bacik <josef@toxicpanda.com>
To: Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: [PATCH] btrfs/276: allow a slight increase in the number of extents
Date: Tue, 1 Aug 2023 09:57:47 -0400 [thread overview]
Message-ID: <20230801135747.GA2012161@perftesting> (raw)
In-Reply-To: <20230801065529.50122-1-wqu@suse.com>
On Tue, Aug 01, 2023 at 02:55:29PM +0800, Qu Wenruo wrote:
> [BUG]
> Sometimes test case btrfs/276 would fail with extra number of extents:
>
> - output mismatch (see /opt/xfstests/results//btrfs/276.out.bad)
> --- tests/btrfs/276.out 2023-07-19 07:24:07.000000000 +0000
> +++ /opt/xfstests/results//btrfs/276.out.bad 2023-07-28 04:15:06.223985372 +0000
> @@ -1,16 +1,16 @@
> QA output created by 276
> wrote 17179869184/17179869184 bytes at offset 0
> XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
> -Number of non-shared extents in the whole file: 131072
> +Number of non-shared extents in the whole file: 131082
> Create a snapshot of 'SCRATCH_MNT' in 'SCRATCH_MNT/snap'
> -Number of shared extents in the whole file: 131072
> ...
> (Run 'diff -u /opt/xfstests/tests/btrfs/276.out /opt/xfstests/results//btrfs/276.out.bad' to see the entire diff)
>
> [CAUSE]
> The test case uses golden output to record the number of total extents
> of a 16G file.
>
> This is not reliable as we can have writeback happen halfway, resulting
> smaller extents thus slightly more extents.
>
> With a VM with 4G memory, I have a chance around 1/10 hitting this
> false alert.
>
> [FIX]
> Instead of using golden output, we allow a slight (5%) float in the
> number of extents, and move the 131072 (and 131072 - 16) from golden
> output, so even if we have a slightly more extents, we can still pass
> the test.
>
> Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Thanks,
Josef
next prev parent reply other threads:[~2023-08-01 13:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 6:55 [PATCH] btrfs/276: allow a slight increase in the number of extents Qu Wenruo
2023-08-01 13:57 ` Josef Bacik [this message]
2023-08-01 15:23 ` Darrick J. Wong
2023-08-02 10:23 ` Filipe Manana
2023-08-02 10:36 ` Qu Wenruo
2023-08-02 11:18 ` Qu Wenruo
2023-08-02 17:28 ` Filipe Manana
2023-08-03 1:30 ` Qu Wenruo
2023-08-03 9:02 ` Filipe Manana
2023-08-03 10:32 ` Filipe Manana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230801135747.GA2012161@perftesting \
--to=josef@toxicpanda.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox