From owner-freebsd-hackers Fri Aug 24 11: 5: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.reptiles.org (mail.reptiles.org [198.96.117.157]) by hub.freebsd.org (Postfix) with ESMTP id 7474237B405; Fri, 24 Aug 2001 11:05:01 -0700 (PDT) (envelope-from jim@reptiles.org) Received: from localhost (1865 bytes) by mail.reptiles.org via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Fri, 24 Aug 2001 14:07:43 -0400 (EDT) (Smail-3.2.0.111 2000-Feb-17 #2 built 2001-Apr-13) Date: Fri, 24 Aug 2001 14:07:43 -0400 From: Jim Mercer To: mki Cc: Julian Elischer , freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: totally weirdass problem, Squid-2.3-4 and FreeBSD Message-ID: <20010824140743.T10630@reptiles.org> References: <20010823153250.H10630@reptiles.org> <20010824131839.S10630@reptiles.org> <20010824104400.S1286@cyclonus.mozone.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010824104400.S1286@cyclonus.mozone.net>; from mki@mozone.net on Fri, Aug 24, 2001 at 10:44:00AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Aug 24, 2001 at 10:44:00AM -0700, mki wrote: > Try recompiling squid *after* you have your local shell's ulimit's > unlimited, so that the higher limits get set by configure. > > Steps: > 1. fix up your /etc/rc.sysctl to up kern.maxfilesperproc and kern.maxfiles > 2. ulimit -n 10000 (or if in csh/tcsh, type unlimit) > * you may have to force the hardlimits up as well > 3. recompile squid (ie. rerun configure so it picks up the new values) > 4. install squid > > this should address the problems you see.. good luck.. unfortunately not. > > is there a work-around for this, other than killing/restarting squid after > > each reboot? i'm thinking maybe i should stick a "ulimit -n 10000" in the rc.d/squid.sh file. i'll have to wait for a quiet period to test (the squid is doing some 7000 hits per minute when in production). -- [ Jim Mercer jim@reptiles.org +1 416 410-5633 ] [ Now with more and longer words for your reading enjoyment. ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message