From owner-freebsd-ports@FreeBSD.ORG Tue Apr 5 23:55:14 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73E1D16A4CE for ; Tue, 5 Apr 2005 23:55:14 +0000 (GMT) Received: from gau.lava.net (gau.lava.net [64.65.64.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD74B43D5A for ; Tue, 5 Apr 2005 23:55:13 +0000 (GMT) (envelope-from eulogio.apelin@lava.net) Received: from megatokyo (megatokyo.lava.net [64.65.127.249]) by gau.lava.net (Postfix) with ESMTP id 2C8E7171A7 for ; Tue, 5 Apr 2005 13:55:13 -1000 (HST) From: "Booker Apelin" To: Date: Tue, 5 Apr 2005 13:55:22 -1000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcU6Ou2y07YNV25sQL+4nPpdbEtgIQ== Message-Id: <20050405235513.2C8E7171A7@gau.lava.net> Subject: Trying to debug bind 9.3.1 out of memory problem. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 23:55:14 -0000 We're trying to run the port version of bind 9.3.1 on FreeBSD 5.3. The system has 1GB of ram and only basic services are running on it, like sshd. The number of zones is quite large and we expect named to use about 640 MB of ram. The problem we are running into is that when named is started it starts loading zones, when it hits 515MB in memory usage it stops loading zones and complains it is out of memory. This is what top looks like: Mem: 529M Active, 274M Inact, 143M Wired, 49M Cache, 111M Buf, 2556K Free Swap: 2049M Total, 20K Used, 2049M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 11609 root 96 0 516M 515M select 1:41 0.00% 0.00% named The same DNS setup is running on a production server, BSD 4.3 with 1GB of ram, version 9.2.x. So we know a previous version works with the same number of zones. We've tried running bind 9.3.1 as user bind or root. We tried running it chrooted and not. The default install of login.conf is being used and all of the options are using "unlimited". But it seems that something on the OS side is limiting ram usage of 9.3.1, we're thinking. Any suggestions on options or debugging tricks I can apply? Booker