All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: "hch@infradead.org" <hch@infradead.org>,
	"fstests@vger.kernel.org" <fstests@vger.kernel.org>
Subject: Re: xfs/566 execution time
Date: Wed, 21 May 2025 15:49:29 -0700	[thread overview]
Message-ID: <20250521224929.GA3203850@frogsfrogsfrogs> (raw)
In-Reply-To: <b7vls4sjlx556wax6uagfkey6y5u2t652qu5ne2a6sxpofowdt@3annzxxqdmwq>

On Wed, May 21, 2025 at 09:37:53AM +0000, Shinichiro Kawasaki wrote:
> On May 20, 2025 / 20:19, Darrick J. Wong wrote:
> > On Tue, May 20, 2025 at 07:08:58AM -0700, Christoph Hellwig wrote:
> > > Hi Darrick,
> > > 
> > > we regularly see execution times of more than half a day for xfs/566
> > > on a 30ish TB SMR HDD.  Do you think there might be a useful way to
> > > scale down the load on rotational devices?
> > 
> > Hrmm.  Is that the only one that does that, or do the other scrub tests
> > take a while too?
> 
> As to the test with SMR HDDs, I observed very long test run on two test cases:
> xfs/566 and xfs/732.
> 
> > If it's just that one, and setting SOAK_DURATION=2m
> > results in the test cutting off after 2min, then I'll craft some sort of
> > fix to constrain the runtime.
> 
> I added,
> 
>  "export SOAK_DURATION=2m"
> 
> to local.config and ran xfs/566, but that setting does not look working.
> The test case rusn more than a half an hour...

Huh, that's /very/ strange.  In the absence of a SOAK_DURATION, the test
should only run itself for 30 seconds.  From common/fuzzy,
_scratch_xfs_stress_scrub does this to set the end-time:

	if [ -n "$SOAK_DURATION" ]; then
		end="$((start + SOAK_DURATION))"
	else
		end="$((start + (30 * TIME_FACTOR) ))"
	fi

and then __stress_scrub_fsx_loop does:

	while __stress_scrub_running "$end" "$runningfile"; do
		# Need to recheck running conditions if we cleared anything
		__stress_scrub_clean_scratch && continue
		duration=$(___stress_scrub_duration "$end" "$remount_period")
		___scrub_run_fsx $duration $d_args &

which should be sufficient to exit the fsx loop.  Then we go back to
_scratch_xfs_stress_scrub and:

	# Wait until the designated end time or fsstress dies, then kill all of
	# our background processes.
	while __stress_scrub_running "$end" "$runningfile"; do
		sleep 1
	done
	_scratch_xfs_stress_scrub_cleanup

which just waits for fsx and scrub to exit.  If you start this test and
wait about 45 seconds or so, can you send me the ps output so I can try
to figure out which component(s) aren't stopping in time?

--D

  reply	other threads:[~2025-05-21 22:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-20 14:08 xfs/566 execution time Christoph Hellwig
2025-05-21  3:19 ` Darrick J. Wong
2025-05-21  9:37   ` Shinichiro Kawasaki
2025-05-21 22:49     ` Darrick J. Wong [this message]
2025-05-23  0:59       ` Shinichiro Kawasaki

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=20250521224929.GA3203850@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=hch@infradead.org \
    --cc=shinichiro.kawasaki@wdc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.