Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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
Distribution: Cinnamon Mint 17.3 and 18 at present.
/proc/cpuinfo is only showing a single core.
What do you get if you run
It should show your Linux kernel version and, if the kernel supports multiple processors/cores, "SMP" (Symetric Multi Processing) though I'd expect this to be default in most Distros these days. If you don't have an SMP kernel, you'll only use one CPU core.
Last edited by Soadyheid; 03-14-2011 at 10:21 AM.
Could you give me any guidance on how exactly I could do that.
I thought since you built the computer that you would have some idea of what parts went into making the computer. You could look at the box in which the motherboard was shipped from the factory or you could look at the user manual that came with the motherboard. If you don't have the box in which the motherboard was shipped from the factory and if you don't have the motherboard user guide then you can open the computer and find the manufacturer and model of the motherboard. Then look that up on the Internet to find the features. My thinking is that a Pentium D might fit the socket of a motherboard that is designed for single core Pentiums. I don't know if this is possible because I always checked these types of features before I paired a motherboard with a CPU. The motherboard documentation would say whether it supports dual core Pentium D CPUs.
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.
Last edited by stress_junkie; 03-15-2011 at 07:13 AM.
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.
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.