From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 09:17:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B23E11065686 for ; Fri, 10 Oct 2008 09:17:41 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 50C968FC0C for ; Fri, 10 Oct 2008 09:17:40 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA05.westchester.pa.mail.comcast.net ([76.96.62.43]) by QMTA01.westchester.pa.mail.comcast.net with comcast id QxD61a00V0vyq2s51xHgix; Fri, 10 Oct 2008 09:17:40 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA05.westchester.pa.mail.comcast.net with comcast id QxHf1a0012P6wsM3RxHfDE; Fri, 10 Oct 2008 09:17:40 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=RL7s55I3Apcezk4QjWcA:9 a=JOoKmUZmSfyHeWwTbhqVY2EplEIA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id CEDBCC9419; Fri, 10 Oct 2008 02:17:38 -0700 (PDT) Date: Fri, 10 Oct 2008 02:17:38 -0700 From: Jeremy Chadwick To: Laszlo Nagy Message-ID: <20081010091738.GA27925@icarus.home.lan> References: <48EF14E1.9080808@shopzeus.com> <57200BF94E69E54880C9BB1AF714BBCB5DE18C@w2003s01.double-l.local> <48EF1C9C.3020201@shopzeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48EF1C9C.3020201@shopzeus.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Johan Hendriks , freebsd-questions@freebsd.org Subject: Re: 7.1 hangs, shutdown terminated X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2008 09:17:41 -0000 On Fri, Oct 10, 2008 at 11:13:00AM +0200, Laszlo Nagy wrote: > Johan Hendriks írta: >> If find / -sx is running and is consuming all CPU, what is the value of >> vfs.ufs.dirhash_mem: >> >> # sysctl -a | grep dirhash >> > shopzeus# sysctl -a | grep dirhash > vfs.ufs.dirhash_docheck: 0 > vfs.ufs.dirhash_mem: 2095818 > vfs.ufs.dirhash_maxmem: 2097152 > vfs.ufs.dirhash_minsize: 2560 > >> Make sure vfs.ufs.dirhash_mem: is not close to vfs.ufs.dirhash_maxmem: >> > All right. It is close to it. Which one should I increase? I put this > into /etc/sysctl.conf: > > > vfs.ufs.dirhash_maxmem=8228608 > > Would it be scufficient? We don't know, and can't tell you. You'll have to monitor vfs.ufs.dirhash_mem occasionally to see if you start to reach vfs.ufs.dirhash_maxmem. I have a tendency to use vfs.ufs.dirhash_maxmem=16777216, which is 16384*1024 (16MBytes). I'm not fully confident this is what's causing your problem, but it's definitely a recommendation by Johan. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |