]> git.ipfire.org Git - thirdparty/squid.git/commit
Separate shared page limits for different purposes.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Mon, 27 Jun 2011 20:58:29 +0000 (00:58 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Mon, 27 Jun 2011 20:58:29 +0000 (00:58 +0400)
commit551f8a18645c80204c93af6f3d4c341cbaaa05e3
tree81309e515496910b7d9c0f41b0c677754fd19b4c
parent2a4124b9167b9fcbe5844c54aab4fff7ae46540e
Separate shared page limits for different purposes.

The patch implements separate level counters for shared pages
with different purpose (i.e. memory cache and IPC I/O).  A new
purpose parameter was added to Ipc::Mem::GetPage() function to
update the level and check the limits.  After the change, memory
cache and IPC I/O limits are separate and do not affect each
other, i.e. full memory cache does not eat all IPC I/O pages.
src/DiskIO/IpcIo/IpcIoFile.cc
src/MemStore.cc
src/fs/rock/RockSwapDir.cc
src/ipc/mem/Page.h
src/ipc/mem/PagePool.cc
src/ipc/mem/PagePool.h
src/ipc/mem/PageStack.cc
src/ipc/mem/PageStack.h
src/ipc/mem/Pages.cc
src/ipc/mem/Pages.h