From owner-freebsd-net@FreeBSD.ORG Thu Sep 3 21:51:46 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FE051065672 for ; Thu, 3 Sep 2009 21:51:46 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id D3D938FC16 for ; Thu, 3 Sep 2009 21:51:45 +0000 (UTC) Received: (qmail 97995 invoked from network); 3 Sep 2009 21:51:44 -0000 Received: from unknown (HELO ?192.168.0.146?) (spawk@66.206.120.2) by acm.poly.edu with AES256-SHA encrypted SMTP; 3 Sep 2009 21:51:44 -0000 Message-ID: <4AA03A41.1080200@acm.poly.edu> Date: Thu, 03 Sep 2009 17:50:57 -0400 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.19 (X11/20090108) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4A8C3557.20002@acm.poly.edu> In-Reply-To: <4A8C3557.20002@acm.poly.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: kmem_map too small panics with Soekris/Atheros access point X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 21:51:46 -0000 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