From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 5 06:10:28 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 5ACDF16A4CE for ; Wed, 5 Jan 2005 06:10:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4333A43D2D for ; Wed, 5 Jan 2005 06:10:28 +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 j056AS2E093085 for ; Wed, 5 Jan 2005 06:10:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j056AScd093078; Wed, 5 Jan 2005 06:10:28 GMT (envelope-from gnats) Date: Wed, 5 Jan 2005 06:10:28 GMT Message-Id: <200501050610.j056AScd093078@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Michael Haro 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: Michael Haro List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 06:10:28 -0000 The following reply was made to PR kern/75755; it has been noted by GNATS. From: Michael Haro To: Kris Kennaway Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/75755: kmem_malloc(45056): kmem_map too small: 335540224 total allocated Date: Tue, 4 Jan 2005 22:09:52 -0800 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? 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. 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? Michael On Tue, Jan 04, 2005 at 04:46:22PM -0800, Kris Kennaway wrote: > On Mon, Jan 03, 2005 at 10:03:48AM -0800, Michael Haro wrote: > > > Not sure. This is the first occurance. System was up for over 40 days. > > > > I did see a few other PRs with similar issues, but none of them had a > > solution that all the PRs agreed on. > > As you noted, this is a duplicate of other PRs and should be closed. > The problem is that your system workload caused the system to run out > of KVM (kernel memory). The solution is to increase the amount of KVM: > > > Unknown. One PR said > > options VM_KMEM_SIZE_MAX=419430400 > > decreased KMEM space. Another comment said that it increased it and thus > > was incorrect. > > I'm confused about what you're claiming here. This option allocates > 400M of KVM (default is 320, so this is an increase and will provide > your kernel with a bit more memory with which to work). If 400 is > still too low, try a larger value. > > Kris