public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET 0/5] xfs: use slab caches for deferred log items
@ 2021-10-19 18:52 Darrick J. Wong
  2021-10-19 18:52 ` [PATCH 1/5] xfs: compact deferred intent item structures Darrick J. Wong
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Darrick J. Wong @ 2021-10-19 18:52 UTC (permalink / raw)
  To: djwong; +Cc: linux-xfs

Hi all,

Since the adding of reflink and reverse mapping to the filesystem,
deferred log items are used quite a lot more frequently than they used
to be.  This means that we're cycling a lot of small objects through the
slab caches, just like we do with btree cursors.  Pack deferred item
contexts into memory pages more densely by creating separate slab caches
for each type, and shrink the intent items to use less memory.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=deferred-item-caches-5.16
---
 fs/xfs/libxfs/xfs_ag.c         |    2 -
 fs/xfs/libxfs/xfs_alloc.c      |   82 +++++++++++++++++++++++++++++++++++++---
 fs/xfs/libxfs/xfs_alloc.h      |   36 ++++++++++++++++++
 fs/xfs/libxfs/xfs_bmap.c       |   76 ++++++++++---------------------------
 fs/xfs/libxfs/xfs_bmap.h       |   35 +++--------------
 fs/xfs/libxfs/xfs_bmap_btree.c |    2 -
 fs/xfs/libxfs/xfs_defer.c      |   67 +++++++++++++++++++++++++++++++--
 fs/xfs/libxfs/xfs_defer.h      |    3 +
 fs/xfs/libxfs/xfs_ialloc.c     |    4 +-
 fs/xfs/libxfs/xfs_refcount.c   |   46 +++++++++++++++-------
 fs/xfs/libxfs/xfs_refcount.h   |    7 +++
 fs/xfs/libxfs/xfs_rmap.c       |   21 ++++++++++
 fs/xfs/libxfs/xfs_rmap.h       |    7 +++
 fs/xfs/xfs_bmap_item.c         |    4 +-
 fs/xfs/xfs_extfree_item.c      |   19 ++++++---
 fs/xfs/xfs_refcount_item.c     |    4 +-
 fs/xfs/xfs_reflink.c           |    2 -
 fs/xfs/xfs_rmap_item.c         |    4 +-
 fs/xfs/xfs_super.c             |   21 +++++-----
 19 files changed, 302 insertions(+), 140 deletions(-)


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

end of thread, other threads:[~2021-10-21  1:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 18:52 [PATCHSET 0/5] xfs: use slab caches for deferred log items Darrick J. Wong
2021-10-19 18:52 ` [PATCH 1/5] xfs: compact deferred intent item structures Darrick J. Wong
2021-10-20 10:44   ` Chandan Babu R
2021-10-19 18:52 ` [PATCH 2/5] xfs: create slab caches for frequently-used deferred items Darrick J. Wong
2021-10-20 10:45   ` Chandan Babu R
2021-10-21  1:56     ` Darrick J. Wong
2021-10-19 18:52 ` [PATCH 3/5] xfs: rename xfs_bmap_add_free to xfs_free_extent_later Darrick J. Wong
2021-10-20 10:45   ` Chandan Babu R
2021-10-19 18:52 ` [PATCH 4/5] xfs: reduce the size of struct xfs_extent_free_item Darrick J. Wong
2021-10-20 10:46   ` Chandan Babu R
2021-10-19 18:52 ` [PATCH 5/5] xfs: remove unused parameter from refcount code Darrick J. Wong
2021-10-20 10:46   ` Chandan Babu R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox