Description
In upstream kernel commit v3.0-rc7-226-g0e1fdafd9398, the filesystem can implement icache/dcache shrinkers on a per-superblock basis:
commit 0e1fdafd93980eac62e778798549ce0f6073905c Author: Dave Chinner <dchinner@redhat.com> AuthorDate: Fri Jul 8 14:14:44 2011 +1000 Commit: Al Viro <viro@zeniv.linux.org.uk> CommitDate: Wed Jul 20 20:47:41 2011 -0400 superblock: add filesystem shrinker operations Now we have a per-superblock shrinker implementation, we can add a filesystem specific callout to it to allow filesystem internal caches to be shrunk by the superblock shrinker. Rather than perpetuate the multipurpose shrinker callback API (i.e. nr_to_scan == 0 meaning "tell me how many objects freeable in the cache), two operations will be added. The first will return the number of objects that are freeable, the second is the actual shrinker call. Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
It would be useful to hook the client dcache/icache/LDLM cache into these shrinker callbacks so that it can more effectively manage cache sizes on clients.
Attachments
Issue Links
- is related to
-
LU-14408 very large lustre_inode_cache
- Open
-
LU-13983 rmdir should release inode on Lustre client
- Resolved
-
LU-18175 Enhance Lustre to exploit new shrinker handling
- In Progress
-
LU-13970 add an option to disable inode cache on Lustre client
- Resolved
- is related to
-
LU-12511 Prepare lustre for adoption into the linux kernel
- Open