Re:A Look at the CPU Security Mitigation Costs Three Years A...
by coolspot on Wednesday January 06, 2021 @11:01PM
(#25667143)
On Linux kernel >=5.1.13 you can add mitigations=off kernel boot parameter to turn off all mitigations.
There are more granular parameters that are supported by all kernels implementing CPU mitigations: noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off
https://unix.stackexchange.com/questions/554908/disable-spec...
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by danielheath on Wednesday January 06, 2021 @11:23PM
(#25667258)
I have a test suite that went from 19 minutes to 8 with mitigations=off
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by bildung on Thursday January 07, 2021 @04:37AM
(#25669124)
which CPU?
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by danielheath on Thursday January 07, 2021 @07:21AM
(#25670195)
Threadripper, 12-core 2920X
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by BunsanSpace on Thursday January 07, 2021 @09:49AM
(#25671646)
I don't think so.
I do lots of compiling at work and our compiler hasn't changed in 5+ years.
pre spectre my 8700k could do 20k lines/sec. Post spectre with mitigation it's about 10k, with them disabled it's about 15k.
There's clearly been some under the hood changes to windows beyond these optional? changes.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by ncmncm on Thursday January 07, 2021 @11:28PM
(#25681514)
I am trying to understand this: you are compiling programs on Windows?
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by BunsanSpace on Friday January 08, 2021 @08:56AM
(#25684730)
Yes, our application compiles it's own sub applications. It is win32 software.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by dmead on Thursday January 07, 2021 @10:47AM
(#25672311)
did you do a bios update or something you forgot about?
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by BunsanSpace on Friday January 08, 2021 @08:56AM
(#25684726)
No bios update, but I wouldn't be surprised if windows shipped updated microcode or something.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by jmnicolas on Thursday January 07, 2021 @04:21AM
(#25669009)
It looks like it doesn't work on my PC: if I run it with elevated privileges and toggle off protections, they're back on when I restart the app.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by tantanel on Thursday January 07, 2021 @05:12AM
(#25669345)
You will need to restart your PC for the changes to take effect and show in the app.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by jmnicolas on Thursday January 07, 2021 @02:03PM
(#25675618)
Fwiw a reboot didn't change anything!
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by jmnicolas on Thursday January 07, 2021 @09:31AM
(#25671408)
Oh OK thanks.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by rizalp on Thursday January 07, 2021 @11:08AM
(#25672632)
Alternatively using registry edit: https://support.microsoft.com/en-us/help/4072698/windows-ser...
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by martinesko36 on Wednesday January 06, 2021 @10:36PM
(#25666993)
Does turning them off improve performance?
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by coolspot on Wednesday January 06, 2021 @11:01PM
(#25667147)
Yes, very significantly, especially on old CPUs that don’t have hardware mitigations.
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by wokkel on Thursday January 07, 2021 @05:11AM
(#25669335)
I've read the word "mitigation" so much (not only here, and not only you; so this comment is not directed at you personally) that I only hear doublespeak now: when people say mitigation I immediately think of a slab of concrete in the back of my car to compensate for not having any brakes installed. Please recognize for what it is: a design failure that is pampered upon. A mitigation is not a solution, it lessens the impact of the failure mode that was identified. Afaik, if the flushes and changes actually work, it is not a mitigation but a workaround: the failure mode cannot occur anymore. Mitigation sounds better than workaround though (and is probably the reason it was choosen).
Re:A Look at the CPU Security Mitigation Costs Three Years A...
by bawolff on Thursday January 07, 2021 @06:51AM
(#25669986)
Mitigation and work around mean the same thing.
[1] https://www.grc.com/inspectre.htm