From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 5 06:50:27 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C97016A4CE for ; Wed, 5 Jan 2005 06:50:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4823843D55 for ; Wed, 5 Jan 2005 06:50:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j056oRXE088068 for ; Wed, 5 Jan 2005 06:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j056oRhW088067; Wed, 5 Jan 2005 06:50:27 GMT (envelope-from gnats) Date: Wed, 5 Jan 2005 06:50:27 GMT Message-Id: <200501050650.j056oRhW088067@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kris Kennaway Subject: Re: kern/75755: kmem_malloc(45056): kmem_map too small: 335540224 total allocated X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kris Kennaway List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 06:50:27 -0000 The following reply was made to PR kern/75755; it has been noted by GNATS. From: Kris Kennaway To: Michael Haro , Kris Kennaway , FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/75755: kmem_malloc(45056): kmem_map too small: 335540224 total allocated Date: Tue, 4 Jan 2005 22:45:41 -0800 On Tue, Jan 04, 2005 at 10:09:52PM -0800, Michael Haro wrote: > How would I figure out what this value should be set to without just > increasing it and waiting for it to run out of KMEM space and panicing > again? That's what you have to do. Dynamic memory allocation is, well, dynamic :) > I'm not following the system workload thing you stated. This server > mostly just nfs client, sendmail, clamav, mimedefang and seti and only > receives about 300 messages per day. Something that your system is doing is causing it to run out of memory. The default value is apparently fairly low on 4GB machines, so it's not hard to do. > top currently says: > Mem: 311M Active, 1532M Inact, 118M Wired, 67M Cache, 112M Buf, 1735M Free > Swap: 4096M Total, 4096M Free > > How do I find out the amount of kmem being used? The vm.kvm_size and vm.kvm_free sysctl, maybe. Kris