From 69321ae9929e20146c9680e42ff03f35f67088a1 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Mon, 3 Oct 2011 14:15:55 -0600 Subject: [PATCH] Warn if Rock disker delays are significant. This may help detect misconfigurations (e.g., too low I/O rate) or bugs. --- src/DiskIO/IpcIo/IpcIoFile.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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", -- 2.47.3