]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Warn if shared memory cache is enabled in non-SMP mode.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 4 Oct 2011 17:26:29 +0000 (21:26 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 4 Oct 2011 17:26:29 +0000 (21:26 +0400)
src/MemStore.cc

index 70f0994667c2a17ee9af5fc693d53d7051765327..4fa55755eef2582f0ddfcd3afe142bc6702421ac 100644 (file)
@@ -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)