From owner-freebsd-small Tue Jul 2 6:39:53 2002 Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41E3137B400 for ; Tue, 2 Jul 2002 06:39:51 -0700 (PDT) Received: from spitfire.velocet.net (spitfire.velocet.net [216.138.223.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id A72EC43E3B for ; Tue, 2 Jul 2002 06:39:50 -0700 (PDT) (envelope-from steve@nomad.tor.lets.net) Received: from nomad.tor.lets.net (H74.C220.tor.velocet.net [216.138.220.74]) by spitfire.velocet.net (Postfix) with SMTP id 29EF2FB4507 for ; Tue, 2 Jul 2002 13:39:49 +0000 (GMT) Received: (qmail 35145 invoked by uid 1001); 2 Jul 2002 13:34:53 -0000 Date: Tue, 2 Jul 2002 09:34:53 -0400 From: Steve Shorter To: freebsd-small@freebsd.org Subject: Kernal malloc area tuning? Message-ID: <20020702093453.A35135@nomad.lets.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Howdy! I have a dedicated router/firewall running FreeBSD 4.5-RELEASE-p6 and ipfilter 3.4.20. IPFilter has begun dropping connections because it can't allocate memory for more entries in the state/nat tables. I have traced the condition to an error from kern_malloc() (or one of its siblings) when it is not able to allocate the memory required. Top shows that there is lots of free memory. The documentation in LINT suggest modifying these parameters .. options VM_KMEM_SIZE="(10*1024*1024)" options VM_KMEM_SIZE_MAX="(100*1024*1024)" options VM_KMEM_SIZE_SCALE="4" I tried various strategies including setting options VM_KMEM_SIZE_SCALE="2" which *should* double the malloc area (according to LINT), but could not get more memory allocated for the state tables. How can I tune the kernel malloc area so that I can take advantage of the "free RAM". It has 128M, but 80M is still "free" thanx - steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message