Monday, April 15, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 10143  / 1 Year ago, sat, november 19, 2022, 12:52:39

Is it possible to disable a CPU, not a core? I want to do a test to verify if the performance could make a big difference or not.



I'm using Ubuntu 10.10.


More From » cpu

 Answers
4

Besides doing this in your BIOS grub has an option called maxcpus.



You can edit this option in when selecting your grub boot option by adding maxcpus=1 to the parameters. Random grub picture:



enter image description here



Choose 'e' and you get to a command line where you can add options.



You can also create permanent boot option in grub by making a copy of your current boot option and add maxcpus=1 to the boot parameters. You can name this 'Ubuntu, kernel 2.5.12-9-386 (1 cpu)' and have it amongst the other boot options like the picture shows.



You can verify running on 1 cpu by issuing:



cat /proc/cpuinfo | grep processor this should show something like this:




processor : 0
processor : 1


And the 2nd line should disappear after booting with 1 CPU.


[#44900] Sunday, November 20, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
trousransla

Total Points: 285
Total Questions: 112
Total Answers: 113

Location: Spain
Member since Thu, Dec 23, 2021
2 Years ago
;