]> git.ipfire.org Git - thirdparty/squid.git/commit - src/store.cc
Improve statistic reporting for shared Rock caches.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Mon, 18 Apr 2011 10:28:07 +0000 (14:28 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Mon, 18 Apr 2011 10:28:07 +0000 (14:28 +0400)
commit39c1e1d9d66a7a610e2afa2775698d5541f3d16e
tree2264880d75a7a48eac31b594e5c94960c01a7a2a
parentce5674957dc4ab9e42be3b47ca9caca3d05e5be6
Improve statistic reporting for shared Rock caches.

Rock cache is shared between multiple processes.  We need to make sure
cache related stats are not counted twice by different processes.  The
patch makes Rock store statistics to be reported by the disker process
only.

Some global variables for cache related stats are replaced with Store
class methods.  This is needed because it may be difficult or
impossible to correctly update these variables for shared caches.

The patch also fixes cache manager output for some requests like
mgr:storedir: Before the change stats from disker processes were not
surrounded with "by kidN".
19 files changed:
src/MemStore.cc
src/MemStore.h
src/Store.h
src/StoreHashIndex.h
src/SwapDir.cc
src/SwapDir.h
src/fs/coss/store_dir_coss.cc
src/fs/rock/RockSwapDir.cc
src/fs/rock/RockSwapDir.h
src/fs/ufs/ufscommon.cc
src/globals.h
src/mgr/FunAction.cc
src/mgr/InfoAction.cc
src/snmp_agent.cc
src/stat.cc
src/store.cc
src/store_digest.cc
src/store_dir.cc
src/store_rebuild.cc