Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2001 21:44:18 +0200
From:      Girnet Vladimir <VGirnet@megadat.com>
To:        "'questions@freebsd.org'" <questions@freebsd.org>
Subject:   RE: squid + files descriptors
Message-ID:  <8E9035BABCA0514EB0E574B6A7082FC305308F@sln01.megadat.com>

next in thread | raw e-mail | index | archive | help
Just now I found the secret :)

When compiling squid, it get the maximum file descriptors from kernel. 

So, I compile squid with the GENERIC kernel, and squid get only 1024
maxfiles.
 
now I recompile squid, and I have no problems! ( With 16424 file descriptors
available )!!!

Thanks any way!

> 
> Devin, I thnik You don't understand me.
> 
> The computers are indentical, and runs as proxy servers, but 
> in different
> environment (networks). 
> 
> The problem is, that squid does not get more than 1064 file 
> descriptors on
> the second machine, on the same configuration.
> 
> I don't understand this...why in kernel is set 16424 files, 
> that can be
> open, but squid found only 4136, or 1064 ?
> 
> thanks
> 
> > > Hi
> > > 
> > > I have been setup absolut identically hosts with FreeBSD 
> > 4.4-RELEASE to run
> > > SQUID 2.4 on them.
> > > 
> > > But on one host I got this warning:
> > > " WARNING! Your cache is running out of filedescriptors" , 
> > and squid is not
> > > working.
> > > 
> > > When I compare both cache.log files I found this difference: 
> > >  on first machine:
> > >  With 4136 file descriptors available
> > > 
> > >  on second machine:
> > >  With 1064 file descriptors available
> > > 
> > > I set up same configuration of kernel on both computers, 
> > with MAXUSERS=128,
> > > and:
> > >  
> > > kern.maxvnodes: 72477
> > > kern.maxproc: 8212
> > > kern.maxfiles: 16424
> > > kern.maxfilesperproc: 16424
> > > kern.maxprocperuid: 8211
> > > 
> > > Please, help to solve this problem! Why so little file 
> descriptors?
> > > 
> > > 
> > > Regards,
> > > Vladimir Girnet
> > > Network & System Engineer NOC "MOLDOVA-ON-LINE" NET
> > > mailto:vgirnet@megadat.com
> > > www.mdl.net
> > > 
> > 
> > If the two machines are actually in production, it sounds 
> like the one
> > is caching more files than the other.
> > 
> > fix it by issuing as root sysctl=kern.maxfiles=32768
> > 
> > --devin
> > 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E9035BABCA0514EB0E574B6A7082FC305308F>