[PATCH] Independent shared I/O page limit.

From: Dmitry Kurochkin <dmitry.kurochkin_at_measurement-factory.com>
Date: Thu, 13 Oct 2011 17:26:29 +0400

Currently, shared memory pages are used for shared memory cache and
IPC I/O module. Before the 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 |   32 ++++++++++++++++++++++++++++++--
 src/MemStore.cc               |   26 +++++++++++++++++++++++++-
 src/base/RunnersRegistry.h    |    5 +++++
 src/ipc/Queue.cc              |    6 ++++++
 src/ipc/Queue.h               |    3 +++
 src/ipc/mem/Pages.cc          |   38 +++++++++++++-------------------------
 src/ipc/mem/Pages.h           |    3 +++
 src/main.cc                   |    3 +++
 8 files changed, 88 insertions(+), 28 deletions(-)

Received on Thu Oct 13 2011 - 13:26:45 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 28 2011 - 12:00:11 MDT