From owner-freebsd-stable Mon Jul 1 8:12:42 2002 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 7942E37B400 for ; Mon, 1 Jul 2002 08:12:39 -0700 (PDT) Received: from spitfire.velocet.net (spitfire.velocet.net [216.138.223.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16AA943E13 for ; Mon, 1 Jul 2002 08:12:39 -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 7B3B6FB4573 for ; Mon, 1 Jul 2002 15:12:33 +0000 (GMT) Received: (qmail 34201 invoked by uid 1001); 1 Jul 2002 15:07:38 -0000 Date: Mon, 1 Jul 2002 11:07:38 -0400 From: Steve Shorter To: freebsd-stable@freebsd.org Subject: Kernel malloc area tuning? Message-ID: <20020701110738.A34196@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-stable@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 been 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, and the machine started to load race and became unusable. How can I tune the kernel malloc area so that I can take advantage of the "free RAM". thanx - steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message