From owner-freebsd-stable@FreeBSD.ORG Wed Jun 17 13:10:54 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 E68DE8DA; Wed, 17 Jun 2015 13:10:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6DF2A7A; Wed, 17 Jun 2015 13:10:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 370641FE023; Wed, 17 Jun 2015 09:51:27 +0200 (CEST) Message-ID: <55812736.5070504@selasky.org> Date: Wed, 17 Jun 2015 09:52:22 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: 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> In-Reply-To: <5581209E.1070905@ShaneWare.Biz> 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: Wed, 17 Jun 2015 13:10:55 -0000 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