From owner-freebsd-hackers Thu Aug 23 12:30: 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 CF12037B408; Thu, 23 Aug 2001 12:29:54 -0700 (PDT) (envelope-from jim@reptiles.org) Received: from localhost (2353 bytes) by mail.reptiles.org via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Thu, 23 Aug 2001 15:32:50 -0400 (EDT) (Smail-3.2.0.111 2000-Feb-17 #2 built 2001-Apr-13) Date: Thu, 23 Aug 2001 15:32:50 -0400 From: Jim Mercer To: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: totally weirdass problem, Squid-2.3-4 and FreeBSD Message-ID: <20010823153250.H10630@reptiles.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 [ i'm not on hackers or questions lists, so a Cc: would be appreciated on any replies ] i have a squid server in pakistan that is exhibiting some really, really screwy behaviour. firstly, it is running FreeBSD 4.x-stable (circa Feb 2001) secondly it is running squid-2.3 stable4 when we initially set it up, we found that the default kernel maxfiles of 2088 was inadequate. using sysctl (/etc/sysctl.conf) we bumped it (and procmaxfile) up to 10000. squid didn't seem to find the 10000 after this, only 2088. someone mentioned that squid calculates the number of descriptors at compile time. so, we recompiled squid, restarted, and voila, it found the 10000. a few weeks ago, i was informed that it was running out of file descriptors. i checked it out, and for some reason, squid was only seeing 2088 again. sysctl -a showed me that it was in fact having 10000. i figured maybe someone re-installed squid. so i did a: # cd /usr/ports/www/squid23 # make clean # make # make install (or maybe reinstall) restarted squid, and lo and behold, it was seeing 10000 descriptors again. yesterday, i got a message that it was out of descriptors again. this time, i noticed that the box had been rebooted recently. sysctl -a still showed 10000, but squid was only seeing 2088. now, this is the weird, weird, weird part. without rebooting or anything, i killed squid and did: # cd /usr/ports/www/squid23 # make reinstall i restarted squid, and lo and behold, it saw 10000 descriptors. i had a close look at what "make reinstall" did, and as best i can tell it did not update any config files, just programs. now, WTF would cause the binary to get a different perspective on the number of file descriptors between boottime and reinstall ? -- [ 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