I want to make cpu0 offline. I have dual core laptop. I can make cpu1 offline ( using offline file ) but can't make cpu0 offline. How to do this ?


to enable a cpu0

you can use this

echo 1 | sudo tee /sys/devices/system/cpu/cpu0/online

and to disable

echo 0 | sudo tee /sys/devices/system/cpu/cpu0/online
  • As @AIYA noted above, this only works if CONFIG_BOOTPARAM_HOTPLUG_CPU0 is enabled in the kernel. – ckujau Nov 10 '19 at 23:18

I've also found, certain systems cannot disable CPU0. I think usually this happens because the interrupt line is wired to CPU0, so the APIC cannot signal CPU1 on up (turning off CPU0 would cut off all interrupts and the system would lock up.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.