Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Sep 2009 17:50:57 -0400
From:      Boris Kochergin <spawk@acm.poly.edu>
To:        freebsd-net@freebsd.org
Subject:   Re: kmem_map too small panics with Soekris/Atheros access point
Message-ID:  <4AA03A41.1080200@acm.poly.edu>
In-Reply-To: <4A8C3557.20002@acm.poly.edu>
References:  <4A8C3557.20002@acm.poly.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Boris Kochergin wrote:
> Ahoy. I've got two Soekris Net5501s with Atheros 5212 cards in them, 
> acting as access points. They are both running 7.2-RELEASE and at 
> times each one has up to 30 machines associated with it. Relevant 
> information about them can be found at 
> "http://acm.poly.edu/~spawk/ap/". After a few days, they panic with:
>
> panic: kmem_malloc(32768): kmem_map too small: 86142976 total allocated
>
> Indeed, vm.kmem_size on each of them is 86228992. I had nowhere to 
> write a core dump to, but the root issue seems to be that all kernel 
> memory was exhausted, which sounds like a memory leak somewhere. Is 
> that a known problem with that release and hardware configuration?
>
> -Boris
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
More information: I upgraded it to a 7.2-STABLE with August 20th sources 
and increased kern.ipc.nmbclusters to 65536 in hopes of getting the 
panic less often. I managed to catch it in a state where there were a 
bunch of "ath0: ath_rx_proc: no mbuf!" messages in the kernel buffer. 
One line of "vmstat -m" stood out as the leak:

80211node 12677 101401K       -   120901  16,512

"ifconfig ath0 down" freed the memory. Is there any other useful 
information I can provide if I catch it again? Someone suggested the 
output of "vmstat -z" off list, and I will have that next time.

-Boris



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