Date: Fri, 30 Nov 2001 13:24:56 -0500 From: Devin Smith <devin-freebsdquestions@rintrah.org> To: Girnet Vladimir <VGirnet@megadat.com> Cc: freebsd-questions@freebsd.org Subject: Re: squid + files descriptors Message-ID: <20011130132456.A39544@tharmas.rintrah.org> In-Reply-To: <8E9035BABCA0514EB0E574B6A7082FC305308B@sln01.megadat.com>; from VGirnet@megadat.com on Fri, Nov 30, 2001 at 07:17:18PM %2B0200 References: <8E9035BABCA0514EB0E574B6A7082FC305308B@sln01.megadat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 30, 2001 at 07:17:18PM +0200, Girnet Vladimir wrote: > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011130132456.A39544>