running out of file descriptors on freebsd

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Thu, 23 Sep 1999 12:06:28 +1000 (EST)

Hi,

squid-2.2.STABLE3
FreeBSD 3.2
maxusers = 64

Here's what happened:

Sep 23 10:29:09 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:29:09 inetbcf1 squid[238]: Reserved FD adjusted from 100 to 1843
due to failures
Sep 23 10:29:09 inetbcf1 squid[238]: WARNING! Your cache is running out of
filedescriptors
Sep 23 10:29:09 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:29:09 inetbcf1 squid[238]: Reserved FD adjusted from 1843 to
1867 due to failures
Sep 23 10:29:12 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:29:12 inetbcf1 squid[238]: Reserved FD adjusted from 1867 to
1891 due to failures
Sep 23 10:29:25 inetbcf1 squid[238]: WARNING! Your cache is running out of
filedescriptors
Sep 23 10:29:57 inetbcf1 last message repeated 2 times
Sep 23 10:30:13 inetbcf1 squid[238]: WARNING! Your cache is running out of
filedescriptors
Sep 23 10:30:15 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:30:15 inetbcf1 squid[238]: Reserved FD adjusted from 1891 to
1916 due to failures
Sep 23 10:30:16 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:30:16 inetbcf1 squid[238]: Reserved FD adjusted from 1916 to
1940 due to failures
Sep 23 10:30:18 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:30:18 inetbcf1 squid[238]: Reserved FD adjusted from 1940 to
1964 due to failures
Sep 23 10:30:18 inetbcf1 squid[238]: comm_open: socket failure: (55) No
buffer space available
Sep 23 10:30:29 inetbcf1 squid[238]: WARNING! Your cache is running out of
filedescriptors

I have had a look through the archives and now have two questions:

1) How do I fix the ENOBUFS (errno = 55) problem for the socket() - or
should I take that up with FreeBSD poeple? At present I am considering a
new kernel with maxusers = 128.

2) Can I recover the "lost" file descriptors without restarting squid? If
so, how?

Thanks,
Colin

--
Colin Campbell
Unix Support/Postmaster/Hostmaster
CITEC
+61 7 3227 7112
Received on Wed Sep 22 1999 - 20:14:18 MDT

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