Red Hat Bugzilla – Bug 102787
compile time threading limits are too low for busy caches
Last modified: 2007-11-30 17:06:53 EST
Description of problem:
Seen in squid's cache.log: aio_queue_request: WARNING - Queue congestion
Based on this thread, it appears that the number of threads available to squid
needs to be increased:
The current squid settings use these defaults:
#define NUMTHREADS ASYNC_IO_THREADS
#define NUMTHREADS (Config.cacheSwap.n_configured*16)
which defines 16 threads per cache directory configured in squid.conf.
(reference parse_cachedir() in src/cache_cf.c)
I think that changing the configure line for squid to have
"--with-aio-threads=32" would be a potential starting point.
Either that, or patching the above portion in src/fs/aufs/store_asyncufs.h to be
*32 per cache directory, so that sites already using multiple cache directories
will not be suprised by the overall number of threads decreasing if they have
more than 2 directories setup.
Is it still a problem with the latest RHELs?