All of lore.kernel.org
 help / color / mirror / Atom feed
* update BDI {io,ra}_pages values based on the RT device limits
@ 2026-06-23 14:21 Christoph Hellwig
  2026-06-23 14:21 ` [PATCH] xfs: " Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Christoph Hellwig @ 2026-06-23 14:21 UTC (permalink / raw)
  To: Carlos Maiolino
  Cc: Jan Kara, Filip Blagojevic, Matthew Wilcox, Damien Le Moal,
	linux-fsdevel, linux-xfs

Hi all,

we ran into a bit of a funny case where adding an SSD to store metadata
to a (zoned) XFS file system reduced the performance vs using a HDD for
both data and metadata.  It turns out this is due to readahead code
looking at the BDI limits, including the io_pages value that can't be
inspected or tuned from userspace.

This patch has the simplest fix for that by just updating the values from
XFS, but for a long-term solution this feels a bit ugly.  Other, a lot
more invasive options would be:


  1) support multiple BDIs per file system.

	This would work pretty well for XFS, as data for a given file is
	always entirely on one device, and the VFS writeback code is not
	used for metadata.  But it probably doesn't work well for other
	cases

  2) stop propagating these values through the BDI

	Have a way to query these parameters from the file system, either
	through a method if we want to be fully dynamic, or through fields
	instead of going through the BDI.  The downside would be that
	sysfs modifications of the readahead size would not work after
	the file system initially queried them.

Thoughts?

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

end of thread, other threads:[~2026-06-24 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 14:21 update BDI {io,ra}_pages values based on the RT device limits Christoph Hellwig
2026-06-23 14:21 ` [PATCH] xfs: " Christoph Hellwig
2026-06-24 10:40 ` Carlos Maiolino
2026-06-24 15:42   ` Christoph Hellwig
2026-06-24 12:26 ` Jan Kara
2026-06-24 13:49   ` Christoph Hellwig

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.