Skip to content

Per superblock cache reclaim

Dave Chinner linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14dcache: fix __d_alloc prototype to use constfs/internal.h fs/libfs.c+3 -10 replies
2/14vmscan: add shrink_slab tracepointsinclude/trace/events/vmscan.h mm/vmscan.c+78 -12 replies
3/14vmscan: shrinker->nr updates race and go wrongmm/vmscan.c+32 -130 replies
4/14vmscan: reduce wind up shrinker->nr when shrinker can't do workmm/vmscan.c+15 -00 replies
5/14vmscan: add customisable shrinker batch sizeinclude/linux/mm.h mm/vmscan.c+7 -50 replies
6/14inode: convert inode_stat.nr_unused to per-cpu countersfs/inode.c+11 -50 replies
7/14inode: Make unused inode LRU per superblockfs/inode.c fs/super.c include/linux/fs.h+85 -110 replies
8/14inode: move to per-sb LRU locksfs/inode.c fs/super.c include/linux/fs.h+16 -152 replies
9/14superblock: move pin_sb_for_writeback() to fs/super.cfs/fs-writeback.c fs/internal.h fs/super.c+35 -270 replies
10/14superblock: introduce per-sb cache shrinker infrastructurefs/dcache.c fs/inode.c fs/super.c +1 more+79 -2180 replies
11/14inode: remove iprune_semfs/inode.c+0 -210 replies
12/14superblock: add filesystem shrinker operationsDocumentation/filesystems/vfs.txt fs/super.c include/linux/fs.h+51 -120 replies
13/14vfs: increase shrinker batch sizeDocumentation/filesystems/vfs.txt fs/super.c+7 -01 reply
14/14xfs: make use of new shrinker callout for the inode cachefs/xfs/linux-2.6/xfs_super.c fs/xfs/linux-2.6/xfs_sync.c fs/xfs/linux-2.6/xfs_sync.h+46 -560 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/14] Per superblock cache reclaim

This series converts the VFS cache shrinkers to a per-superblock shrinker, and provides a callout from the superblock shrinker to allow the filesystem to shrink internal caches proportionally to the amount of reclaim done to the VFS caches.

The original posting contains the motiviation, benefits, performance, etc, and rather than repeat it all, just look here:

https://lkml.org/lkml/2011/6/2/42

The version has been rebased onto the untested branch in Al's VFS git tree, fixes the review comments from the first version, and has had much more testing under different workloads.

---

Version 2:
o rebase onto Al's #untested branch
o fix build problem in Al's untested branch
o move all slab shrinker modifications tracepoints into a single patch.
o renames some of the tracepoint variables to be more obvious as to what they are recording.
o move pin_sb_for_writeback() to fs/super.c and rename it to grab_super_passive() so the shrinker and writeback use the same passive reference counting and unmount detection
o rework per-superblock shrinker to use grab_super_passive()
o minor typo fixes in commit messages, documentation and commit messages

---

When the git mirror updates, this patchset will also be available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/dgc/xfsdev.git per-sb-shrinker

If you get a version based on the current Linus tree, then it hasn't updated yet....

Dave Chinner (14):
dcache: fix __d_alloc prototype to use const
vmscan: add shrink_slab tracepoints
vmscan: shrinker->nr updates race and go wrong
vmscan: reduce wind up shrinker->nr when shrinker can't do work
vmscan: add customisable shrinker batch size
inode: convert inode_stat.nr_unused to per-cpu counters
inode: Make unused inode LRU per superblock
inode: move to per-sb LRU locks
superblock: move pin_sb_for_writeback() to fs/super.c
superblock: introduce per-sb cache shrinker infrastructure
inode: remove iprune_sem
superblock: add filesystem shrinker operations
vfs: increase shrinker batch size
xfs: make use of new shrinker callout for the inode cache

 Documentation/filesystems/vfs.txt |   22 +++++++
 fs/dcache.c                       |  121 ++++--------------------------------
 fs/fs-writeback.c                 |   28 +--------
 fs/inode.c                        |  124 ++++++++++++-------------------------
 fs/internal.h                     |    3 +-
 fs/libfs.c                        |    2 +
 fs/super.c                        |  109 ++++++++++++++++++++++++++++++++-
 fs/xfs/linux-2.6/xfs_super.c      |   26 +++++---
 fs/xfs/linux-2.6/xfs_sync.c       |   71 ++++++++-------------
 fs/xfs/linux-2.6/xfs_sync.h       |    5 +-
 include/linux/fs.h                |   14 ++++
 include/linux/mm.h                |    1 +
 include/trace/events/vmscan.h     |   71 +++++++++++++++++++++
 mm/vmscan.c                       |   71 +++++++++++++++++-----
 14 files changed, 374 insertions(+), 294 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>