From owner-freebsd-isp@FreeBSD.ORG Thu Aug 31 20:17:08 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC17716A4DA for ; Thu, 31 Aug 2006 20:17:08 +0000 (UTC) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1ABD43D5D for ; Thu, 31 Aug 2006 20:17:05 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.13.7/8.13.7) with ESMTP id k7VKGvmK084995; Thu, 31 Aug 2006 16:16:57 -0400 (EDT) Received: from localhost (essenz@localhost) by beck.quonix.net (8.13.7/8.13.7/Submit) with ESMTP id k7VKGvVF084992; Thu, 31 Aug 2006 16:16:57 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Thu, 31 Aug 2006 16:16:57 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: Jaco Engelbrecht In-Reply-To: <20060831111244.GB21249@serendipity.org.za> Message-ID: <20060831161529.R84804@beck.quonix.net> References: <20060830135428.U95055@beck.quonix.net> <20060831111244.GB21249@serendipity.org.za> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spamassassin-Score: -1.442/6 ALL_TRUSTED,SPF_HELO_PASS,SPF_PASS X-Mimedefang: beck.quonix.net X-Scanned-By: MIMEDefang 2.57 on 146.145.66.90 Cc: freebsd-isp@freebsd.org Subject: Re: Question about a high load BIND server setup... X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 20:17:09 -0000 Thanks. I put those changes in. I'll see how it behaves over the next day. One thing I noticed though, I can't run ifconfig now: cache01# /sbin/ifconfig -a ifconfig: socket(family 2,SOCK_DGRAM): No buffer space available Would that have anything to do with those sysctl settings. -John On Thu, 31 Aug 2006, Jaco Engelbrecht wrote: > hi John, > > On Wed, Aug 30, 2006 at 02:04:10PM -0400, John Von Essen wrote: >> I just upgraded to 9.3.2 today. I have been having memory issues. For >> starter, when the named pid grows res mem to around 500m it craps out and >> stops resolving. The tentative fix was to restart bind every night at 2am. >> >> However, today, the res mem grow from 25m at startup to 500m in about 4 >> hours. Quicker then usually, so I thought maybe there was a memory leak, >> and thats why I upgraded to the latest version of bind. >> >> Any ideas? > > Build bind with its internal memory allocator. To to do this, change > CONFIGURE_ARGS in /usr/ports/dns/bind9/Makefile to read like: > > -- > CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \ > --with-randomdev=/dev/random \ > STD_CDEFINES=-DISC_MEM_USE_INTERNAL_MALLOC=1 > -- > > make clean > make WITH_PORT_REPLACES_BASE_BIND9=YES > make install > > > /etc/sysctl.conf settings: > > net.inet.raw.recvspace=128000 > net.inet.udp.recvspace=256000 > net.inet.tcp.sendspace=128000 > net.inet.tcp.recvspace=128000 > net.inet.tcp.inflight_enable=1 > kern.ipc.maxsockbuf=256000 > kern.ipc.somaxconn=2048 > net.inet.ip.intr_queue_maxlen=128 > > Jaco > > -- > bje@serendipity.org.za > the faculty of making fortuante discoveries >