Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Nov 2005 19:20:57 -0800
From:      Sam Leffler <sam@errno.com>
To:        nielsen@memberwebs.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: Memory leak in net80211 on FBSD 6.0
Message-ID:  <438D1A99.6000803@errno.com>
In-Reply-To: <438D0896.1070808@memberwebs.com>
References:  <438CE0A8.4010205@memberwebs.com> <438D0896.1070808@memberwebs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nate Nielsen wrote:
> Nate Nielsen wrote:
> 
>>I'm experiencing a memory leak in the net80211 code. I have two atheros
>>5213-A cards on two embedded systems running FreeBSD 6.0. They are setup
>>as IBSS (adhoc) stations. After roughly 15 seconds of ~14Mbps TCP
>>traffic (single stream) I promptly run out of memory:
>>
>>
>>>login: panic: kmem_malloc(4096): kmem_map too small: 25165824 total allocated
>>>Uptime: 3m0s
>>>Cannot dump. No dump device defined.
>>>Automatic reboot in 5 seconds - press a key on the console to abort
>>>Rebooting...
>>
>>The boxes have 64MB of memory each.
>>vmstat -m reports the following just before the panic:
>>
>>
>>>        Type InUse MemUse HighUse Requests  Size(s)
>>><snip>
>>>   80211node 20554 20554K       -    20559  512,1024
> 
> 
> I've put debugging code in node_alloc() and node_free() (in
> net80211/ieee80211_node.c) and can confirm that thousands of
> ieee80211_node structures are being allocated, at a cost of 1K a piece.
> 
> I'll continue to look into this (stumbling about), but if anyone has any
> advice or ideas of where to look, I'd be eternally grateful.

Please don't spam lots of groups.  I'm aware of the leak (David Young 
found it in netbsd) and have a partial fix.  I'll send it to you directly.

	Sam



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