From owner-freebsd-questions Fri Nov 30 10:24:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tharmas.rintrah.org (dhcp065-024-235-184.insight.rr.com [65.24.235.184]) by hub.freebsd.org (Postfix) with SMTP id 5BBD637B419 for ; Fri, 30 Nov 2001 10:24:39 -0800 (PST) Received: (qmail 39663 invoked by uid 1000); 30 Nov 2001 18:24:56 -0000 Date: Fri, 30 Nov 2001 13:24:56 -0500 From: Devin Smith To: Girnet Vladimir Cc: freebsd-questions@freebsd.org Subject: Re: squid + files descriptors Message-ID: <20011130132456.A39544@tharmas.rintrah.org> Mail-Followup-To: Girnet Vladimir , freebsd-questions@freebsd.org References: <8E9035BABCA0514EB0E574B6A7082FC305308B@sln01.megadat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <8E9035BABCA0514EB0E574B6A7082FC305308B@sln01.megadat.com>; from VGirnet@megadat.com on Fri, Nov 30, 2001 at 07:17:18PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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