From: Alex Rousskov Date: Mon, 3 Oct 2011 20:15:55 +0000 (-0600) Subject: Warn if Rock disker delays are significant. X-Git-Tag: BumpSslServerFirst.take01~123^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69321ae9929e20146c9680e42ff03f35f67088a1;p=thirdparty%2Fsquid.git Warn if Rock disker delays are significant. This may help detect misconfigurations (e.g., too low I/O rate) or bugs. --- diff --git a/src/DiskIO/IpcIo/IpcIoFile.cc b/src/DiskIO/IpcIo/IpcIoFile.cc index 3bb2e83739..7fe3a608d1 100644 --- a/src/DiskIO/IpcIo/IpcIoFile.cc +++ b/src/DiskIO/IpcIo/IpcIoFile.cc @@ -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",