In this tip we will see how to turn off a CPU core under Ubuntu/Debian. This tip is very useful for users of laptops and netbooks because disabling a CPU core will help you gain more minutes by extending your battery life.
This tip is for systems with multi-core processors. To check information about your CPU, run this command from the Terminal:
To disable a CPU core, run now this command:
echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online
To enable it, use this command:
echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online