mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: MingTao Huang <1037827920@qq.com>
To: Dave Chinner <dgc@kernel.org>, Brian Foster <bfoster@redhat.com>
Cc: Carlos Maiolino <cem@kernel.org>,
	"Darrick J . Wong" <djwong@kernel.org>,
	Chandan Babu R <chandanbabu@kernel.org>,
	MingTao Huang <mintaohuang@tencent.com>,
	linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	MingTao Huang <1037827920@qq.com>
Subject: Re: [PATCH] xfs: fix skipped flushing items not counted in xfsaild_push()
Date: Wed,  2 Dec 2026 12:47:23 +0800	[thread overview]
Message-ID: <tencent_9F59CB1636FF5EDB5B6013123A52B613A509@qq.com> (raw)
In-Reply-To: <aseNtqNcruhTeOEd@bfoster>

Hi Dave and Brian,

Sorry for the long delay in following up. I've been tied up with
other work for the past two months and only recently had time to
get back to this.

I revisited the vmcore from the original xfsaild soft lockup and
found that xfsaild and a stress-ng lockbus worker were running on
the two SMT threads of the same physical core at dump time.

The lockbus stressor is part of the mixed workload in our stability
suite. It exercises locked atomic operations that cross cache-line
boundaries. These split locks can stall memory accesses on other
CPUs, and the SMT sibling suffers the most. In our comparison tests,
xfsaild used roughly 3-4x as much CPU time per counted AIL push
decision when the lockbus worker ran on its SMT sibling as when it
ran on a separate physical core.

I reproduced the soft lockup by generating a large batch of
metadata with a burst of directory creation and pinning xfsaild
and a lockbus worker to the same physical core.

The original vmcore showed many AIL items sharing one LSN. As Dave
pointed out, the batch cutoff currently requires both count > 1000
and an LSN change, so xfsaild can queue a large delwri batch within
a single LSN group. In the original vmcore, count reached 5485 in
that push. The AIL scan and delwri submission loops have no explicit
reschedule points. With our PREEMPT_NONE default, xfsaild can run
through both phases without a context switch.

My current read is that the same-core lockbus load stretched an
already large push enough to keep the watchdog task from being
scheduled before the timeout.

I'm not sure whether running the lockbus stressor alongside
filesystem stress is a meaningful part of Linux stability testing,
or whether it mostly creates a pathological load that real systems
would not see. Would it make sense to drop it from our mixed
stability workload?

Thanks,
MingTao


  reply	other threads:[~2026-12-02  4:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22  8:14 MingTao Huang
2026-09-22 15:02 ` Darrick J. Wong
2026-09-22 22:12 ` Dave Chinner
2026-09-23 13:44   ` Brian Foster
2026-09-24  0:34     ` Dave Chinner
2026-09-28 18:51       ` Brian Foster
2026-09-29  2:13         ` Dave Chinner
2026-09-30 13:56           ` Brian Foster
2026-10-06  4:19             ` Dave Chinner
2026-10-08 12:33               ` Brian Foster
2026-12-02  4:47                 ` MingTao Huang [this message]
2026-10-08 12:41               ` Carlos Maiolino
2026-09-24  2:11   ` MingTao Huang

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=tencent_9F59CB1636FF5EDB5B6013123A52B613A509@qq.com \
    --to=1037827920@qq.com \
    --cc=bfoster@redhat.com \
    --cc=cem@kernel.org \
    --cc=chandanbabu@kernel.org \
    --cc=dgc@kernel.org \
    --cc=djwong@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=mintaohuang@tencent.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

all inboxes | Powered by JetHome®