In article <cistron.3847106A.3D024D7A@hem.passagen.se>,
Henrik Nordstrom <hno@hem.passagen.se> wrote:
>Chris Conn wrote:
>
>> Can anyone point me in the right direction as to why it is not working?
>
>See my Squid page <http://hem.passagen.se/hno/squid/> for directions.
May I offer a small suggestion?
With glibc 2.1 and 2.2 kernels, poll() is fully supported and doesn't
suffer from the 1024 filedescriptor limit that select does due to
__FD_SETSIZE.
So what I do is
- Use glibc 2.1
- Use 2.2.13 or up
- configure squid with ./configure --enable-poll
- after configure has run, I edit include/autoconf.h and change
SQUID_MAXFD to 3000 (or whatever you like, squid will scale it
down at runtime to the process' maximum anyway).
You still need to set the ulimit ofcourse. You can do this as root
as you say, or use the small setuid patch.
But to increase the global ulimit you do NOT need to recompile
the kernel. You can do it in /etc/initscript - read the
manpage of initscript(5) for more info.
Mike.
-- The From: and Reply-To: addresses are internal news2mail gateway addresses. Reply to the list or to miquels@cistron.nl (Miquel van Smoorenburg)Received on Fri Dec 03 1999 - 07:07:32 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:42 MST