Kernel panic when unpluggin AC adaptor

Jeremy Chadwick freebsd at jdc.parodius.com
Tue May 4 08:53:35 UTC 2010


On Tue, May 04, 2010 at 10:41:18AM +0200, David DEMELIER wrote:
> 2010/5/4 Jeremy Chadwick <freebsd at jdc.parodius.com>:
> > 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 at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-stable mailing list