]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Warn if Rock disker delays are significant.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 3 Oct 2011 20:15:55 +0000 (14:15 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 3 Oct 2011 20:15:55 +0000 (14:15 -0600)
This may help detect misconfigurations (e.g., too low I/O rate) or bugs.

src/DiskIO/IpcIo/IpcIoFile.cc

index 3bb2e83739b0c4fd31bc19b1fb97ddec02d6a93d..7fe3a608d12fb362e0e50faebad7a18b418a0c7a 100644 (file)
@@ -698,6 +698,12 @@ IpcIoFile::WaitBeforePop()
         // if we accumulated too much time for future slow I/Os,
         // then shed accumulated time to keep just half of the excess
         const int64_t toSpend = balance - maxImbalance/2;
+
+        if (toSpend/1e3 > Timeout)
+            debugs(47, DBG_IMPORTANT, "WARNING: Rock disker delays I/O " <<
+                   "requests for " << (toSpend/1e3) << " seconds to obey " <<
+                   ioRate << "/sec rate limit");
+
         debugs(47, 3, HERE << "rate limiting by " << toSpend << " ms to get" <<
                (1e3*maxRate) << "/sec rate");
         eventAdd("IpcIoFile::DiskerHandleMoreRequests",