From: Tejun Heo <tj@kernel.org>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>,
Waiman Long <longman@redhat.com>,
Mike Snitzer <snitzer@kernel.org>,
Laurence Oberman <loberman@redhat.com>,
Jonathan Brassow <jbrassow@redhat.com>,
Ming Lei <minlei@redhat.com>, Ondrej Kozina <okozina@redhat.com>,
Milan Broz <gmazyland@gmail.com>,
linux-kernel@vger.kernel.org, dm-devel@lists.linux.dev
Subject: Re: dm-crypt performance regression due to workqueue changes
Date: Sun, 30 Jun 2024 07:13:09 -1000 [thread overview]
Message-ID: <ZoGSJWMD9v1BxUDb@slm.duckdns.org> (raw)
In-Reply-To: <32fd8274-d5f-3eca-f5d2-1a9117fd8edb@redhat.com>
Hello,
On Sat, Jun 29, 2024 at 08:15:56PM +0200, Mikulas Patocka wrote:
> With 6.5, we get 3600MiB/s; with 6.6 we get 1400MiB/s.
>
> The reason is that virt-manager by default sets up a topology where we
> have 16 sockets, 1 core per socket, 1 thread per core. And that workqueue
> patch avoids moving work items across sockets, so it processes all
> encryption work only on one virtual CPU.
>
> The performance degradation may be fixed with "echo 'system'
> >/sys/module/workqueue/parameters/default_affinity_scope" - but it is
> regression anyway, as many users don't know about this option.
>
> How should we fix it? There are several options:
> 1. revert back to 'numa' affinity
> 2. revert to 'numa' affinity only if we are in a virtual machine
> 3. hack dm-crypt to set the 'numa' affinity for the affected workqueues
> 4. any other solution?
Do you happen to know why libvirt is doing that? There are many other
implications to configuring the system that way and I don't think we want to
design kernel behaviors to suit topology information fed to VMs which can be
arbitrary.
Thanks.
--
tejun
next prev parent reply other threads:[~2024-06-30 17:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-29 18:15 dm-crypt performance regression due to workqueue changes Mikulas Patocka
2024-06-29 18:29 ` Waiman Long
2024-06-30 9:49 ` Mikulas Patocka
2024-06-30 14:35 ` Waiman Long
2024-06-30 17:13 ` Tejun Heo [this message]
2024-06-30 18:49 ` Mikulas Patocka
2024-07-01 12:48 ` Michal Prívozník
2024-07-01 13:25 ` Daniel P. Berrangé
2024-07-01 13:40 ` Mikulas Patocka
2024-07-01 13:08 ` Daniel P. Berrangé
2024-07-01 13:42 ` Mikulas Patocka
2024-07-01 13:52 ` Daniel P. Berrangé
2024-07-01 17:25 ` Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2024-03-09 10:18 Thread for updating minor properties of tracked regressions [consider ignoring it!] Thorsten Leemhuis
2024-07-07 22:54 ` Christian Heusel
2024-07-08 7:08 ` dm-crypt performance regression due to workqueue changes (was: Re: Thread for updating minor properties of tracked regressions [consider ignoring it!]) Thorsten Leemhuis
2024-07-08 10:51 ` Christian Heusel
2024-07-08 11:16 ` dm-crypt performance regression due to workqueue changes Thorsten Leemhuis
2024-07-08 17:03 ` Christian Heusel
2024-07-09 7:53 ` Thorsten Leemhuis
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=ZoGSJWMD9v1BxUDb@slm.duckdns.org \
--to=tj@kernel.org \
--cc=dm-devel@lists.linux.dev \
--cc=gmazyland@gmail.com \
--cc=jbrassow@redhat.com \
--cc=jiangshanlai@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=loberman@redhat.com \
--cc=longman@redhat.com \
--cc=minlei@redhat.com \
--cc=mpatocka@redhat.com \
--cc=okozina@redhat.com \
--cc=snitzer@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 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.