SMP alternatives: switching to UP code
Sleep failed again on my test 755 last night. It’s been happily sleeping and waking for several days, four times per night, but last night it failed to wake from its second nap. This time it looks as if the machine hung at the point of powering off, or on again.
The power management suspend log (/var/log/pm/suspend.log) has all the suspend messages one could expect to see in it and none of the resume messages:
Fri Jun 12 00:03:03 BST 2009: running suspend hooks. ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/00clear ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/05led ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/15_915resolution ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/20video ===== kernel.acpi_video_flags = 0 ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/49bluetooth ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/50modules ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/55battery ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/60sysfont ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/65alsa ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/95led ===== ===== Fri Jun 12 00:03:03 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/98lcfgsleep ===== ===== Fri Jun 12 00:03:08 BST 2009: running hook: /usr/lib/pm-utils/sleep.d/99video ===== Fri Jun 12 00:03:08 BST 2009: done running suspend hooks.
No problem there. But there’s a possible clue in *syslog*. This is what it looks like when the machine sleeps – this is from the previous, successful sleep last night, from 18:00 to 23:52:
Jun 11 18:00:08 orkney kernel: Disabling non-boot CPUs ... Jun 11 18:00:09 orkney kernel: CPU 1 is now offline Jun 11 18:00:09 orkney kernel: SMP alternatives: switching to UP code Jun 11 23:52:32 orkney kernel: CPU1 is down
I’ve checked through the logs (grep -A 2 -B 2 'now offline' /var/lcfg/log/syslog*) and every time the machine successfully suspended and resumed, it managed to write CPU 1 is now offline and then SMP alternatives: switching to UP code to syslog before suspending. But at last night’s unsuccessful sleep it didn’t – these are the last syslog entries in syslog before the hang:
Jun 12 00:03:08 orkney kernel: Disabling non-boot CPUs ... Jun 12 00:03:09 orkney kernel: CPU 1 is now offline
SMP alternatives: switching to UP code is missing. Kernel bug? Time to do some internet searching perhaps.
One Response
Leave a Reply
You must be logged in to post a comment.
What do you mean by ‘hung’?
Has the machine panicked? You can tell this by the keyboard lights flashing on and off. If it has, then you’ll need to either enable one of the remote panic dump solutions (netdump, diskdump, or kdump) or attach a serial console to find out exactly what’s going wrong.
S.
sxw
June 15, 2009 at 12:42 pm