kern/75755: kmem_malloc(45056): kmem_map too small: 335540224
total allocated
Kris Kennaway
kris at obsecurity.org
Tue Jan 4 22:50:27 PST 2005
The following reply was made to PR kern/75755; it has been noted by GNATS.
From: Kris Kennaway <kris at obsecurity.org>
To: Michael Haro <mharo at FreeBSD.org>,
Kris Kennaway <kris at obsecurity.org>, FreeBSD-gnats-submit at 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
More information about the freebsd-bugs
mailing list