[OpenAFS-devel] PATCH: limit afsd auto-tuning to 500000 files

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Wed, 24 Aug 2005 15:10:02 -0400


In message <20050824162810.GD1685@kalmia.hozed.org>,Troy Benjegerdes writes:
>avg.pl /var/cache/openafs | head
>72068 files
>1824410029 total bytes
>25315 avg bytes
>
>troy@talia:/afs/hozed.org$ fs getcache
>AFS using    10% of cache blocks (2061671 of 20000000 1k blocks)
>              2% of the cache files (9991 of 500000 files)

i wouldnt expect that to match to closely.  it counts files that 
afs doesnt think are "in use".  those file were are use at some
point.  the script also ignores 0-length files when computing
the average.