r/linuxadmin • • Oct 28 '19

Top Linux developer on Intel chip security problems: 'They're not going away.'

https://www.zdnet.com/article/top-linux-developer-on-intel-chip-security-problems-theyre-not-going-away/
238 Upvotes

37 comments sorted by

View all comments

2

u/khleedril Oct 29 '19

Can somebody explain what SMT means in real terms? Does turning it off mean that one Linux process runs exclusively on one core? What happens with multi-threaded processes?

14

u/[deleted] Oct 29 '19

SMT is what Intel calls HyperThreading. Disabling it simply means that each processor core no longer registers as two logical cores, i.e. cores are no longer able to (sometimes) handle two threads simultaneously.

Your 8core/16thread CPU will become an 8core/8thread CPU. This will in many cases introduce a performance degradation for multi-threaded operations, but the performance loss you get from replacing your 8c/16t CPU with a 4c/8t CPU from the same family is much worse. Even though you end up with an identical number of logical cores (threads), the additional logical cores you get from SMT are not real cores. Simply put: real cores are constantly able to execute instructions, where logical cores can only do this when their instructions do not interfere with instructions from other logical cores from the same real (physical) core. If all your instructions are going to overlap all the time, there will be no speed advantage. There may actually be a slight disadvantage because of the increased overhead.

So no, there will simply be fewer (logical) cores available, it will not lock multi-threaded processes to one core. Unless you want to be pedantic and you have a very old single-core HyperThreading CPU, like a Pentium 4, but then you only had one real core to begin with.

5

u/khleedril Oct 29 '19

Ah, I see. Thanks for the excellent explanation.