Andrew Hall wrote:
>
> Periodically I keep getting a message in my logs saying that squid is
> running out of AIO threads and I should increase the NUMTHREADS
> variable. Where do I find this? Is this a compile time option?
It is currently a compile time option found inside aiops.c.
However, Squid 2.2 often gives false alarms due to bursty thread usage
pattern. Try the attached patch which tries to filter out most of those
bursts. If you continues to get these warnings then try to increase
NUMTHREADS.
If you have a large cache then you should also set cache_swap_high close
to cache_swap_low. 1% difference is enought for larger caches. The 5%
default is suitable for the default minimal cache size of 100MB.
-- Henrik Nordstrom Spare time Squid hacker
Index: squid-2.2.STABLE3/src/aiops.c
===================================================================
RCS file: /home/CVSROOT/squid/src/aiops.c,v
retrieving revision 1.1.1.14
diff -u -w -r1.1.1.14 aiops.c
--- squid-2.2.STABLE3/src/aiops.c 1999/01/24 08:34:03 1.1.1.14
+++ squid-2.2.STABLE3/src/aiops.c 1999/06/13 07:43:06
@@ -344,7 +344,7 @@
if (request_queue_len < queue_low)
queue_low = request_queue_len;
if (squid_curtime >= (last_warn + 15) &&
- squid_curtime >= (high_start + 1)) {
+ squid_curtime >= (high_start + 2)) {
debug(43, 1) ("aio_queue_request: WARNING - Running out of I/O theads\n");
debug(43, 2) ("aio_queue_request: Queue Length: current=%d, high=%d, low=%d, duration=%d\n",
request_queue_len, queue_high, queue_low, squid_curtime - high_start);
Received on Sun Jun 13 1999 - 03:06:39 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:51 MST