FSTests Archive mirror
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Zorro Lang <zlang@redhat.com>
Cc: fstests@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	willy@infradead.org, p.raghav@samsung.com, da.gomez@samsung.com,
	hare@suse.de, john.g.garry@oracle.com, ziy@nvidia.com,
	linux-xfs@vger.kernel.org, patches@lists.linux.dev
Subject: Re: [RFC] fstests: add fsstress + writeback + debugfs folio split test
Date: Sun, 28 Apr 2024 21:40:20 -0700	[thread overview]
Message-ID: <Zi8ktG914Oc5_bl1@bombadil.infradead.org> (raw)
In-Reply-To: <20240425053150.tx7pdosbfv5adat6@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com>

On Thu, Apr 25, 2024 at 01:31:50PM +0800, Zorro Lang wrote:
> On Wed, Apr 24, 2024 at 03:46:48PM -0700, Luis Chamberlain wrote:
> > This is dangerous at the moment as its using
> > a debugfs API which requires two out of tree fixes [0] [1] which will
> > be posted shortly.
> I can't find "boot_params" in /sys/kernel/debug/. So we might need to
> fix this helper, and then call it in debugfs related test cases.
> 
> I'll send another patch to talk about that fix. For this case, it needs
> _require_debugfs and $DEBUGFS_MNT.

Sure I'll wait until you send patches to fix this.

> > +_begin_fstest long_rw stress soak smoketest dangerous_fuzzers
> 
> Just double check, is it a dangerous_fuzzers test, and not good to be in auto group?

Yes for the explanation quoted above from the commit log, today the
existing code requires fixes which I just posted. The sscanf bug is also
hard to reproduce but I manged to reproduce it so this simple fix is
still being discussed. So for now only those in the know of what they
are doing should run this test.

> > +blocksize=$(_get_file_block_size $SCRATCH_MNT)
> > +export XFS_DIO_MIN=$((blocksize * 2))
> 
> Oh, I even forgot we have this parameter in fsstress.c :)

Yes, but its not well documented for good reason too, its only for DIO.

> > +test -n "$SOAK_DURATION" && fsstress_args+=(--duration="$SOAK_DURATION")
> > +
> > +# Our general goal here is to race with ops which can stress folio addition,
> > +# removal, edits, and writeback.
> > +
> > +# zero frequencies for write ops to minimize writeback
> > +fsstress_args+=(-R)
> 
> But you set "fsstress_args=(-w -d $SCRATCH_MNT/test -n $nr_ops -p $nr_cpus)" above,
> so you zeros frequencies of non-write operations (-w) and then zeros frequencies of
> write operations (-R). Do you want to use "-z" directly, to zeros frequencies of
> all operations ?

You know, it took a whileto figure out the right values here but I've
done more experimentation and we can just go with the defaults, what we
also needed is to add compaction so to help reproduce the real crash I
was trying to aim for. Now its cooked up.

For now I'll just post a v2 RFC and leave the cleanup stuff you've
requested for a v3. Right now this is just useful for folks who want
to help debug truncation + writeback + compaction races we are
uncovering with min order.

  Luis

      reply	other threads:[~2024-04-29  4:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24 22:46 [RFC] fstests: add fsstress + writeback + debugfs folio split test Luis Chamberlain
2024-04-25  5:31 ` Zorro Lang
2024-04-29  4:40   ` Luis Chamberlain [this message]

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=Zi8ktG914Oc5_bl1@bombadil.infradead.org \
    --to=mcgrof@kernel.org \
    --cc=da.gomez@samsung.com \
    --cc=fstests@vger.kernel.org \
    --cc=hare@suse.de \
    --cc=john.g.garry@oracle.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=p.raghav@samsung.com \
    --cc=patches@lists.linux.dev \
    --cc=willy@infradead.org \
    --cc=ziy@nvidia.com \
    --cc=zlang@redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).