Hi All
I have recompiled squid with 6400 FDS I tried with 65535 and I got a warning
that 65535 is not a multiple of 64 and it may cause some problems on some systems.
so I changed it to 6400
I completed the installation started Squid now it's showing 6400 although the system is set to 65535 I have one question, from your experiences with squid, would 6400 FDS be enough?

Thank you all for your help
Regards
Adam

----- Original Message ----- From: "Bradley, Stephen W. Mr." <bradl...@muohio.edu>
To: "a...@gmail" <adbas...@googlemail.com>
Sent: Tuesday, March 23, 2010 2:02 PM
Subject: RE: [squid-users] FileDescriptor Issues


A problem I found is that you have to set ulimit BEFORE you compile it as well.

I built everything from scratch and everytime I rebuild it I have to :

ulimit -HSn XXXXXX

(XXXX being whatever you want it to be)


In /etc/init.d/squid  (the script I use)


[snip]
PATH=/usr/bin:/sbin:/bin:/usr/sbin
export PATH
ulimit -HSn 32768
[snip]


That way every time I run the script it makes sure that it sets the FDs up to where they need to be.



I'm guessing that if you have a busy server it is crashing after a little while of running....... ;-)

steve







-----Original Message-----
From: a...@gmail [mailto:adbas...@googlemail.com]
Sent: Monday, March 22, 2010 11:10 PM
To: Amos Jeffries; squid-users@squid-cache.org
Subject: Re: [squid-users] FileDescriptor Issues

Thanks Amos for this tip I will try that and keep you posted
Regards
Adam

----- Original Message ----- From: "Amos Jeffries" <squ...@treenet.co.nz>
To: <squid-users@squid-cache.org>
Sent: Tuesday, March 23, 2010 2:54 AM
Subject: Re: [squid-users] FileDescriptor Issues


On Tue, 23 Mar 2010 02:19:40 -0000, "a...@gmail" <adbas...@googlemail.com>
wrote:
Thanks Ivan for your suggestion
But in my case it's slightly different
I have no squid in

/etc/default/squid


/etc/init.d/mine is located in /usr/local/squid/sbin/squidunless I try
this/usr/local/squid/sbin/squid
  SQUID_MAXFD=4096


/etc/default/squid is a configuration file for configuring the system
init.d/squid script.
It does not exist normally, you create it only when overrides are needed.

.../sbin/squid is supposed to be the binary application which gets run.

And then restart it, but I am not sure I am using Ubuntu HardyI think
this
tip is for the Squid that is packaged with Ubuntu and not the
compiledSquid

Bash environment shells resets the descriptors down again towards 1024
each time a new one is generated. It _always_ must be increased to the
wanted limit before running Squid. Whether you do it manually on the
command line each time, or in the init.d script, or in some other custom
starter script.


My Ubuntu systems show default OS limits of just over 24K FD available.

Building Squid with:
 ulimit -HSn 65535 && ./configure --with-filedescriptors=65535 ...
 make install

starting:  squid -f /etc/squid.conf
squid shows 1024

starting: ulimit -Hsn 64000 && squid -f /etc/squid.conf
squid shows 64000

Amos

Reply via email to