linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] btrfs: minor reclaim tuning
@ 2022-10-13 22:52 Boris Burkov
  2022-10-13 22:52 ` [PATCH v2 1/2] btrfs: skip reclaim if block_group is empty Boris Burkov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Boris Burkov @ 2022-10-13 22:52 UTC (permalink / raw)
  To: linux-btrfs, kernel-team, 'Filipe Manana '

Two minor reclaim fixes that reduce relocations when they aren't quite
necessary. These are a basic first step in a broader effort to reduce
the alarmingly high rate of relocation we have observed in production
at Meta.

The first patch skips empty relocation.

The second patch skips relocation that no longer passes the reclaim
threshold check at reclaim time.

Changes in v2:
- added the re-check patch
- improved commit message and comment in the skip-empty patch.

Boris Burkov (2):
  btrfs: skip reclaim if block_group is empty
  btrfs: re-check reclaim condition in reclaim worker

 fs/btrfs/block-group.c | 83 +++++++++++++++++++++++++++++-------------
 1 file changed, 58 insertions(+), 25 deletions(-)

-- 
2.38.0


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

end of thread, other threads:[~2022-10-14 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-13 22:52 [PATCH v2 0/2] btrfs: minor reclaim tuning Boris Burkov
2022-10-13 22:52 ` [PATCH v2 1/2] btrfs: skip reclaim if block_group is empty Boris Burkov
2022-10-13 22:52 ` [PATCH v2 2/2] btrfs: re-check reclaim condition in reclaim worker Boris Burkov
2022-10-14  8:43   ` David Sterba
2022-10-14 10:24 ` [PATCH v2 0/2] btrfs: minor reclaim tuning Filipe Manana
2022-10-14 14:09 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).