]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/mem/Pages.cc
Add shared memory page reserve for Rock and check page availability before IO.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 21 Jun 2011 14:35:48 +0000 (18:35 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 21 Jun 2011 14:35:48 +0000 (18:35 +0400)
commite0bdae603f6b244660be1e390b0690045636ab63
tree2f7accb362d692df944228a600c381e2c9987c1a
parent65b81b2712ba00ea3b47ecd0d4b730a63681550f
Add shared memory page reserve for Rock and check page availability before IO.

The patch adds a shared memory page reserve for Rock (any IPC IO in
general) that can not be used by the memory cache.  Also, Rock checks
if there are free pages available before trying to do IPC IO (both
read and write).  This allows to fail early for cache reads and go
MISS route.
src/MemStore.cc
src/fs/rock/RockSwapDir.cc
src/ipc/mem/Pages.cc
src/ipc/mem/Pages.h