Hi there,
determining a good cache size and useful time-out-values is a
non-trivial task.
ns_cache_stats returns already some useful satistics, but i would say,
at least two
important figures are missing, which are subsumed by the # of flushes.
Actually,
there are at least 3 kind of flushes:
a) expires (entry is too old)
b) prunes (entry thrown out of the cache due to space competition)
c) intentional flushes (flush command, deletion of an entry, etc.)
Currently, nscache lumbs a+b+c under flushes. It would be nice
to obtain separate values for these kinds of flushes to get some
idea, whether or not a cache behaves like expected, or whether it
should be increased or decreased.
what do you think?
-gustaf