Re: [squid-users] Filedescriptors

From: Dave Raven <dave@dont-contact.us>
Date: Wed, 11 Sep 2002 04:44:00 +0200

Thanks for the reply, but I have a few responses. (Only to the FreeBSD side
of the FAQ)

kern.maxfiles=65536
kern.maxfilesperproc=32768
[root@storm] /mnt/cache # sysctl -a kern.maxfiles && sysctl -a
kern.maxfilesperproc
kern.maxfiles: 65536
kern.maxfilesperproc: 32768
[root@opteq] /mnt/cache # pstat -T
 84/65536 files

We can see there are definately 65536 files available...
(note the cache was not running hence the 84)

the maximum setting advisable is probably about that without causing
yourself too much
trouble. However, that is what my freebsd box is set to, and squid is still
only using
4780 file descriptors.

As for the load, yes. I can get up to about 300-350 hits per sec; and then I
hit the file descriptor
error (amongst others). But I'm slowly trying to chew though them. (note
this is a minimal hardware
test - I've no doubt it will go faster, but I'm only using 512meg of memory
(80 to squid) and
1 7,200rpm ide drive). So far I've been able to tune it enough to at least
function, but I dont
want to blindly edit a source file and do something wrong.

I understand that you in particular Joe, sell a product based on this.
(stumbled accross you)
Do you see the same results in "stress tests"? Or am I doing something
awfully wrong here?

Should I edit it by hand at build time? Should I just forget it? ...
Or is there a better idea.

Thanks again,
Dave Raven.

----- Original Message -----
From: "Joe Cooper" <joe@swelltech.com>
To: "Dave Raven" <dave@reason.za.org>; <squid-users@squid-cache.org>
Sent: Wednesday, September 11, 2002 4:29 AM
Subject: Re: [squid-users] Filedescriptors

> Hmm.. That ought to be in the FAQ. Eureka, it is!
>
> http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.4
>
> Then again...if you've got 4000+ and still running out, you've got other
> problems. Either too much load, or something misconfigured.
>
> Dave Raven wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> >
> > Hey again all,
> > More problems, I'm all out of filedescritors...
> > This is because squid will only use 4780.
> >
> > [..]
> > 2002/09/11 04:00:25| With 4780 file descriptors available
> > [..]
> > 2002/09/11 04:09:42| WARNING! Your cache is running out of
> > filedescriptors
> >
> > and it then proceeds to run out...
> >
> >
> > I'm running FreeBSD; is there any way I can bump these up?
> >
> >
> > Thanks for all the help
> > Dave
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
> >
> > iQEVAwUBPX6njrTAuMekS5e2AQF/Twf/fHpXA0Vt0pXn6XganBFATaI7GG0c0jW9
> > reMOw7fVLaViRlUVyL6bbJrLdjGxklKVX+K+/2fVWLmXvkfL5DWH701Dzdj5N3TI
> > I8MskuPLG8ku1K09D5WYHTSOc0ti9ej3qz54hK8RCxtw1AXLIuQX6H0/dG42Dpgw
> > EcL38xQrfe1/Jrhgi8j5NmhxBkiuf9GM6ds9fe0PGVJiTy0yge6tbxaMCX+rwSmL
> > RoMRI1ycHf/Dxr8z527h/geTEBszpltenndx9KVz6qkXIHoHYD5lLa0X8A4TrmnV
> > dBoGp6CjK+xRfWVf7pFnTY+nUe5b+Bq1hdtqTyKE20oDyNa1kIvxVw==
> > =JaBE
> > -----END PGP SIGNATURE-----
> >
> >
>
>
> --
> Joe Cooper <joe@swelltech.com>
> Web caching appliances and support.
> http://www.swelltech.com
>
>
Received on Tue Sep 10 2002 - 20:44:14 MDT

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