Author Topic: Unpredictable System Behavior In Some Intel Processors  (Read 2962 times)

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 477
  • Karma: 97
  • Caveman
    • View Profile
  • Peppermint version(s): Peppermint Ten
Unpredictable System Behavior In Some Intel Processors
« on: August 10, 2017, 04:18:51 pm »
I've come across this article about dodgy i7's, especially Skylake & Kaby Lake: https://itsfoss.com/debian-bug-intel-processor/

Code: [Select]
cavy@tower:~$ grep name /proc/cpuinfo | sort -u
model name : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
cavy@tower:~$ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && \ echo "Hyper-threading is supported"
bash:  echo: command not found
cavy@tower:~$ grep -E 'model|stepping' /proc/cpuinfo | sort -u
model : 94
model name : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
stepping : 3
cavy@tower:~$

It would seem as I have the 94 with stepping 3, I'm relatively safe.....?   :o  Didn't know it was an issue.    ::) 

Otherwise it is advisable to disable hyper-threading....!  See article.   ;)
“We know what we are, but not what we may be.”

Various machines to sample the delights of Linux

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #1 on: August 10, 2017, 05:04:27 pm »
This command;
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && \ echo "Hyper-threading is supported"if written on a single line does not require the "\" escape character .. so should read:
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo "Hyper-threading is supported"or even better might be:
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo -e "\nHyper-threading IS supported" || echo -e "\nHyper-threading is NOT supported"which will also return "Hyper-theading is NOT supported" if the "ht" flag is not found rather than just dumping you with no output.



In bash the "\" escape character is generally used so a single command can be written across 2 (or more) lines in a shell script (to tidy up long commands so they don't scroll across lines in a text editor when being read by a human) .. as in:
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && \
 echo "Hyper-threading is supported"
or
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && \
 echo -e "\nHyper-threading IS supported" || \
  echo -e "\nHyper-threading is NOT supported"
where it would still be interpreted as a single command rather than 2 (or more) separate commands.
« Last Edit: August 10, 2017, 05:37:05 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5902
  • Karma: 1160
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #2 on: August 10, 2017, 06:14:55 pm »
Sometimes it pays to stay behind the curve.  Here's my 'Ivy Bridge' lappy (running Ubu on top of '10' right now)

Code: [Select]
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\VinDSL> ubuntu
VinDSL@DESKTOP-CM5NOMV:~$ grep name /proc/cpuinfo | sort -u
model name      :        Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz
VinDSL@DESKTOP-CM5NOMV:~$ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo -e "\nHyper-threading IS supported" || echo -e "\nHyper-threading is NOT supported"
Hyper-threading IS supported
VinDSL@DESKTOP-CM5NOMV:~$ grep -E 'model|stepping' /proc/cpuinfo | sort -u
model           : 58
model name      :        Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz
stepping        : 9
VinDSL@DESKTOP-CM5NOMV:~$ exit
logout
PS C:\Users\VinDSL>

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #3 on: August 10, 2017, 06:35:29 pm »
AFAIK ALL i7's supported hyperthreading .. but then the article isn't just about i7's
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #4 on: August 10, 2017, 10:51:33 pm »
Code: [Select]
zebedee@i7-peppermint ~ $ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && \
>  echo -e "\nHyper-threading IS supported" || \
>   echo -e "\nHyper-threading is NOT supported"

Hyper-threading IS supported
zebedee@i7-peppermint ~ $ grep -E 'model|stepping' /proc/cpuinfo | sort -u
model : 94
model name : Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
stepping : 3
zebedee@i7-peppermint ~ $

It would appear I am safe too - altho I also have the intel-microcode installed as it always appears in the driver manager for me, so gets clicked.

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline pin

  • Veteran
  • ****
  • Posts: 1838
  • Karma: 280
    • View Profile
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #5 on: August 11, 2017, 12:49:24 am »
Hmm, I have the following
Code: [Select]
pedro@pedro-X540LA ~ $ grep name /proc/cpuinfo | sort -u
model name : Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
pedro@pedro-X540LA ~ $ grep -E 'model|stepping' /proc/cpuinfo | sort -u
model : 61
model name : Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
stepping : 4
pedro@pedro-X540LA ~ $ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo -e "\nHyper-threading IS supported" || echo -e "\nHyper-threading is NOT supported"

Hyper-threading IS supported

Any advice?! Should I disable hyper-threading and if so, how?
Thanks!
« Last Edit: August 11, 2017, 12:51:30 am by pin »

Offline Timo

  • Member
  • ***
  • Posts: 163
  • Karma: 37
  • Open Source is more than the sum of its bytes
    • View Profile
  • Peppermint version(s): PM7 Respin (64bit) & PM8 (64bit)
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #6 on: August 11, 2017, 01:10:30 am »
In the CPU settings of your bios.

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #7 on: August 11, 2017, 01:27:25 am »
Hmm, I have the following
Code: [Select]
pedro@pedro-X540LA ~ $ grep name /proc/cpuinfo | sort -u
model name : Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
pedro@pedro-X540LA ~ $ grep -E 'model|stepping' /proc/cpuinfo | sort -u
model : 61
model name : Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
stepping : 4
pedro@pedro-X540LA ~ $ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo -e "\nHyper-threading IS supported" || echo -e "\nHyper-threading is NOT supported"

Hyper-threading IS supported

Any advice?! Should I disable hyper-threading and if so, how?
Thanks!

Hi Pin,

Has your system been playing up - doing weird things ?

No.  Don't worry then
Yes.  Either disable Hyper-Threading in your Bios/UEFI settings - all systems are different and or install the intel-microcode from the driver manager.  My understanding is that fixes the bug.

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline pin

  • Veteran
  • ****
  • Posts: 1838
  • Karma: 280
    • View Profile
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #8 on: August 11, 2017, 01:32:30 am »
Cheers Timo,

But, I went through the original Warning letter from the Debian team that links to Intel, here: https://lists.debian.org/debian-devel/2017/06/msg00308.html

My CPU Intel(R) Core(TM) i3-5005U is not on that list, so even if it supports hyper-threading it is not one of the affected models.  :D

Regards

EDIT: Thanks zeb! But nothing to worry about (see above, we did post almost at the same time and I missed your post). My system is just fine and my CPU should not be in danger.
Cheers!

EDIT2: I should also add... Cheers cavy for bringing this up  :)
« Last Edit: August 11, 2017, 01:46:18 am by pin »

Offline pin

  • Veteran
  • ****
  • Posts: 1838
  • Karma: 280
    • View Profile
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #9 on: August 11, 2017, 02:04:58 am »
Hi again!

It seems that nobody should be in trouble anymore. Intel has released the needed microcode on July the 7, see:
https://downloadcenter.intel.com/download/26925/Linux-Processor-Microcode-Data-File

 8)

Maybe someone that has an affected CPU and goes through the installation could provide a simple walk-through afterwards for the less experienced users to follow. Probably something like...

Code: [Select]
tar xvzf microcode-20170707.tgz
./configure
make
sudo make install
??
« Last Edit: August 11, 2017, 02:24:37 am by pin »

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5902
  • Karma: 1160
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #10 on: August 11, 2017, 04:21:54 am »
Any advice?! Should I disable hyper-threading and if so, how?

I've been running HT since 2004, 32-bit and 64-bit.  Leave it enabled.

Also, if you're running a hot chip:  https://goo.gl/2bmWkv  I've run 4 GHz on air, with this stuff   ;)

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 477
  • Karma: 97
  • Caveman
    • View Profile
  • Peppermint version(s): Peppermint Ten
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #11 on: August 11, 2017, 04:29:41 am »
This command;
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && \ echo "Hyper-threading is supported"if written on a single line does not require the "\" escape character .. so should read:
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo "Hyper-threading is supported"or even better might be:
Code: [Select]
grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo -e "\nHyper-threading IS supported" || echo -e "\nHyper-threading is NOT supported"which will also return "Hyper-theading is NOT supported" if the "ht" flag is not found rather than just dumping you with no output.

I installed Intel Microcode via terminal, last night, and checked Synaptic, it matches the latest Intel update (3.20170707.1) on their web-page.

Just run these commands:
Code: [Select]
cavy@tower:~$ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo -e "\nHyper-threading IS supported" || echo -e "\nHyper-threading is NOT supported"

Hyper-threading IS supported
cavy@tower:~$
cavy@tower:~$
cavy@tower:~$ grep -q '^flags.*[[:space:]]ht[[:space:]]' /proc/cpuinfo && echo "Hyper-threading is supported"
Hyper-threading is supported

HUH..!    ???   

Would it be prudent to disable hyper-threading   ;)  Or does the Intel update, I've installed, resolve this issue...?


“We know what we are, but not what we may be.”

Various machines to sample the delights of Linux

Offline Timo

  • Member
  • ***
  • Posts: 163
  • Karma: 37
  • Open Source is more than the sum of its bytes
    • View Profile
  • Peppermint version(s): PM7 Respin (64bit) & PM8 (64bit)
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #12 on: August 11, 2017, 06:15:56 am »
I've been running HT since 2004, 32-bit and 64-bit.  Leave it enabled.
Also, if you're running a hot chip:  https://goo.gl/2bmWkv  I've run 4 GHz on air, with this stuff   ;)

Well if you need single core performance you should disable it, HT is only useful if you can use the extra threads.

The AMD FX-6300 in my PC is running on 4.8GHz on air, with liquid metal instead of thermal paste and a sanded heatspreader 8). But that's a different topic...

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #13 on: August 11, 2017, 06:20:58 am »
Unless you are experiencing problems RIGHT NOW, just wait, Ubuntu have the latest intel-microcode package in the "proposed" repo now, and it'll no doubt be moved to the default repos (and come through as an automagic update) once it's fully tested.

If on the other hand you're experiencing problems RIGHT NOW (or are the overly paranoid type that prefers installing software that's not fully tested yet, for a problem you probably don't have or won't experience)...

Ubuntu host a pool of intel-microcode packages here;
http://ftp.ubuntu.com/ubuntu/ubuntu/pool/restricted/i/intel-microcode/

So if you're running Peppermint 7 or 8 (which are based on 16.04) and want to apply the latest microcode (as of todays date - 11 Aug 2017))....

Download ONE of these packages (which are the same ones in the proposed repo) depending on whether you're running 64bit or 32bit Peppermint:-

For 64bit Peppermint 7 and 8
http://ftp.ubuntu.com/ubuntu/ubuntu/pool/restricted/i/intel-microcode/intel-microcode_3.20170707.1~ubuntu16.04.0_amd64.deb

For 32bit Peppermint 7 and 8
http://ftp.ubuntu.com/ubuntu/ubuntu/pool/restricted/i/intel-microcode/intel-microcode_3.20170707.1~ubuntu16.04.0_i386.deb

And double-click it to install.
« Last Edit: August 11, 2017, 06:31:07 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 477
  • Karma: 97
  • Caveman
    • View Profile
  • Peppermint version(s): Peppermint Ten
Re: Unpredictable System Behavior In Some Intel Processors
« Reply #14 on: August 11, 2017, 07:42:51 am »
(or are the overly paranoid type that prefers installing software that's not fully tested yet, for a problem you probably don't have or won't experience)...

Just confused, every time I think, I have a grasp on a subject, I find it's just a tiny piece of an enormous iceberg, lol   ;)

PMOS 8 is on my Haswell  i7 computer, all good there...  :D  whereas (I removed PMOS 7 last week and) currently have Debian on the Skylake i7 machine.   ;)

I came across the Intel bug article whilst I was looking how to install rtl8812AU wifi driver, had to clone via git hub, another task I've had issues with in the past. Now mastered (err....managed...with detours) by myself.    :D



« Last Edit: August 11, 2017, 07:44:27 am by cavy »
“We know what we are, but not what we may be.”

Various machines to sample the delights of Linux