Re: panic: kmem_malloc; Should I increase some setting?

From: Robert Watson <rwatson_at_freebsd.org>
Date: Tue, 29 Jun 2004 21:32:06 -0400 (EDT)
On Tue, 29 Jun 2004, Doug White wrote:

> On Wed, 30 Jun 2004, Ronald Klop wrote:
> 
> > I get the following panics while untarring a 30MB archive on an md device
> > create with:
> > tmpmfs="YES"
> > tmpsize="256m"
> 
> This is a malloc-backed md disk, which consumes memory directly from
> KVM.  If you do a large extraction it will consume all of KVM and cause
> your panic.  Unless you're running diskless and this is your only option
> besides NFS, either don't use tmpmfs or avoid extracting large amounts
> of data to /tmp. 

What you want to do is use a swap-backed /tmp, assuming there's local
swap.  We should probably discuss why the rc.conf bits use malloc-backed
by default in what sounds like a non-diskless environment?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert_at_fledge.watson.org      Principal Research Scientist, McAfee Research


> 
> > panic: kmem_malloc(16384): kmem_map too small: 86233088 total allocated
> 
> -- 
> Doug White                    |  FreeBSD: The Power to Serve
> dwhite_at_gumbysoft.com          |  www.FreeBSD.org
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Tue Jun 29 2004 - 23:33:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:59 UTC