[PATCH 4/9] Warn if shared memory cache is enabled in non-SMP mode.

From: Dmitry Kurochkin <dmitry.kurochkin_at_measurement-factory.com>
Date: Thu, 29 Sep 2011 03:06:02 +0400

---
 src/MemStore.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git src/MemStore.cc src/MemStore.cc
index 70f0994..4fa5575 100644
--- src/MemStore.cc
+++ src/MemStore.cc
@@ -370,6 +370,9 @@ void MemStoreRr::run(const RunnerRegistry &)
         fatal("memory_cache_shared is on, but no support for atomic operations detected");
     } else if (Config.memShared && !Ipc::Mem::Segment::Enabled()) {
         fatal("memory_cache_shared is on, but no support for shared memory detected");
+    } else if (Config.memShared && !UsingSmp()) {
+        debugs(20, DBG_IMPORTANT, "WARNING: memory_cache_shared is on, but only"
+               " a single worker is running");
     }
 
     if (!Config.memShared)
-- 
1.7.6.3
Received on Wed Sep 28 2011 - 23:07:04 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 29 2011 - 12:00:03 MDT