Hi John,
It worked!
But according to the FAQ, I should tweak /usr/include/linux/limits.h
That is why I was confused why it didn't work.
Thanks to you all who helped.
Regards,
-------------------
Sent using Office 2003, Exchange Server 2000 and Windows XP
Professional
-------------------
-----Original Message-----
From: John Arthur [mailto:lists@davey.net.au]
Sent: Thursday, March 11, 2004 5:27 PM
To: Michael Vincent Pozon; squid-users@squid-cache.org
Subject: RE: [squid-users] WARNING! Your cache is running out of
filedescriptors (on RH 9.0 Squid2.5.Stable5)
I sent this to the last a few days ago but it did not show appear.
A quick rundown on increasing the number of file descriptors
-------
ulimit -SHn 2048
grep -R __FD_SETSIZE /usr/include
vi /usr/include/bits/typesizes.h
and change
#define __FD_SETSIZE 1024
to
#define __FD_SETSIZE 2048
rebuild squid from scratch (configure, make etc......)
put [ulimit -SHn 2048] in your squid start up script
and you're in action
I've just done this to build my own RPM of squid-2.5.STABLE5 with 2048
file
descriptors. (Which I have not tested yet)
to rebuild the redhat rpm for 4096 file descriptors
rpm -i squid-2.4.STABLE7-4.src.rpm
ulimit -SHn 4096
vi /usr/include/bits/typesizes.h (to change __FD_SETSIZE)
cd /usr/src/redhat
rpmbuild --clean -ba SPECS/squid.spec
should do the job for you. (or pretty close)
I would also recommend that you return __FD_SETSIZE to 1024 after you've
built your RPM which should be in /usr/src/redhat/RPMS/i386
I would also suggest that you edit squid.spec & change Release: to
4.4096.8.0 so you will know which RPM is which. You should then finish
up
with squid-2.4.STABLE7-4.4096.8.0.i386.rpm
John
Received on Thu Mar 11 2004 - 03:04:45 MST
This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:02 MST