From owner-freebsd-mips@freebsd.org Wed Nov 11 12:05:19 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24423A2CE84 for ; Wed, 11 Nov 2015 12:05:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BF2A1F45; Wed, 11 Nov 2015 12:05:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id tABC5AQ6093602 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 11 Nov 2015 14:05:10 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua tABC5AQ6093602 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id tABC5844093594; Wed, 11 Nov 2015 14:05:08 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 11 Nov 2015 14:05:08 +0200 From: Konstantin Belousov To: Eugene Grosbein Cc: Jeff Roberson , benno , "freebsd-mips@freebsd.org" Subject: Re: USB-related problem Message-ID: <20151111120508.GZ2257@kib.kiev.ua> References: <563F5630.2000407@grosbein.net> <563F6F6F.1010807@grosbein.net> <563F91A8.9080702@grosbein.net> <5640C0FD.2040803@grosbein.net> <5640F315.5020303@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5640F315.5020303@grosbein.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 12:05:19 -0000 On Tue, Nov 10, 2015 at 02:25:09AM +0700, Eugene Grosbein wrote: > On 09.11.2015 22:53, Adrian Chadd wrote: > > ok, let's get it to hang, then break into ddb and do 'show > > allthreads', 'show alllocks', 'bufvars' with my vfs_bio.c patch, etc. > > I've re-read https://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-deadlocks.html > and rebuilt kernel with additional debugging and reproduced the problem again to supply > more vfs lock info: You have syncer running with the buffer arena mutex locked. This probably means that you have DIAGNOSTIC option turned on, do you ? If yes, set debug.vmem_check to zero, otherwise it just eats your anemic CPU. Also, I am curious what is the value of vfs.unmapped_buf_allowed on your platform.