Can I disable one of the cores?

Alan Pope popey at ubuntu.com
Thu Nov 18 22:30:03 UTC 2010


On 18 November 2010 22:19, Kevin O'Gorman <kogorman at gmail.com> wrote:
> Can I get Ubuntu to run correctly with only one processor?  Is it good
> enough to recompile a non-SMP kernel?  Is there
> something I can do in the kernel parameters (simpler than a recompile)?
>

You can do it on the fly.

alan at wopr:~$ grep -ic "Model Name" /proc/cpuinfo
2

root at wopr:~# echo 0 > /sys/devices/system/cpu/cpu1/online
root at wopr:~#

alan at wopr:~$ grep -ic "Model Name" /proc/cpuinfo
1

root at wopr:~# echo 1 > /sys/devices/system/cpu/cpu1/online
root at wopr:~#

alan at wopr:~$ grep -ic "Model Name" /proc/cpuinfo
2

:)

Cheers,
Al.




More information about the ubuntu-users mailing list