filedescriptor leak on 1.2b20

From: Apiset Tananchai <aet@dont-contact.us>
Date: Fri, 15 May 1998 17:49:05 +0700 (ICT)

Hi all,

I'm trying to implement a transparent proxy for my company and having
problem with number of file descriptors that were use by squid. Here's my
server configuration:

PentiumII-300
256MB Ram
Linux-2.0.34pre10 + 3000fd patch
4 x 4.5 GB UW SCSI Harddisk for cache swap (using md)
1 x 2.5 GB UW SCSI Harddisk for os & log files
3 x AHA-2940UW SCSI Controller
Intel EtherExpress 10/100 Ethernet controller

Squid that was used on this server is 1.2b20-1 + asyncio.patch +
asyncio_cache.patch from Henrik's homepage. The server is running
RedHat5.0 with kernel 2.0.34pre11b + 3000fd patch and squid was compiled
with NUMTHREADS=100

My problem is that squid start using a large number of file descriptors
when user trying to goto ip addresses that have no route to. Here's some
part of file descriptor report from cache_object://.../filedescriptors
203.155.33.12 is our proxy server and 203.155.32.150 is the host that has
to route to it.

  40 Socket 1 0 15620 203.155.32.150.80 http://203.155.32.150/
  42 Socket 1438 2318 0 203.155.33.12.25992 http://203.155.32.150/
  45 Socket 1436 5432 0 203.155.33.12.12107 http://203.155.32.150/
  46 Socket 0 0 10536 203.155.32.150.80 http://203.155.32.150/
  59 Socket 4 0 11004 203.155.32.150.80 http://203.155.32.150/
  60 Socket 1 0 8454 203.155.32.150.80 http://203.155.32.150/
  87 Socket 1 0 13274 203.155.32.150.80 http://203.155.32.150/
  88 Socket 1437 6003 0 203.155.33.12.11361 http://203.155.32.150/
  89 Socket 1436 4564 0 203.155.33.12.6333 http://203.155.32.150/
 247 Socket 1439 3186 0 203.155.33.12.21737 http://203.155.32.150/
 248 Socket 2 0 8028 203.155.32.150.80 http://203.155.32.150/
 249 Socket 1 0 13398 203.155.32.150.80 http://203.155.32.150/
 250 Socket 1435 5330 0 203.155.33.12.5296 http://203.155.32.150/

the remote address columns is toggling between 203.155.33.12 and
203.155.32.150. There are more than thounsand lines similar to above. I
don't know when this start but when it happen, it use almost all of file
descriptor available on my system. It looks like squid is repeatly
trying to connect to that host.

File descriptor usage for squid:
        Maximum number of file descriptors: 3000
        Largest file desc currently in use: 2959
        Number of file desc currently in use: 2899
        Available number of file descriptors: 101
        Reserved number of file descriptors: 100

The server is still responsive and usable but a bit slower than before
this happen.

Any help would be greatly appreciate.

Thanks,

--
aet
Received on Fri May 15 1998 - 03:41:17 MDT

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