[OpenAFS-devel] PATCH: break up cache into reasonable subdirs for large cache sizes

Derek Atkins warlord@MIT.EDU
08 Jul 2001 11:16:22 -0400


"Neulinger, Nathan" <nneul@umr.edu> writes:

> I think that I'd be appeased (for the optional part) if two options were
> available. Like we have -chunksize and -(whatever the other one is) - allow
> specifying either number of files in cache dir, or number of subdirs. Then,
> simply special case the numberofsubdirs==1 to skip the subdir part. That
> would make it compatible/equivalent to existing cache. 

If you set the -(whatever the other one is) to '30', you will
effectively put all the cache files into one subdirectory.  It still
wouldn't be 100% compatible with the current cache style, because all
the cachefiles would be in /path/to/cache/D0/V* (instead of
/path/to/cache/V*), but I think reiserfs would work fine with this
situation.

> On the "deletion of old style cache" question - does it do the delete before
> or after creation of the new subdirs+files? If after, that may cause issues,
> cause it would mean temporarily using a lot larger number of inodes on the
> disk. If you've got your inodes+partitions sized for the afs cache, that
> might be a problem.

The deletion happens first.

> -- Nathan 

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available