1

Is there a way to know from the command line of a standard LINUX distro (or by installing some tool), whether hyperthreading is enabled in the BIOS of a given machine ?

Kevin Wilson
  • 111
  • 1
  • 3

1 Answers1

5

util-linux's lscpu shows whether hyper-threading is enabled (or anything similar):

$ lscpu
[...]
Thread(s) per core:    2
[...]

2 or more in the "Thread(s) per core" line means hyper-threading is enabled.

(You'll also see ht in the flags in /proc/cpuinfo, but that only means that the processor supports hyper-threading.)

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164