Solved

Linux (red hat) and cres and threads

Posted on 2014-11-14
5
200 Views
Last Modified: 2014-11-15
I have a machine with Red hat 6.5

How do I verify it is yper threaded

Thanks
0
Comment
Question by:Anthony Lucia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 40443279
try this

egrep 'siblings|cpu cores' /proc/cpuinfo | head -2

if siblings is larger than cpu cores, then hyper threading is enabled
0
 

Author Comment

by:Anthony Lucia
ID: 40443332
I just ran the command and got the following

egrep 'siblings|cpu cores' /proc/cpuinfo | head -2
siblings        : 16
cpu cores       : 8

Open in new window


The above command suggest that I have 8 cores, HT

However, my /proc/cpuinfo includes the following at the end of the file

processor       : 31
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
stepping        : 7
cpu MHz         : 2900.165
cache size      : 20480 KB

Open in new window


This suggests I have 16 cores, HT

Which is it?

Thanks
0
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 40443348
the E5-2690 is an 8 core processor
the fact that the last entry of cpuinfo shows CPU 31 tells me you have 2 sockets with hyper threading enabled
if hyper threading was off cpuinfo would show only 15 (counting starts at 0, not 1)
0
 

Author Comment

by:Anthony Lucia
ID: 40443814
So if I get you right, I have two sockets, each with 8 cores, with HT

Therefore I have 16 cores total, and 32 threads of execution because HT is enabled

Is this correct?
0
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 40443945
correct...it will look like 32 logical processors (0-31) in linux
turn off HT and you will have 16 (0-15)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix process listing into CSV format 3 54
CLI command keep running after close 7 56
SSH in linux 9 72
Windows 10 linux VM 22 50
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question