]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/Queue.cc
Independent shared I/O page limit.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Thu, 27 Oct 2011 21:57:26 +0000 (15:57 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 27 Oct 2011 21:57:26 +0000 (15:57 -0600)
commitea2cdeb6461a5d0969a6357ec4e945ee3b4f0b0d
treefb1268bc8efead363d6704e4f03816cf6d1f18bd
parent6ebe9a4c88246fe92235a43bfbbe1b8d5d452048
Independent shared I/O page limit.

Shared memory pages are used for shared memory cache and IPC I/O module.
Before this change, the number of shared memory pages needed for IPC I/O
was calculated from the size of shared memory cache.  Moreover, shared
memory cache was required for IPC I/O.

The patch makes the limit for shared I/O pages independent from the
shared memory cache size and presence.  IPC I/O pages limit is calculated
from the number of workers and diskers; it does not depend on cache_dir
configuration.  This may change in the future if we learn how to compute
it (e.g., by multiplying max-swap-rate and swap-timeout if both are
available).
src/DiskIO/IpcIo/IpcIoFile.cc
src/MemStore.cc
src/base/RunnersRegistry.h
src/ipc/Queue.cc
src/ipc/Queue.h
src/ipc/mem/Pages.cc
src/ipc/mem/Pages.h
src/main.cc