All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] btrfs: data block group size classes
@ 2022-11-16 19:22 Boris Burkov
  2022-11-16 19:22 ` [PATCH v2 1/4] btrfs: use ffe_ctl in btrfs allocator tracepoints Boris Burkov
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Boris Burkov @ 2022-11-16 19:22 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

This patch set introduces the notion of size classes to the block group
allocator for data block groups. This is specifically useful because the
first fit allocator tends to perform poorly when large extents free up
in older block groups and small writes suddenly shift there. Generally,
it should lead to slightly more predictable allocator behavior as the
gaps left by frees will be used by allocations of a similar size.

Details about the changes and performance testing are in the individual
commit messages.

The last two patches constitute the business of the change. One adds the
size classes and the other handles the fact that we don't want to
persist the size class, so we don't know it when we first load a block
group.
---
v2:
- removed 1G falloc extents patch
- rebased tracepoints patches onto significant header file refactor

Boris Burkov (4):
  btrfs: use ffe_ctl in btrfs allocator tracepoints
  btrfs: add more ffe tracepoints
  btrfs: introduce size class to block group allocator
  btrfs: load block group size class when caching

 fs/btrfs/block-group.c       | 234 ++++++++++++++++++++++++++++++++---
 fs/btrfs/block-group.h       |  15 ++-
 fs/btrfs/extent-tree.c       | 166 +++++++------------------
 fs/btrfs/extent-tree.h       |  81 ++++++++++++
 fs/btrfs/super.c             |   1 +
 include/trace/events/btrfs.h | 128 +++++++++++++++----
 6 files changed, 466 insertions(+), 159 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2022-11-18 16:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 19:22 [PATCH v2 0/4] btrfs: data block group size classes Boris Burkov
2022-11-16 19:22 ` [PATCH v2 1/4] btrfs: use ffe_ctl in btrfs allocator tracepoints Boris Burkov
2022-11-17  7:33   ` Johannes Thumshirn
2022-11-17 20:16   ` Anand Jain
2022-11-18 16:51   ` David Sterba
2022-11-16 19:22 ` [PATCH v2 2/4] btrfs: add more ffe tracepoints Boris Burkov
2022-11-18  8:35   ` Johannes Thumshirn
2022-11-16 19:22 ` [PATCH v2 3/4] btrfs: introduce size class to block group allocator Boris Burkov
2022-11-16 19:22 ` [PATCH v2 4/4] btrfs: load block group size class when caching Boris Burkov
2022-11-17  9:12   ` kernel test robot
2022-11-17  9:22   ` kernel test robot
2022-11-18 16:56 ` [PATCH v2 0/4] btrfs: data block group size classes 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.