Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-13833

hook llite to inode cache shrinker

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Upstream
    • None
    • 3
    • 9223372036854775807

      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.

            simmonsja James A Simmons
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: