All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] btrfs: adjust async discard tuning
@ 2023-04-05 19:43 Boris Burkov
  2023-04-05 19:43 ` [PATCH v2 1/2] btrfs: set default discard iops_limit to 1000 Boris Burkov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Boris Burkov @ 2023-04-05 19:43 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

Since discard=async became the implicit default in btrfs in the
6.2 kernel, there have been numerous complaints about discard being
too spread out on workstation systems. This results in situations like
a users drive not being idle for an unexpectedly long period of time.

This is caused by a relatively low default iops limit of 10, so this
series raises the default limit to 1000 (1ms delay) and modifies a
weird fallback behavior for limit=0 to be interpreted as unlimited.

Link: https://lore.kernel.org/linux-btrfs/ZCxKc5ZzP3Np71IC@infradead.org/T/#m6ebdeb475809ed7714b21b8143103fb7e5a966da
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2182228
Link: https://www.reddit.com/r/archlinux/comments/121htxn/btrfs_discard_storm_on_62x_kernel/

---
Changelog:
v2: actually set the limit to 1k, not 10k.

Boris Burkov (2):
  btrfs: set default discard iops_limit to 1000
  btrfs: reinterpret async discard iops_limit=0 as no delay

 fs/btrfs/discard.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

-- 
2.40.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-06 22:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05 19:43 [PATCH v2 0/2] btrfs: adjust async discard tuning Boris Burkov
2023-04-05 19:43 ` [PATCH v2 1/2] btrfs: set default discard iops_limit to 1000 Boris Burkov
2023-04-06 22:44   ` Neal Gompa
2023-04-05 19:43 ` [PATCH v2 2/2] btrfs: reinterpret async discard iops_limit=0 as no delay Boris Burkov
2023-04-06 22:47   ` Neal Gompa
2023-04-06 14:57 ` [PATCH v2 0/2] btrfs: adjust async discard tuning David Sterba

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.