[squid-users] [SOLVED]Re: [squid-users] Unable to increase filedescriptor limit -- tried all things

From: bijayant kumar <[email protected]>
Date: Fri, 25 Jan 2008 18:04:28 +0000 (GMT)

Thanks to all you and all the members of the list who
has supported me to rectify this problem.
The startup/init script of squid was wrong, which
comes in gentoo. It was setting the filedescriptor
limit to 1024. I started it manually as suggested by
Adrian Chadd, and it started showing 8192 file
descriptors available. Once again thanx a ton.

Now I want a suggestion from you that is 8192 file
descriptor sufficient for 200 to 300 users in the
network(High Traffic) or it should be more high. Other
than this any other parameter in squid.conf to look
for. I made it 8192 because of it is specified in the
ebuild.

--- Adrian Chadd <adrian@creative.net.au> wrote:

> On Fri, Jan 25, 2008, bijayant kumar wrote:
> > I have already entered that line
> >
> > cat /etc/security/limits.conf | grep nofile
> > * hard nofile 8192
> >
> > No luck till now. I am restarting squid several
> times
> > to avoid the slow browsing.
>
> I'd go and ask someone on the gentoo lists at this
> point to find out
> what you can do to make sure the ulimit is properly
> extended.
>
>
>
>
> Adrian
>
> >
> > -- Adrian Chadd <adrian@creative.net.au> wrote:
> >
> > > On Fri, Jan 25, 2008, bijayant kumar wrote:
> > > > Hi,
> > > >
> > > > bijayant@bijayant ~ $ ulimit -n
> > > > 1024
> > >
> > > Thats your problem.
> > >
> > > Check your pam security file. under ubuntu its:
> > >
> > > adrian@cindy:~$ cat /etc/security/limits.conf |
> grep
> > > nofile
> > > # - nofile - max number of open files
> > > * hard nofile 8192
> > >
> > >
> > > Adrian
> > >
> > > >
> > > > I have tried to change this via giving the
> command
> > >
> > > > ulimit -HSn 8192
> > > >
> > > > /usr/include/bits/typesizes.h
> > > > /* Number of descriptors that can fit in an
> > > `fd_set'.
> > > > */
> > > > #define __FD_SETSIZE 8192
> > > >
> > > > rebooted my machine several times, also
> > > > cat /proc/sys/fs/file-max
> > > > 11032
> > > >
> > > > I am using gentoo.
> > > > --- Ding Deng <ding.deng@gmail.com> wrote:
> > > >
> > > > > bijayant kumar <bijayant4u@yahoo.com>
> writes:
> > > > >
> > > > > > I have tried it also, but in log files it
> > > still
> > > > > saying
> > > > > > 1024 file descriptors available. while
> squid
> > > is
> > > > > > compile with 8192.
> > > > >
> > > > > ulimit -n
> > > > >
> > > > > What's the output?
> > > > >
> > > >
> > > >
> > > > Bijayant Kumar
> > > >
> > > > Send instant messages to your online friends
> > > http://uk.messenger.yahoo.com
> > >
> > > --
> > > - Xenion - http://www.xenion.com.au/ - VPS
> Hosting -
> > > Commercial Squid Support -
> > > - $25/pm entry-level VPSes w/ capped bandwidth
> > > charges available in WA -
> > >
> >
> >
> > Bijayant Kumar
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
>
> --
> - Xenion - http://www.xenion.com.au/ - VPS Hosting -
> Commercial Squid Support -
> - $25/pm entry-level VPSes w/ capped bandwidth
> charges available in WA -
>

Bijayant Kumar

Send instant messages to your online friends http://uk.messenger.yahoo.com
Received on Fri Jan 25 2008 - 11:04:38 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:05 MST