From owner-freebsd-stable@FreeBSD.ORG Tue May 4 08:53:35 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42444106564A for ; Tue, 4 May 2010 08:53:35 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id E22998FC17 for ; Tue, 4 May 2010 08:53:34 +0000 (UTC) Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) by qmta08.westchester.pa.mail.comcast.net with comcast id DLot1e0010Fqzac58LtbGk; Tue, 04 May 2010 08:53:35 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta08.westchester.pa.mail.comcast.net with comcast id DLtZ1e0083S48mS3ULtaNG; Tue, 04 May 2010 08:53:34 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id B19259B425; Tue, 4 May 2010 01:53:32 -0700 (PDT) Date: Tue, 4 May 2010 01:53:32 -0700 From: Jeremy Chadwick To: David DEMELIER Message-ID: <20100504085332.GA24219@icarus.home.lan> References: <20100503224206.GB9134@icarus.home.lan> <20100504083738.GA23820@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2010 08:53:35 -0000 On Tue, May 04, 2010 at 10:41:18AM +0200, David DEMELIER wrote: > 2010/5/4 Jeremy Chadwick : > > On Tue, May 04, 2010 at 10:32:14AM +0200, David DEMELIER wrote: > >> Since I added dumpdev="/dev/ad4s1b" in my /boot/loader.conf it does > >> not panic anymore ... > >> > >> I'm not lucky (or ?). > > > > 1) dumpdev="xxx" should go into /etc/rc.conf, not /boot/loader.conf. > > Putting in in /boot/loader.conf will change/do nothing.  You should > > probably be using 'dumpdev="auto"' anyway (it then uses whatever you > > define as swap in /etc/fstab). > > > > 2) If you meant to say /etc/rc.conf instead of /boot/loader.conf, > > setting dumpdev shouldn't fix your problem.  I think it's a red herring. > > > > 3) You sent the above to me directly; please keep the mailing list CC'd, > > as others need to know what you've tried/done.  Thanks. > > Yes I also added dumpdev="AUTO" in /etc/rc.conf at the beginning. That > was Garett who told me to add it to loader.conf. I think he meant /etc/rc.conf. That's okay -- mistakes happen. All dumpdev="auto" will do is configure FreeBSD to automatically dump all kernel memory to swap + reboot the system. When FreeBSD next boots, it will use savecore(8) to save the contents of swap to a series of files in /var/crash for later debugging. > $ sysctl dev.cpu > dev.cpu.0.%desc: ACPI CPU > dev.cpu.0.%driver: cpu > dev.cpu.0.%location: handle=\_PR_.CPU0 > dev.cpu.0.%pnpinfo: _HID=none _UID=0 > dev.cpu.0.%parent: acpi0 > dev.cpu.0.freq: 2101 > dev.cpu.0.freq_levels: 2101/35000 1837/30625 1600/23888 1400/20902 1200/15000 1050/13125 900/11250 750/9375 600/7500 450/5625 300/3750 150/1875 > dev.cpu.0.cx_supported: C1/1 C2/57 > dev.cpu.0.cx_lowest: C1 > dev.cpu.0.cx_usage: 100.00% 0.00% last 497us > dev.cpu.1.%desc: ACPI CPU > dev.cpu.1.%driver: cpu > dev.cpu.1.%location: handle=\_PR_.CPU1 > dev.cpu.1.%pnpinfo: _HID=none _UID=0 > dev.cpu.1.%parent: acpi0 > dev.cpu.1.cx_supported: C1/1 C2/57 > dev.cpu.1.cx_lowest: C1 > dev.cpu.1.cx_usage: 100.00% 0.00% last 497us > > (I used Cc: entry I hope it sends to all) Can you confirm whether or not powerd(8) is in use on this system when it panics? If so, does the problem go away if you disable powerd(8) but leave in (uncommented) the performance_* and economy_* rc.conf settings? -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |