Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to find the whether it dual core, or two physical cpu or simply HT case in my cpu. Here is the output from /proc/cpuinfo:
---------------------------
processor : 0
vendor_id : GenuineIntel
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 7
cpu MHz : 2399.778
cache size : 512 KB
physical id : 0
siblings : 1
fdiv_bug : no
................
processor : 1
vendor_id : GenuineIntel
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 7
cpu MHz : 2399.778
cache size : 512 KB
physical id : 0
siblings : 1
fdiv_bug : no
---------------------------
There is no number of core mentioned.
Which case is this dual core, or two physical cpu, or HT? How do I know that (let us say the /proc/cpuinfo output is different)?
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 7
cpu MHz : 2793.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
...
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 7
cpu MHz : 2793.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
...
i'd guess your looking at either dual-socket or single-socket w/HT.
without more info, you could try looking at 'dmidecode' output to see.
look for the number of sockets available/populated
/proc/cpuinfo shows you a CPU for each core (starting at 0)
dmidecode will show you tons of information and will show you each CPU as CPU1, CPU2 etc...
So on my dual quad-core system /proc/cpuinfo shows 8 cores (CPUs 0 through 7) and dmidecode shows only 2 CPUs (CPU1 and CPU2). That lets me know I have two cpus with four cores each.
Generally, with a dual-core processor you see "core-id" and "cpu cores" fields in /proc/cpuinfo. With a hyperthreaded CPU, you'll see the "ht" flag. If you don't have either, I'd say you have two CPUs.
Generally, with a dual-core processor you see "core-id" and "cpu cores" fields in /proc/cpuinfo.
Even without dual-core, I usually see "core-id", it's just the same value for logical processors split by hyperthreading.
Since I don't know why the OP doesn't have core-id listed, I can't conclude that means single core. Maybe the kernel is older and puts less info in /proc/cpuinfo
Quote:
With a hyperthreaded CPU, you'll see the "ht" flag.
True and we don't know whether the OP has "ht" in his flags list. But probably "ht" is there and that wouldn't tell us much. I think ht can be there when the CPU doesn't actually support hyperthreading (I don't know why that happens, but I've seen it). I know ht can be there when the CPU supports hyperthreading but the BIOS has disabled it.
So if ht is not there, this must be dual-core, but if ht is there, this might be hyperthreading, but still might be dual core.
Quote:
If you don't have either, I'd say you have two CPUs.
We can clearly rule out two physical CPUs. From the info in the first post, it is probably hyperthreading, maybe dual-core, certainly not two physical CPUs.
You sure have weird output from /proc/cpuinfo
How obsolete is your kernel?
Quote:
Originally Posted by manojg
processor : 1
physical id : 3
siblings : 2
physical id 3 should mean this logical processor is in a different physical CPU from the one identified as physical id 0. The "3" itself has little meaning. Only the fact that it is different from the "0" has real meaning.
The siblings 2 should mean you have two logical processors in the same physical CPU. But you seem to be saying there are only two logical processors total and they are in different physical CPUs. Siblings does not distinguish between cores and hyperthreading. I thought for hyperthreading it required hyperthreading enabled. But maybe it also includes hyperthreading disabled so it all means you have two physical CPUs each of which could be two logical CPUs if you enabled hyperthreading, but currently you have disabled hyperthreading.
But maybe it all just means you have an obsolete kernel that puts incorrect information in /proc/cpuinfo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.