[squid-users] storeDirWriteCleanLogs() blocking queries

From: Chris Woodfield <rekoil_at_semihuman.com>
Date: Tue, 7 Oct 2008 15:25:37 -0400

Hi,

We've been noticing lately that the logrotation process is taking
longer and longer as our caches fill up - currently, with ~18 million
on-disk objects, we've seen it take as long as 12 seconds, during
which time squid is not answering queries.

Searching on this issue found the following prior thread on this:

http://www.mail-archive.com/squid-users@squid-cache.org/msg24326.html

Is this still the case that the storeDirWriteCleanLogs() function is
expected to take this long when the cache_dirs get this large? Is
there anything that can be done to mitigate this? The issue is that we
rotate logs fairly frequently (multiple times per hour), which
amplifies this issue.

As a workaround, we may disable the storeDirWriteCleanLogs() in
mainRotate() and trigger it on a different signal instead. Sound like
a reasonable workaround? If so, what should the maximum time between
rotating swap.state be?

-Chris
Received on Tue Oct 07 2008 - 19:25:44 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 08 2008 - 12:00:02 MDT