All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Allocate eb in 16k an 64k slabs, cache folio address
@ 2025-08-28 21:53 David Sterba
  2025-08-28 21:53 ` [PATCH 1/2] btrfs: add 16K and 64K slabs for extent buffers David Sterba
  2025-08-28 21:53 ` [PATCH 2/2] btrfs: use cached extent buffer folio address everywhere David Sterba
  0 siblings, 2 replies; 11+ messages in thread
From: David Sterba @ 2025-08-28 21:53 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

Optimiztion of eb folio access.

NOTE: does not work with both patches applied, btrfs/002 hangs and I
      don't see why. I'm sending this out in case somebody can spot it.

The extent buffer folio array is not used effectively on 16K node size,
so there are two slabs allocated for the default size and 64k for
everything else. With some pointer magic we can also cache the folio
addresses and this allows object code reduction. Numbers are in the
patches.

David Sterba (2):
  btrfs: add 16K and 64K slabs for extent buffers
  btrfs: use cached extent buffer folio address everywhere

 fs/btrfs/accessors.c | 12 +++---
 fs/btrfs/accessors.h |  5 +--
 fs/btrfs/ctree.c     |  2 +-
 fs/btrfs/disk-io.c   |  6 +--
 fs/btrfs/extent_io.c | 96 ++++++++++++++++++++++++++++++--------------
 fs/btrfs/extent_io.h | 20 ++++++---
 6 files changed, 92 insertions(+), 49 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-08-29  1:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 21:53 [PATCH 0/2] Allocate eb in 16k an 64k slabs, cache folio address David Sterba
2025-08-28 21:53 ` [PATCH 1/2] btrfs: add 16K and 64K slabs for extent buffers David Sterba
2025-08-28 22:26   ` Qu Wenruo
2025-08-28 23:17     ` Qu Wenruo
2025-08-28 23:30     ` David Sterba
2025-08-28 23:34       ` Qu Wenruo
2025-08-28 23:45         ` David Sterba
2025-08-28 23:50           ` Qu Wenruo
2025-08-29  0:50             ` David Sterba
2025-08-29  1:07               ` Qu Wenruo
2025-08-28 21:53 ` [PATCH 2/2] btrfs: use cached extent buffer folio address everywhere 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.