Only one core of dual core processor are working
Hello everyone,
I recently read in a forum that by default the Linux kernel only activates one of two cores in a dual core processor. Searching online gave one option to find out and that was the mpstat command. I therefore ran the command and got the following output. $ mpstat -P ALL Linux 2.6.35-22-generic (inkit) Monday 14 March 2011 _i686_ (1 CPU) 05:15:24 IST CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 05:15:24 IST all 26.87 0.23 7.93 0.38 0.00 0.04 0.00 0.00 64.56 05:15:24 IST 0 26.87 0.23 7.93 0.38 0.00 0.04 0.00 0.00 64.56 As the result says, it shows only 1 cpu. I was wondering what I could do to activate both cores in my machine, and whether doing so was going to cause me any problems. I would be very grateful for any advise in this regard. |
What hardware are you using? (CPU brand and model)
Did you install Linux in a virtual machine or directly on the bare computer? |
Hi Stress junkit,
My computer is an assembled one, but I've posted the output for cat /proc/cpuinfo below. I run linux mint 10 that I have installed after removing windows XP. I've had this same computer for nearly 5 yrs and know that it is an intel dual core processor. I removed windows just a month back because I had a dual boot with linux for the past one year and never used windows. I have however checked under "my computer" and have seen it listed as a dual core in windows. inkit@inkit ~ $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Pentium(R) D CPU 2.66GHz stepping : 7 cpu MHz : 2660.653 cache size : 1024 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc up pebs bts pni dtes64 monitor ds_cpl tm2 cid cx16 xtpr lahf_lm bogomips : 5321.30 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual |
/proc/cpuinfo is only showing a single core.
What do you get if you run Code:
uname -a Play Bonny! :hattip: |
It says SMP kernel. In any case the version is 2.6.35-22 generic Ubuntu
|
I think I would check the motherboard settings just to see if it supports dual core CPUs.
|
Could you give me any guidance on how exactly I could do that.
|
"cat /proc/cmdline"
|
Quote:
The exact steps involved in checking the BIOS CMOS settings is something that you should know about if you build computers. Generally you press the delete key or the F2 key on the keyboard while the motherboard's splash image is showing when you first turn on the power. Details for your motherboard may differ. You should be able to find exact instructions in the documentation for your motherboard. If the motherboard documentation states that it is intended to work with Pentium D processors then I would look at the BIOS CMOS settings to see if there are features that can be enabled or disabled regarding multiple CPUs or something similar. It is possible that some feature may be listed under a similar name such as hyperthreading even though hyperthreading is different than multicore CPUs. |
Thanks for the detailed explaination stress_Junkit, I guess I wasn't clear in my post. What I had meant when I said that it was assembled is that it was not a branded one. In India very few of us actually build out own computers, we go to a dealer who sells computer parts and have him assemble it for us. That way we have a warranty for the entire computer, and if something conks off we just take the whole thing back to him. The only advantage of this is that you can pick and choose what you want, and you don't pay extra for the brand. That is what I did too.
I do know what the different parts of a computer are, but that's about the limit of my hardware knowledge. I'm actually quite a newbie myself, and although I've been using computers for more than 10 yrs now, it's only in the past year after I installed Linux that I started taking an interest in the internal working of my computer. Until then it was just an appliance to me. This is one of the main reasons for me to stick with Linux because I've learned more about my machine in the past one year than I did in my entire life before that. To come back to my problem my mother board is a mercury PI865D7 V2.0. I tried hunting around to see if this mother board will support a dual core, but could not find any answers. I don't know if I'm not using the right keywords, but that's my result. With regards to checking my bios settings, I know I should have done that first, but in the same forum where I read that linux was not supporting the second core, I read that enabling the second core caused all sorts of problems with the comp. Of course he solved it by disabling it once again, but I thought I'd ask before I tried something that could have consequences that I don't know anything about. I'm not worried much about tinkering around with software, I can always reinstall. I am afraid of screwing my system up permanently though, especially since I really have no issues with it at all as of now. It's just that I have a bee in my bonnet about this, and want to know, that's all. I really appreciate your help, and hope you'll squash this bee for me. |
Hi SygOO, I ran your command and got the following output.
inkit@inkit ~ $ cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=473195e1-c268-46c8-b1e4-cc17aa65aa0d ro quiet splash inkit@inkit ~ $ Donno what it means though. |
That's what gets passed to the kernel from the boot-loader - I wanted to see if you had any option that might limit the SMP capability. Nothing there of concern.
If Windows supports 2 processors, Linux should. Have a look at the dmesg for any messages of interest. |
Quote:
Code:
uname -a Play Bonny! :hattip: |
Quote:
Code:
$ cat /proc/cmdline Code:
$ uname -a |
Woah! Stress_Junkie!
Mine says Quote:
Code:
cat /proc/cpuinfo Quote:
Play Bonny! :hattip: |
All times are GMT -5. The time now is 12:18 AM. |