?
Solved

Linux (red hat) and cres and threads

Posted on 2014-11-14
5
Medium Priority
?
210 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 2000 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

771 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