From: Sagi Grimberg <sagi@grimberg.me>
To: Kamaljit Singh <Kamaljit.Singh1@wdc.com>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kbusch@kernel.org" <kbusch@kernel.org>
Subject: Re: WQ_UNBOUND workqueue warnings from multiple drivers
Date: Wed, 20 Mar 2024 11:11:16 +0200 [thread overview]
Message-ID: <c4057654-97bd-4721-9bed-9dd5ef8b3f8d@grimberg.me> (raw)
In-Reply-To: <BYAPR04MB41513F04DB2ECDC3601CC36ABC2D2@BYAPR04MB4151.namprd04.prod.outlook.com>
On 19/03/2024 0:33, Kamaljit Singh wrote:
> Hello,
>
> After switching from Kernel v6.6.2 to v6.6.21 we're now seeing these workqueue
> warnings. I found a discussion thread about the the Intel drm driver here
> https://lore.kernel.org/lkml/ZO-BkaGuVCgdr3wc@slm.duckdns.org/T/
>
> and this related bug report https://gitlab.freedesktop.org/drm/intel/-/issues/9245
> but that that drm fix isn't merged into v6.6.21. It appears that we may need the same
> WQ_UNBOUND change to the nvme host tcp driver among others.
>
> [Fri Mar 15 22:30:06 2024] workqueue: nvme_tcp_io_work [nvme_tcp] hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND
> [Fri Mar 15 23:44:58 2024] workqueue: drain_vmap_area_work hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND
> [Sat Mar 16 09:55:27 2024] workqueue: drain_vmap_area_work hogged CPU for >10000us 8 times, consider switching to WQ_UNBOUND
> [Sat Mar 16 17:51:18 2024] workqueue: nvme_tcp_io_work [nvme_tcp] hogged CPU for >10000us 8 times, consider switching to WQ_UNBOUND
> [Sat Mar 16 23:04:14 2024] workqueue: nvme_tcp_io_work [nvme_tcp] hogged CPU for >10000us 16 times, consider switching to WQ_UNBOUND
> [Sun Mar 17 21:35:46 2024] perf: interrupt took too long (2707 > 2500), lowering kernel.perf_event_max_sample_rate to 73750
> [Sun Mar 17 21:49:34 2024] workqueue: drain_vmap_area_work hogged CPU for >10000us 16 times, consider switching to WQ_UNBOUND
> ...
> workqueue: drm_fb_helper_damage_work [drm_kms_helper] hogged CPU for >10000us 32 times, consider switching to WQ_UNBOUND
Hey Kamaljit,
Its interesting that this happens because nvme_tcp_io_work is bound to 1
jiffie.
Although in theory we do not stop receiving from a socket once we
started, so
I guess this can happen in some extreme cases. Was the test you were running
read-heavy?
I was thinking that we may want to optionally move the recv path to
softirq instead to
get some latency improvements, although I don't know if that would
improve the situation
if we end up spending a lot of time in soft-irq...
>
>
> Thanks,
> Kamaljit Singh
next prev parent reply other threads:[~2024-03-20 9:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 22:33 Kamaljit Singh
2024-03-20 9:11 ` Sagi Grimberg [this message]
2024-03-21 17:36 ` Chaitanya Kulkarni
2024-04-02 23:50 ` Kamaljit Singh
2024-04-07 20:08 ` Sagi Grimberg
2024-05-08 23:16 ` Kamaljit Singh
2024-05-09 6:36 ` Sagi Grimberg
[not found] ` <BYAPR04MB41514F3EA640750D6C68AF56BCF12@BYAPR04MB4151.namprd04.prod.outlook.com>
2024-05-31 4:27 ` Sagi Grimberg
2024-06-04 0:06 ` Kamaljit Singh
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=c4057654-97bd-4721-9bed-9dd5ef8b3f8d@grimberg.me \
--to=sagi@grimberg.me \
--cc=Kamaljit.Singh1@wdc.com \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.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
all inboxes | Powered by JetHome®