LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-05-2019, 02:51 AM   #1
thrice
Member
 
Registered: Apr 2003
Distribution: Xubuntu
Posts: 113

Rep: Reputation: 15
Trouble enabling hyperthreading on i7 (enabled in BIOS)


Hi everyone,

I just installed a fresh copy Xubuntu 18.04 and I've noticed that hyperthreading is not getting enabled for some reason, and I'm not sure why. I have an Intel i7 6950X with 10 cores and HT support - here's a snippet of output from lscpu, which confirms only 1 thread per core:


Code:
$ lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              10
On-line CPU(s) list: 0-9
Thread(s) per core:  1
Core(s) per socket:  10
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               79
Model name:          Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz
HT support shows up as being supported, however:

Code:
$ sudo grep -o '^flags\b.*: .*\bht\b' /proc/cpuinfo | tail -1
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
I've checked my BIOS and hyperthreading is enabled, and there are no issues with hyperthreading in my Windows 10 install with the current BIOS settings.

I came across this thread on stackexchange, and one of the posts mentioned that it's possible to check if HT is enabled with "cat /sys/devices/system/cpu/smt/active", and switch it on and off with
"echo [on|off] > /sys/devices/system/cpu/smt/control". The result of the first command confirms that it's disabled, but the location /sys/devices/system/cpu/smt doesn't exist in my install. Any ideas?

Thanks in advance.
 
Old 06-05-2019, 04:26 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Quote:
Originally Posted by thrice View Post
The result of the first command confirms that it's disabled, but the location /sys/devices/system/cpu/smt doesn't exist in my install. Any ideas?
Yes. Create the file by using the suggested command.
 
Old 06-05-2019, 06:17 AM   #3
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
This may help explain: https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/L1TF
 
Old 06-05-2019, 02:58 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Interesting info dc.901

Seems that many places are suggesting that HT be disabled. Not sure if the distro and version went ahead and disabled by default but kind of looks like it.

Try some live boot of an older distro to double check. Even a Knoppix should show penguins at boot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to programatically determine if hyperthreading is enabled in linux kernel shawshank_blr Linux - Kernel 2 07-03-2009 07:14 AM
Howto : Enabling Hyperthreading ms linuz Debian 6 10-13-2004 09:33 PM
old BIOS (1992) won't detect my cdrom drive; BIOS says: neither IDE prots enabled carbono Linux - Hardware 5 05-18-2004 11:07 AM
How 2 see 2 CPU when P4 HyperThreading enabled? actteoh Linux - Hardware 5 05-07-2004 10:21 AM
P4 with Hyperthreading: Should the SMP support be enabled at kernel level? davidas Linux - Software 2 04-05-2004 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration