Re: file descriptor problems extra info

From: <[email protected]>
Date: Thu, 22 Jul 1999 17:30:15 +0200

Hi,

dean.scothern@wwgsolutions.com wrote on Wed, 21 Jul 1999 13:23:29 +0100 :
>
> Hello again,
>
> some extra info:
>
> tail -f ../logs/cache.log
> 1999/07/21 12:24:33| WARNING! Your cache is running out of filedescriptors
> 1999/07/21 12:24:36| comm_accept: FD 5: (71) Protocol error
> 1999/07/21 12:24:42| comm_accept: FD 5: (71) Protocol error
> 1999/07/21 12:24:49| WARNING! Your cache is running out of filedescriptors
> 1999/07/21 12:25:05| WARNING! Your cache is running out of filedescriptors
> 1999/07/21 12:25:17| comm_accept: FD 5: (71) Protocol error
>
> what is this comm_accept error?

I've seen the same error on our squid machine (Solaris 2.5.1), but
I have not found out what's causing the error. To alleviate the
results of the comm_accept a little, apply the following small patch
to src/fd.c. The patch is relative to 2.2.STABLE4. It just makes the
allocation of reserved FDs after the comm_accept (or other) errors
a little less aggressive, so that you will not run out of FDs. Our
Squids have been running with this patch for several weeks under
high load without adverse effects, YMMV.

This patch will *not* solve your original problem, which will
still need to be investigated.

Regards,
-Thorsten

*** src/fd.c Wed Jul 21 14:42:13 1999
--- src/fd.c.orig Wed Jul 21 14:43:16 1999
***************
*** 191,197 ****
      /*
       * Calculate a new reserve, based on current usage and a small extra
       */
! new = RESERVED_FD + XMIN(25, Squid_MaxFD / 16);
      if (new <= RESERVED_FD)
        return;
      x = Squid_MaxFD - 20 - XMIN(25, Squid_MaxFD / 16);
--- 191,197 ----
      /*
       * Calculate a new reserve, based on current usage and a small extra
       */
! new = Squid_MaxFD - Number_FD + XMIN(25, Squid_MaxFD / 16);
      if (new <= RESERVED_FD)
        return;
      x = Squid_MaxFD - 20 - XMIN(25, Squid_MaxFD / 16);

---------------------------------------------------------------------
Thorsten Biel (ITadmin GmbH & Ofix GmbH) Thorsten.Biel@alcatel.de
  Alcatel SEL AG, ZIT/SS5, Lorenzstr. 10, 70435 Stuttgart, Germany
  Tel (+49 711) 821-45657, Fax (+49 711) 821-44994, PGP on request
Received on Thu Jul 22 1999 - 09:32:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:29 MST