Skip to contentSkip to conversation

CPU 1 refused to die!

DISCUSSION Giuliano Pochini 2 participants 4 messages May 23, 2006 – Jun 24, 2006

lore
Share & tools
lore
#0 lore raw

I booted with maxcpus=1, then I enabled the 2nd cpu with echo 1 > /sys/devices/system/cpu/cpu1/online

I can't disable it anymore. dmesg says "CPU 1 refused to die!". /proc/cpuinfo and /proc/interrupts show one cpu only and the tasks run on one cpu after the echo 0 > /sys/... , but since the command takes a couple of seconds to complete I think it's not simply a bogus error message.

Dual G4 MDD
Linux Jay 2.6.16.16 #8 SMP Sat May 13 19:15:05 CEST 2006 ppc 7455, altivec supported PowerMac3,6 GNU/Linux

--
Giuliano.

#1 lore raw
Quoted 3 lines · Giuliano Pochini

I booted with maxcpus=1, then I enabled the 2nd cpu with echo 1 > /sys/devices/system/cpu/cpu1/online

So onlining at runtime seems to work. Did you verify that tasks get run on the 2nd cpu after you online it? Any other strange messages in dmesg?

Quoted 1 line

I can't disable it anymore. dmesg says "CPU 1 refused to die!".

But offlining doesn't.

Can you online and offline cpus if you boot without maxcpus=1?

#2 lore raw
Quoted 7 lines · On 23-May-2006 Nathan Lynch wrote:
Quoted 3 lines · Giuliano Pochini

I booted with maxcpus=1, then I enabled the 2nd cpu with echo 1 > /sys/devices/system/cpu/cpu1/online

So onlining at runtime seems to work. Did you verify that tasks get run on the 2nd cpu after you online it?

Yes, I did, and the difference in speed is pretty obvious.

Quoted 1 line

Any other strange messages in dmesg?

Nothing unusual.

Quoted 1 line

Can you online and offline cpus if you boot without maxcpus=1?

It behaves exactly the same. I can't say exactly when it stopped working. 2.6.14 worked fine.

--
Giuliano.