From owner-freebsd-hackers Fri Aug 24 10:34: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mozone.net (mail.mozone.net [206.165.200.53]) by hub.freebsd.org (Postfix) with ESMTP id 497B537B42F; Fri, 24 Aug 2001 10:33:38 -0700 (PDT) (envelope-from mki@mozone.net) Received: (from mki@localhost) by mozone.net (8.11.2/8.11.2) id f7OHi0m05630; Fri, 24 Aug 2001 10:44:00 -0700 Date: Fri, 24 Aug 2001 10:44:00 -0700 From: mki <mki@mozone.net> To: Jim Mercer <jim@reptiles.org> Cc: Julian Elischer <julian@elischer.org>, freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: totally weirdass problem, Squid-2.3-4 and FreeBSD Message-ID: <20010824104400.S1286@cyclonus.mozone.net> References: <20010823153250.H10630@reptiles.org> <Pine.BSF.4.21.0108231746400.54256-100000@InterJet.elischer.org> <20010824131839.S10630@reptiles.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010824131839.S10630@reptiles.org>; from jim@reptiles.org on Fri, Aug 24, 2001 at 01:18:39PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-hackers.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-hackers> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-hackers> X-Loop: FreeBSD.ORG 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.. -mohan On Fri, Aug 24, 2001 at 01:18:39PM -0400, Jim Mercer wrote: > this is because we have: > > /etc/rc (with default limits) > /etc/rc.sysclt (ups some of the limits) > /usr/local/etc/rc.d/squid.sh (inherits /etc/rc limits) > /usr/local/bin/RunCache (squid wrapper, inherits rc.d/squid.sh limits) > /usr/local/sbin/squid (inherits RunCache limits) > > so, if i just kill squid, it re-ineherits the limits effectively from /etc/rc. > > if i kill RunCache and squid, then restart, it gets the sysctl.conf limits. > > is there a work-around for this, other than killing/restarting squid after > each reboot? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message