From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 12:55:27 2008 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE14B1065677; Thu, 24 Jul 2008 12:55:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id C31288FC26; Thu, 24 Jul 2008 12:55:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 3383846B94; Thu, 24 Jul 2008 08:37:21 -0400 (EDT) Date: Thu, 24 Jul 2008 13:37:21 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Mikhail Teterin In-Reply-To: <48861448.7020708@aldan.algebra.com> Message-ID: <20080724133555.P63347@fledge.watson.org> References: <4885F2A6.5020204@aldan.algebra.com> <4885FCE5.1060507@FreeBSD.org> <48860725.9050808@aldan.algebra.com> <20080722161958.GA11139@eos.sc1.parodius.com> <48860E8C.6050400@FreeBSD.org> <48860EF6.2040007@aldan.algebra.com> <48861284.1050706@FreeBSD.org> <48861448.7020708@aldan.algebra.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Kris Kennaway , questions@FreeBSD.org, Jeremy Chadwick , stable@FreeBSD.org Subject: Re: "sleeping without queue" ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 12:55:28 -0000 On Tue, 22 Jul 2008, Mikhail Teterin wrote: > Kris Kennaway ???????(??): >> Mikhail Teterin wrote: >>> Kris Kennaway ???????(??): >>>> Well, I mean kernel backtrace. >>> Can I obtain that remotely and without restarting/panicking the box? >>> Thanks, >> kgdb on /dev/mem or procstat > root@aldan:~ (107) kgdb /boot/kernel/kernel /dev/mem > [...] > (kgdb) bt > #0 0x0000000000000000 in ?? () > Error accessing memory address 0x0: Bad address. > > Even less luck with procstat: > > root@aldan:~ (108) locate procstat > root@aldan:~ (109) procstat > procstat: ???????? ???????. > root@aldan:~ (110) man procstat > No manual entry for procstat > > I'm sorry, but you'll need to be more specific. What should I type? Thanks, Assuming you're using 7.0 or an older 7-STABLE: procstat(1) appeared after 7.0 was released, but should be there if you slide forward on 7-STABLE. You can use "procstat -k pid" to see kernel stack traces for kernel threads working on behalf of the process. Depending on the level of detail you require, you can use -kk to also list function offsets inside the kernel, but the results are a bit harder to read. Robert N M Watson Computer Laboratory University of Cambridge