Re: FD's again: ulimit shows 1024, but recompiled squid...

From: <pere@dont-contact.us>
Date: Tue, 1 Dec 1998 02:27:16 +0000

On Tue, Dec 01, 1998 at 12:22:31PM +1100, Dancer wrote:
> Here's what I do:
>
> 1) Get 2.0.36
> 2) Apply Oskar's patch (version 8.03)
> 3) Set File-descriptor limit to 3000.
> 4) Build and install kernel. Reboot.
> 5) echo "16384" > /proc/sys/kernel/file-max
> 6) echo "32768" > /proc/sys/kernel/inode-max
> 7) Hateful: Change the definition of __FD_SETSIZE in
> /usr/include/gnu/types.h to 3072.
> 8) Go to the top of your squid tree.
> 9) Type 'ulimit -n 3000'
> 10) make distclean
> 11) ./configure ..etc...
> 12) install.
> 13) Change the squid startup script to run 'ulimit -n 3000' before
> running squid.
>
> And that's 3000 working file-descriptors. If you don't change the
> __FD_SETSIZE definition, then your squid will likely crash after using
> about 257 descriptors.
>
> D
>
>
I'm using a 2.0.36 kernel, and keep getting a "Cannot bind socket FD..." message in the log files. I'm using Squid 2.1patch1. Is anyone else getting this?

David
Received on Mon Nov 30 1998 - 19:11:30 MST

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