[OpenAFS-devel] 'fs cachetrim' operation?

Troy Benjegerdes hozer@hozed.org
Sat, 17 Dec 2005 10:58:59 -0600


troy@minbar-g5:~$ fs getcache
AFS using    27% of cache blocks (21974106 of 80000000 1k blocks)
             93% of the cache files (464742 of 500000 files)
[cache file usage over 90%, consider increasing '-files' argument to afsd]


In a situation like this, I'd very much like to be able to say something
like "fs cachetrim -files 15%", which would immediately start evicting the
oldest 15% of the files in the cache.

As it is now, I get horrible performance on anything that deals with a
lot of files while afs_cachetrim appears to be running, but isn't
cleaning the cache fast enough to not block more new file creations.


(FYI, this fs getcache output is from my modified version)