[OpenAFS-devel] cmdebug reporting what?
Jeffrey Hutzelman
jhutz@cmu.edu
Fri, 02 Sep 2005 17:39:20 -0400
On Friday, September 02, 2005 17:54:39 +0200 Harald Barth <haba@pdc.kth.se>
wrote:
>
> This is related to the big cache discussions...
>
># /usr/afsws/bin/cmdebug ketchup.stacken.kth.se 7001 -cache
> Chunk files: 1000000
> Stat caches: 150000
> Data caches: 100000
> Volume caches: 250
> Chunk size: 262144
> Cache size: 20000000 kB
> Set time: no
> Cache type: disk
>
> Okej, now let's count cache entries:
>
># /usr/afsws/bin/cmdebug ketchup.stacken.kth.se 7001 -long | grep Cache\
># entry | wc
> 10000 80000 716245
>
> Exact 10000? Shouldn't that be more or is there a tuning parameter I have
> missed? Or is cmdebug not telling me all?
cmdebug makes a separate RPC to fetch each entry, by number. You will
never see more than 10000 entries, because that's the number that cmdebug
tries; it's hardcoded. You'll need to build a version of cmdebug with a
bigger constant (in PrintCacheEntries32() or PrintCacheEntries64()), or
else change it to use the count returned by the cache manager.
-- Jeff