Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2005 06:50:27 GMT
From:      Kris Kennaway <kris@obsecurity.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/75755: kmem_malloc(45056): kmem_map too small: 335540224 total allocated
Message-ID:  <200501050650.j056oRhW088067@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/75755; it has been noted by GNATS.

From: Kris Kennaway <kris@obsecurity.org>
To: Michael Haro <mharo@FreeBSD.org>,
	Kris Kennaway <kris@obsecurity.org>, 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501050650.j056oRhW088067>