From owner-freebsd-stable@FreeBSD.ORG Thu Jun 18 04:11:32 2015 Return-Path: Delivered-To: freebsd-stable@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2AFB8624; Thu, 18 Jun 2015 04:11:32 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 8991819E; Thu, 18 Jun 2015 04:11:30 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-151-206.lns20.adl6.internode.on.net (HELO leader.local) ([118.210.151.206]) by ipmail06.adl2.internode.on.net with ESMTP; 18 Jun 2015 13:41:23 +0930 Message-ID: <558244E6.3080102@ShaneWare.Biz> Date: Thu, 18 Jun 2015 13:41:18 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Hans Petter Selasky , Shane Ambler , Andriy Gapon , freebsd-stable@FreeBSD.org Subject: Re: Help debugging stable/10 References: <5488F58D.7060708@ShaneWare.Biz> <201412161129.57704.jhb@freebsd.org> <549BC924.3050402@ShaneWare.Biz> <549BD90B.2050000@selasky.org> <549C042D.3090108@FreeBSD.org> <55103050.6030904@ShaneWare.Biz> <5581209E.1070905@ShaneWare.Biz> <55812736.5070504@selasky.org> In-Reply-To: <55812736.5070504@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 04:11:32 -0000 On 17/06/2015 17:22, Hans Petter Selasky wrote: > On 06/17/15 09:24, Shane Ambler wrote: >> On 24/03/2015 01:55, Shane Ambler wrote: >>> On 25/12/2014 23:03, Andriy Gapon wrote: >>>> On 25/12/2014 11:29, Hans Petter Selasky wrote: >>>>> The cam_sim_free() is stuck, blocking the rest of that controller from >>>>> enumerating. It might look like a non-USB stack issue. >>>>> >>>>> MAV: Do you have some ideas where to start looking, now we have a >>>>> dump? Any >>>>> refcounts to check in particular? >>>> >>>> Apparently sim->refcount > 0. >>>> Not sure how to check who has the reference(s). >>>> >> >> Can anyone think of something I can try? >> >> To recap to save you going back through history - >> After running 9.0 - 9.2 for 3 years I upgraded to 10.1RC3 and started >> getting a locking issue, most new processes fail to start, top and ps >> failing being indicators, the most info I have got is a back trace >> using kgdb, there are 4 instances I got output from procstat -kk -a >> >> On several occasions I have found that after inserting a usb memstick >> the device failed to be created, leaving me unable to mount the >> filesystem without a restart. >> >> I then switched to stable/10 in hopes of a fix finding it's way in. >> >> The back traces I have been able to collect (and a dmesg) are listed at >> http://shaneware.biz/freebsddebugdata/ >> >> This is my everyday desktop machine. I am now running >> >> FreeBSD leader.local 10.1-STABLE FreeBSD 10.1-STABLE #11 r283839: Thu >> Jun 4 17:41:28 ACST 2015 root@leader.local:/usr/obj/usr/src/sys >> /GENERIC amd64 >> >> I can only say it appears to be getting worse, though I may just be >> getting sick of having to restart nearly every day. Lately it seems that >> the less I do the quicker it locks up. I have restarted twice this week >> and then let it sit while I have gone out, after returning I get maybe >> 10-15 mins then have to restart, one of them was less than an hour >> uptime. >> >> While running poudriere I have got past 1 day uptime but it locks up >> harder and I don't usually get a chance to record any data. >> >> > > Hi, > > One solution is to use fuse instead of the native fs, until the CAM/SCSI > refcount issues are resolved. > > --HPS If you refer to the usb stick, it locks up without inserting one. I'll try with the extra fs kmods unloaded and see how it goes. -- FreeBSD - the place to B...Software Developing Shane Ambler