(Posted on behalf of Gustaf Neumann by vasiljevic)
Determining a good cache size and useful
time-out-values is a non-trivial task.
ns_cache_stats returns already some useful
statistics, 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 whethe it should be increased or decreased.
Log in to post a comment.