diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2024-04-08 21:36:56 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-04-16 11:34:47 -0400 |
commit | 5268de78e1e61c828174cb2ac7d9c566a97cce69 (patch) | |
tree | ffe0ac0469daeec112acb98f6f664e22187ac295 /fs/btrfs/tree-mod-log.c | |
parent | 48ef0ba12e6b77a1ce5d09c580c38855b090ae7c (diff) |
dm-crypt: add the optional "high_priority" flag
When WQ_HIGHPRI was used for the dm-crypt kcryptd workqueue it was
reported that dm-crypt performs badly when the system is loaded[1].
Because of reports of audio skipping, dm-crypt stopped using
WQ_HIGHPRI with commit f612b2132db5 (Revert "dm crypt: use WQ_HIGHPRI
for the IO and crypt workqueues").
But it has since been determined that WQ_HIGHPRI provides improved
performance (with reduced latency) for highend systems with much more
resources than those laptop/desktop users which suffered from the use
of WQ_HIGHPRI.
As such, add an option "high_priority" that allows the use of
WQ_HIGHPRI for dm-crypt's workqueues and also sets the write_thread to
nice level MIN_NICE (-20). This commit makes it optional, so that
normal users won't be harmed by it.
[1] https://listman.redhat.com/archives/dm-devel/2023-February/053410.html
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions