From owner-freebsd-stable@FreeBSD.ORG Tue May 31 06:47:21 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CA9916A41C for ; Tue, 31 May 2005 06:47:21 +0000 (GMT) (envelope-from Mark_Andrews@isc.org) Received: from farside.isc.org (farside.isc.org [204.152.187.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CB6943D1D for ; Tue, 31 May 2005 06:47:21 +0000 (GMT) (envelope-from Mark_Andrews@isc.org) Received: from drugs.dv.isc.org (localhost [IPv6:::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by farside.isc.org (Postfix) with ESMTP id 4D5CC677F6 for ; Tue, 31 May 2005 06:47:18 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (8.13.3/8.13.1) with ESMTP id j4V6l6F3010478; Tue, 31 May 2005 16:47:07 +1000 (EST) (envelope-from marka@drugs.dv.isc.org) Message-Id: <200505310647.j4V6l6F3010478@drugs.dv.isc.org> To: Mark Sergeant From: Mark Andrews In-reply-to: Your message of "Tue, 31 May 2005 15:28:25 +1000." Date: Tue, 31 May 2005 16:47:06 +1000 Sender: Mark_Andrews@isc.org Cc: stable@freebsd.org, Michael Riexinger Subject: Re: heavy named problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 06:47:21 -0000 > On 31/05/2005, at 3:08 PM, Mark Andrews wrote: > > > > > > >> 31-May-2005 13:23:51.045 general: error: /usr/src/lib/bind/ > >> dns/../../../contrib/bind9/lib/dns/adb.c:1439: unexpected error: > >> 31-May-2005 13:23:51.045 general: error: isc_mutex_init failed in > >> new_adbfind() > >> 31-May-2005 13:23:51.891 general: error: /usr/src/lib/bind/ > >> dns/../../../contrib/bind9/lib/dns/adb.c:1439: unexpected error: > >> 31-May-2005 13:23:51.891 general: error: /usr/src/lib/bind/ > >> dns/../../../contrib/bind9/lib/dns/adb.c:1439: unexpected error: > >> 31-May-2005 13:23:51.891 general: error: isc_mutex_init failed in > >> new_adbfind() > >> > >> I'm seeing this on both FreeBSD 5.4-p1 and -STABLE, either named will > >> hang around the 100 - 250M memory mark with top output like ... > >> > >> last pid: 20483; load averages: 0.98, 0.67, > >> 0.44 up 4+03:26:18 > >> 12:32:27 > >> 34 processes: 2 running, 32 sleeping > >> CPU states: % user, % nice, % system, % > >> interrupt, % idle > >> Mem: 237M Active, 150M Inact, 119M Wired, 24K Cache, 214M Buf, 1407M > >> Free > >> Swap: 4096M Total, 4096M Free > >> > >> PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU > >> COMMAND > >> 19847 bind 20 0 232M 228M kserel 1 61:57 98.97% > >> 98.97% named > >> > >> As you can see plenty of memory free. > >> > >> > >> Or if I drop down the datasize and cache size then I get the above > >> crash. Any ideas anyone ? > >> > > > > The only thing you should do with datasize is raise it. > > The option is there so that the process can get *more* than > > the default memory allocation. > > > > If you want to restict the amount of memory being used then > > max-cache-size is what should be set. Note for this to be > > effective it needs to trigger *before* named's memory usage > > hits the datasize limit. > > > > Lowering both datasize and max-cache-size is generally > > counter productive. > > > >> > > True, but with none in place (I'd like it to use a gig or so if > possible for the cache), then the system "freezes" and needs to be > kill -9'ed and restarted, hence why I dropped the memory limits / put > them in place in the first place. Ideally I'd like this machine to > not crash at all since it's the primary cache. Have I run into some > obscure bug ? Well FreeBSD defaults to a system wide maximum datasize of 512M (MAXDSIZ) and requires the kernel to be tuned to raise. Mark -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org