From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 09:43:52 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 A5B2E10656A0; Fri, 10 Oct 2008 09:43:52 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from viefep13-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mx1.freebsd.org (Postfix) with ESMTP id BD1688FC20; Fri, 10 Oct 2008 09:43:51 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from edge03.upc.biz ([192.168.13.238]) by viefep13-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20081010094349.SBIL24679.viefep13-int.chello.at@edge03.upc.biz>; Fri, 10 Oct 2008 11:43:49 +0200 Received: from [192.168.2.175] ([89.134.231.52]) by edge03.upc.biz with edge id Qxjl1a03d18VCLh03xjnno; Fri, 10 Oct 2008 11:43:49 +0200 X-SourceIP: 89.134.231.52 Message-ID: <48EF23CB.8020104@shopzeus.com> Date: Fri, 10 Oct 2008 11:43:39 +0200 From: Laszlo Nagy User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Jeremy Chadwick References: <48EF14E1.9080808@shopzeus.com> <57200BF94E69E54880C9BB1AF714BBCB5DE18C@w2003s01.double-l.local> <48EF1C9C.3020201@shopzeus.com> <20081010091738.GA27925@icarus.home.lan> In-Reply-To: <20081010091738.GA27925@icarus.home.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: =?windows-1252?Q?Berta_S=E1ndor?= , Johan Hendriks , freebsd-questions@freebsd.org Subject: [SOLVED] 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:43:52 -0000 >>> 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. > Thank you very much! Probably you are right. Our users use shared IMAP folders and sometimes they keep ten thousands of messages in one folder. I have increased dirhash_maxmem to 64MB and see what happens. Unfortunately, I cannot play with the hardware because it is in a server park, and it must be up 99.99% on workdays. I hope dirhash will solve the problem. I'm setting this to [SOLVED] and come back if it happens again. (Maybe on monday?) By the way, there is nothing in /etc/periodic that would execute "find / -sx". Can somebody explain what is this for, and why it was started by root? Is it being used instead for enumerating files in a directory, when dir hash is full? Thanks, Laszo