From owner-freebsd-current@FreeBSD.ORG Sat Sep 20 10:25:39 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21AC116A4B3 for ; Sat, 20 Sep 2003 10:25:39 -0700 (PDT) Received: from noop.colo.erols.net (noop.colo.erols.net [207.96.1.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E16A43FF3 for ; Sat, 20 Sep 2003 10:25:38 -0700 (PDT) (envelope-from gjp@in-addr.com) Received: from localhost ([127.0.0.1]:3121 helo=in-addr.com) by noop.colo.erols.net with esmtp (Exim 4.14) id 1A0lUH-000AQ2-UD; Sat, 20 Sep 2003 13:25:37 -0400 To: Maksim Yevmenkin From: "Gary Palmer" Date: Sat, 20 Sep 2003 13:25:35 -0400 Message-ID: <40053.1064078735@in-addr.com> cc: current@freebsd.org Subject: ubt0, Bluetooth and kernel memory leaking X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2003 17:25:39 -0000 Hi, It seems when using rfcomm_pppd (at least) as a Bluetooth <-> LAN gateway there is a fairly large memory leak which eventually crashes the box running the ppp server. To track down where, I recorded the output of kern.malloc every minute until the box crashed. At the start of the debugging run, I saw: devbuf 441 2650K 2861K 2504 16,32,64,128,256,512,1024,2048,4096,8192,16384,65536 A mere 32 minutes later (right before it crashed), it was up a considerable ammount: devbuf 89943184451K 184451K 92399 16,32,64,128,256,512,1024,2048,4096,8192,16384,65536 I'm pretty sure that kernel virtual memory got exhausted and the machine paniced and rebooted. I'm not even sure where to start looking for this. I'm using a MSI USB dongle: ubt0: vendor 0x0db0 product 0x1967, rev 1.10/5.25, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 % sh /etc/rc.bluetooth start ubt0 BD_ADDR: 00:10:dc:e9:59:f4 Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 This is on -current from approx. Aug 14 2003. The other end (client) was another MSI USB dognle on a Windows laptop. Any ideas? Thanks, Gary