LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2018, 05:22 PM   #76
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,209

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705

Yes I have read this document while searching for microcode file format informations, scary stuff (especially the javascript code at Appendix)
 
Old 01-11-2018, 07:41 AM   #77
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 456

Rep: Reputation: 233Reputation: 233Reputation: 233
Worth reading Intel's official performance impact benchmarks after applying the "mitigation" on Win10 - not effectively describing what, but presumably firmware + SW patch:

https://newsroom.intel.com/editorial...lient-systems/
 
Old 01-11-2018, 08:20 AM   #78
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,344

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
Originally Posted by abga View Post
Worth reading Intel's official performance impact benchmarks after applying the "mitigation" on Win10 - not effectively describing what, but presumably firmware + SW patch:

https://newsroom.intel.com/editorial...lient-systems/
I call BS on this one.

They're referencing desktop PeeCee and Laptop Performance Hits.

What they skilfully neglect to say in that marketing piece it is MUCH Worse on Servers, even on Microsoft Servers.

One anecdote I can provide ...

We've been running a CentOS-Based Server Application on AWS for five years or so.

Before Amazon did their forced reboots last week, the load averages ran consistently less than 1.00 ...

After the AWS forced reboot, our load averages skyrocketed to between 7.00 and 9.00 and our Server App took a dump -- it could no longed accept Client Connections and all hell broke loose.

Amazon's advice: buy a bigger instance -- a pisser after running on that Server since 2013 !

So we spent the weekend scrambling to move our hand-rolled server-side application to 'a bigger instance'.

It runs fine now but it cost us the entire weekend to migrate and then to clean up the aftermath in the DataBase Tables.

Not to mention our AWS Monthly Fees will increase proportionally.

And then there are our Client Apps Servers ( Data Conversion && Transfer Boxen ) which took a 38% dive on our Intel NUC Model after applying Intel's BIOS Updates and the CentOS 6 Kernel Updates.

I've not measured the effects on our Zotac ZBOXen ... Still waiting for a BIOS Update there, but I don't expect any better results.

Anyhow, my $0.02 worth ... rant-mode off.

-- kjh
 
3 members found this post helpful.
Old 01-11-2018, 08:43 AM   #79
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 456

Rep: Reputation: 233Reputation: 233Reputation: 233
And if you consider that these are the "latest generation processors" and that, as reported my Redmond:
https://www.linuxquestions.org/quest...ml#post5804447
the performance impact on older "generations" - Haswell downwards will be higher, I'm afraid that Mr. Schneier was right:
"The security of pretty much every computer on the planet has just gotten a lot worse, and the only real solution -- which of course is not a solution -- is to throw them all away and buy new ones."
https://www.schneier.com/blog/archiv...and_mel_1.html

Double win for the big businesses Well, at least apparently:
https://www.theguardian.com/technolo...-bugs-computer
 
Old 01-11-2018, 10:07 AM   #80
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 Multilib
Posts: 527

Original Poster
Rep: Reputation: 133Reputation: 133
@abga and @Kjhambrick The information about performance after microcode AND kernel updates is more directly related to Greg K-H's thread on Meltdown, Spectre and other threats https://www.linuxquestions.org/quest...el-4175621133/. Please move the discussion on mitigation to that thread or the security thread. This thread is intended as a "howto" for microcode update and not intended to replace the security thread(s) or Greg K-H's thread.

Some may feel that readers should understand the performance impact of these latest microcode updates, OR the possibility that doing an update may actually be futile and simply getting a different processor is the only solution. However, there are some of us who wish to continue using our existing CPU's and want to know what is the proper procedure to be successful.

Thanks and Cheers

Last edited by bamunds; 01-11-2018 at 10:15 AM.
 
Old 01-11-2018, 03:32 PM   #81
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 456

Rep: Reputation: 233Reputation: 233Reputation: 233
@bamunds
My mistake in considering that some of you might care not only about the result, but also about its quality.
Please, do carry on and sorry for the interference.
 
Old 01-11-2018, 04:48 PM   #82
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 Multilib
Posts: 527

Original Poster
Rep: Reputation: 133Reputation: 133
@abga Thank you for understanding the intent of this thread. This will be marked SOLVED once I have captured the process for "Howto upgrade Intel microcode" with examples of what tools to use and how to measure success of the installation. That needs to include what errors one might get. Cheers.
 
Old 01-13-2018, 10:45 AM   #83
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers) / Ubuntu (workstations)
Posts: 42

Rep: Reputation: 7
Quote:
Originally Posted by keefaz View Post
Best way it to make ramfs image imho.
iucode_tool has to be installed from sbo / Slackbuilds

Then, infos from /proc/cpuinfo will give you the correct microcode filename (see awk code above)

Once you know the correct microcode file, the easiest way to make the ramfs image is:
Code:
iucode_tool --write-earlyfw=/boot/intel-ucode.cpio /path/to/microcode_file
If you have already an initrd you have to merge it with intel-ucode.cpio image
Code:
cd /boot
cat intel-ucode.cpio initrd.gz > initrd-merged.gz
Then replace initrd.gz with initrd-merged.gz in lilo.conf

Edit: Wow posted too late again :/
If I run
Code:
iucode_tool -S -l /tmp/microcode-20180108/intel-ucode/*
the result is
Quote:
iucode_tool: system has processor(s) with signature 0x000906e9
...
microcode bundle 70: /tmp/microcode-20180108/intel-ucode/06-9e-09
microcode bundle 71: /tmp/microcode-20180108/intel-ucode/06-9e-0a
microcode bundle 72: /tmp/microcode-20180108/intel-ucode/06-9e-0b
...
selected microcodes:
070/001: sig 0x000906e9, pf_mask 0x2a, 2018-01-04, rev 0x0080, size 98304
071/001: sig 0x000906ea, pf_mask 0x22, 2018-01-04, rev 0x0080, size 97280
072/001: sig 0x000906eb, pf_mask 0x02, 2018-01-04, rev 0x0080, size 98304
The result contains 3 files, only one is for my processor signature.
I should choose
Quote:
070/001: sig 0x000906e9, pf_mask 0x2a, 2018-01-04, rev 0x0080, size 98304
 
Old 01-14-2018, 06:54 PM   #84
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,209

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
Yes I would choose 06-9e-09 microcode file
Code:
cd /boot
iucode_tool --write-earlyfw=intel-ucode.cpio /tmp/microcode-20180108/intel-ucode/06-9e-09
 
Old 01-15-2018, 02:54 AM   #85
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers) / Ubuntu (workstations)
Posts: 42

Rep: Reputation: 7
OK is working!
Quote:
[ 0.000000] microcode: microcode updated early to revision 0x80, date = 2018-01-04
[ 3.736913] microcode: sig=0x906e9, pf=0x2, revision=0x80
[ 3.737751] microcode: Microcode Update Driver: v2.2.
 
Old 01-15-2018, 08:29 AM   #86
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Debian
Posts: 524

Rep: Reputation: 110Reputation: 110
Does anyone knows how to load microcode for AMD processors?
 
Old 01-15-2018, 11:13 AM   #87
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,234
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by ChrisAbela View Post
Does anyone knows how to load microcode for AMD processors?
Unlike Intel, AMD's microcode has a licence that allows it to be redistributed. So it comes with the Linux firmware blobs (in Slackware that's the kernel-firmware package) and is loaded automatically on boot. See your /lib/firmware/amd-ucode/ directory.

Last edited by 55020; 01-15-2018 at 11:14 AM.
 
2 members found this post helpful.
Old 01-15-2018, 11:24 AM   #88
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,453

Rep: Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986
Also, unlikely Intel, the AMD does NOT add or remove CPU features via microcode, then its microcode is safely to be loaded later, if the operating system survive until that, i.e. does not try to execute some faulty instruction or command.
 
1 members found this post helpful.
Old 01-15-2018, 11:57 AM   #89
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,209

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
Quote:
Originally Posted by Darth Vader View Post
Also, unlikely Intel, the AMD does NOT add or remove CPU features via microcode, then its microcode is safely to be loaded later, if the operating system survive until that, i.e. does not try to execute some faulty instruction or command.
What does AMD microcode do then?
 
Old 01-15-2018, 12:06 PM   #90
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,453

Rep: Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986
Quote:
Originally Posted by keefaz View Post
What does AMD microcode do then?
The AMD microcode just adjust the behavior of (already) existent features, with adding or removing no one, unlikely Intel.

Last edited by Darth Vader; 01-15-2018 at 12:08 PM.
 
1 members found this post helpful.
  


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
[SOLVED] Is it possible to update intel microcode using kernel-huge and grub2, without initrd? lagavulin16 Slackware 5 01-03-2018 09:27 AM
intel-microcode-20170707 kjhambrick Slackware 1 07-15-2017 08:04 AM
Lenovo Thinkpad x220 - Proprietary Driver for Microcode for Intel processor? wh33t Linux - Hardware 2 06-15-2016 11:41 AM
intel-microcode error Soapm Linux - Newbie 3 06-25-2015 01:37 AM
Intel IA32 CPU microcode...What is it Jester888 Linux - General 1 02-08-2007 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration