From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 12 15:29:49 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 85C2B20B for ; Sat, 12 Jan 2013 15:29:49 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5918ACDA for ; Sat, 12 Jan 2013 15:29:49 +0000 (UTC) Received: from ralph.baldwin.cx (c-68-39-198-164.hsd1.de.comcast.net [68.39.198.164]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 82A43B918; Sat, 12 Jan 2013 10:29:48 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: kldstat / kernel linker deadlock Date: Fri, 11 Jan 2013 16:13:38 -0500 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <50AED0B9.7040108@shatow.net> In-Reply-To: <50AED0B9.7040108@shatow.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201301111613.38676.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Sat, 12 Jan 2013 10:29:48 -0500 (EST) Cc: Bryan Drewery X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 15:29:49 -0000 On Thursday, November 22, 2012 08:26:17 PM Bryan Drewery wrote: > On 8.3-RELEASE I've hit a deadlock with kldstat. > > I can't provide much information as procstat(1) locks up and I have > already rebooted the servers due to it breaking quite a bit in my setup. > > > # kldstat > > Id Refs Address Size Name > > load: 0.91 cmd: kldstat 9936 [kernel linker] 51.21r 0.00u 0.00s 0% 768k > > ^C > > load: 0.72 cmd: kldstat 9936 [kernel linker] 225.23r 0.00u 0.00s 0% 704k > > load: 0.72 cmd: kldstat 9936 [kernel linker] 225.39r 0.00u 0.00s 0% 704k > > load: 0.42 cmd: kldstat 9936 [kernel linker] 1837.24r 0.00u 0.00s 0% > > 692k > > Short list of affected processes (74 in all): > > root 3685 0.0 0.0 3264 700 ?? D 7:27PM 0:00.00 > > kldstat root 67061 0.0 0.0 3380 892 ?? D 7:27PM > > 0:00.00 /usr/bin/netstat -nrf inet root 5579 0.0 0.0 3380 > > 892 ?? D 7:37PM 0:00.00 /usr/bin/netstat -nrf inet root > > 6393 0.0 0.0 3264 704 ?? D 7:32PM 0:00.00 /sbin/kldstat -v > > root 99635 0.0 0.1 3324 1244 13 D+ 7:52PM 0:00.01 > > procstat -ka > > [... 69 more removed ...] > > I had 2 minutely cron entries that were running kldstat(1)/netstat(1). > > Guessing the kldstat(1) and netstat(1) deadlocked initially. Next time get a dump if at all possible. -- John Baldwin