- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- clarification needed on command cat /proc/cpuinfo ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2013 07:44 PM
04-30-2013 07:44 PM
clarification needed on command cat /proc/cpuinfo on linux
using an proliant server 360G5 , when i physicaly cheked i can able to see only one processor .
Bur i am using an command cat /proc/cpuinfo showing as processor0 and processor 1
basically i am using an dual core processor in my server .
could you clarify my doubts whether i am having an single processor or two processor ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2013 12:06 AM
05-02-2013 12:06 AM
Re: clarification needed on command cat /proc/cpuinfo on linux
It might be because of a dual-core processor, or Hyper-Threading.
Hyper-Threading is also indicated with a "ht" in the "flags" field in /proc/cpuinfo.
Depending on your Linux kernel version, the /proc/cpuinfo should contain other fields of information that might be helpful in understanding your configuration.
- physical id: if both processors have the same physical ID, then both processors are within the same physical package, i.e. multi-core and/or hyper-threading CPU.
- siblings: the number of independently running processing threads the physical package contains. If hyper-threading is enabled, each core will have two threads, which can be somewhat independent on each other (not completely independent, though) and so in some scheduling calculations it's more appropriate to count them as two units. This number is essentially (number of cores * number of threads)
- core id: the ID number of the CPU core within the physical package. If you have two processors with the same physical ID but different core IDs, you have one dual-core processor. If both physical ID and core ID are the same in two processors, it is just Hyper-Threading within a single core.
- cpu cores: the number of physical cores the physical package contains.
So, if your /proc/cpuinfo says:
processor : 0 [...] physical id : 0 siblings : 2 core id : 0 cpu cores : 1 [...] processor : 1 [...] physical id : 0 siblings : 2 core id : 0 cpu cores : 1
...you have a single-core processor with Hyper-Threading.
On the other hand, a dual-core CPU without Hyper-Threading would look like this:
processor : 0 [...] physical id : 0 siblings : 2 core id : 0 cpu cores : 2 [...] processor : 1 physical id : 0 siblings : 2 core id : 1 cpu cores : 2 [...]
A dual-core processor with Hyper-Threading enabled would appear as 4 processor entries in /proc/cpuinfo (2 cores * 2 threads per core).
Two completely separate single-core, non-Hyper-Threading processors would appear like this:
processor : 0 [...] physical id : 0 siblings : 1 core id : 0 cpu cores : 1 [...] processor : 1 physical id : 1 siblings : 1 core id : 0 cpu cores : 1 [...]