Skip to content

speed up /proc/filesystems

Mateusz Guzik linux-fsdevel lkml 1 version Applied

Status from this message: Applied to the vfs-6.16.procfs branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2proc: add a helper for marking files as permanent by external consumersfs/proc/generic.c include/linux/proc_fs.h+7 -00 replies
2/2fs: cache the string generated by reading /proc/filesystemsfs/filesystems.c+140 -86 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] speed up /proc/filesystems

I accidentally found out it is used a lot *and* is incredibly slow.

Part of it is procfs protecting the file from going away on each op, other part is content generatin being dog slow.

Turns out procfs did not provide an interface to mark files as permanent. I added easiest hack I could think of to remedy the problem, I am not going to argue how to do it.

Mateusz Guzik (2):
proc: add a helper for marking files as permanent by external
consumers
fs: cache the string generated by reading /proc/filesystems

 fs/filesystems.c        | 148 +++++++++++++++++++++++++++++++++++++---
 fs/proc/generic.c       |   6 ++
 include/linux/proc_fs.h |   1 +
 3 files changed, 147 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.0