public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add mru cache for inode to zone allocation mapping
@ 2025-04-30  8:41 Hans Holmberg
  2025-04-30  8:41 ` [RFC PATCH 1/2] xfs: free the item in xfs_mru_cache_insert on failure Hans Holmberg
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hans Holmberg @ 2025-04-30  8:41 UTC (permalink / raw)
  To: linux-xfs@vger.kernel.org
  Cc: Carlos Maiolino, Dave Chinner, Darrick J . Wong, hch,
	linux-kernel@vger.kernel.org, Hans Holmberg

These patches cleans up the xfs mru code a bit and adds a cache for
keeping track of which zone an inode allocated data to last. Placing
file data in the same zone helps reduce write amplification.

Sending out as an RFC to get comments, specifically about the potential
mru lock contention when doing the lookup during allocation.

Can we do something better there?
I'll look into benchmarking the overhead, but any sugestions on how to
do this best would be helpful.

Christoph Hellwig (1):
  xfs: free the item in xfs_mru_cache_insert on failure

Hans Holmberg (1):
  xfs: add inode to zone caching for data placement

 fs/xfs/xfs_filestream.c |  15 ++----
 fs/xfs/xfs_mount.h      |   1 +
 fs/xfs/xfs_mru_cache.c  |  15 ++++--
 fs/xfs/xfs_zone_alloc.c | 109 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 126 insertions(+), 14 deletions(-)

-- 
2.34.1

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

end of thread, other threads:[~2025-05-05 15:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-30  8:41 [RFC PATCH 0/2] Add mru cache for inode to zone allocation mapping Hans Holmberg
2025-04-30  8:41 ` [RFC PATCH 1/2] xfs: free the item in xfs_mru_cache_insert on failure Hans Holmberg
2025-05-02 20:06   ` Darrick J. Wong
2025-05-05  5:45     ` hch
2025-05-05 15:07       ` Darrick J. Wong
2025-04-30  8:41 ` [RFC PATCH 2/2] xfs: add inode to zone caching for data placement Hans Holmberg
2025-05-02 20:04   ` Darrick J. Wong
2025-05-05  5:55     ` hch
2025-05-05  5:57 ` [RFC PATCH 0/2] Add mru cache for inode to zone allocation mapping hch

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