From: Chenglong Tang <chenglongtang@google.com>
To: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org, regressions@lists.linux.dev,
roman.gushchin@linux.dev, linux-mm@kvack.org,
lakitu-dev@google.com
Subject: Re: [REGRESSION] workqueue/writeback: Severe CPU hang due to kworker proliferation during I/O flush and cgroup cleanup
Date: Fri, 26 Sep 2025 12:50:51 -0700 [thread overview]
Message-ID: <CAOdxtTZmqGpT85ER+c4VsQfoo+AHDyWC+6MG__hm5i6+sVoaWQ@mail.gmail.com> (raw)
In-Reply-To: <aNSSNgUeMSTtlimW@slm.duckdns.org>
Just did more testing here. Confirmed that the system hang's still
there but less frequently(6/40) with the patches
http://lkml.kernel.org/r/20250912103522.2935-1-jack@suse.cz appied to
v6.17-rc7. In the bad instances, the kworker count climbed to over
600+ and caused the hang over 80+ seconds.
So I think the patches didn't fully solve the issue.
On Wed, Sep 24, 2025 at 5:52 PM Tejun Heo <tj@kernel.org> wrote:
>
> On Wed, Sep 24, 2025 at 05:24:15PM -0700, Chenglong Tang wrote:
> > The kernel v6.1 is good. The hang is reliably triggered(over 80% chance) on
> > kernels v6.6 and 6.12 and intermittently on mainline(6.17-rc7) with the
> > following steps:
> > -
> >
> > *Environment:* A machine with a fast SSD and a high core count (e.g.,
> > Google Cloud's N2-standard-128).
> > -
> >
> > *Workload:* Concurrently generate a large number of files (e.g., 2 million)
> > using multiple services managed by systemd-run. This creates significant
> > I/O and cgroup churn.
> > -
> >
> > *Trigger:* After the file generation completes, terminate the systemd-run
> > services.
> > -
> >
> > *Result:* Shortly after the services are killed, the system's CPU load
> > spikes, leading to a massive number of kworker/+inode_switch_wbs threads
> > and a system-wide hang/livelock where the machine becomes unresponsive (20s
> > - 300s).
>
> Sounds like:
>
> http://lkml.kernel.org/r/20250912103522.2935-1-jack@suse.cz
>
> Can you see whether those patches resolve the problem?
>
> Thanks.
>
> --
> tejun
next prev parent reply other threads:[~2025-09-26 19:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-25 0:24 Chenglong Tang
2025-09-25 0:52 ` Tejun Heo
2025-09-25 16:58 ` Chenglong Tang
2025-09-26 19:50 ` Chenglong Tang [this message]
2025-09-25 0:29 Chenglong Tang
2025-09-26 19:54 ` Chenglong Tang
2025-09-26 19:59 ` Tejun Heo
2025-09-26 20:07 ` Chenglong Tang
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=CAOdxtTZmqGpT85ER+c4VsQfoo+AHDyWC+6MG__hm5i6+sVoaWQ@mail.gmail.com \
--to=chenglongtang@google.com \
--cc=lakitu-dev@google.com \
--cc=linux-mm@kvack.org \
--cc=regressions@lists.linux.dev \
--cc=roman.gushchin@linux.dev \
--cc=stable@vger.kernel.org \
--cc=tj@kernel.org \
/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