Debian – Rolling back Intel-microcode updates and computer speed

cpudebianfirmwareintel

I assume that Debian package intel-microcode packages gradually correct the various spectre and meltdown issues. From what I understand about these problems, the only way to correct them on existing processors is to disable the speculative execution (or what it is called) and consequently to reduce performance (it is not clear to me in percentages how big, but I read some speculation that it car reach several percent even more than 10%)

Is there any way to bring those updates to the cpu firmware back if I do not care about spectre or meltdown issues (and I frankly do not on certain computers that are dedicated only to calculations and the only way the internet is used there is to install and update packages) to maximize the performance?

Best Answer

If you solely get your microcode from intel-microcode, uninstalling it will get rid of the low-level Spectre patches. However, note that this won't prevent firmware (EFI or BIOS) from loading its own microcode updates before the OS boots.

To check if Spectre patches are enabled, you can observe the contents of the files in /sys/devices/system/cpu/vulnerabilities to see what the kernel thinks. There is also a third-party script that provides detailed information: https://github.com/speed47/spectre-meltdown-checker

Also consider adding spectre_v2=off to the kernel command line.


Do consider running benchmarks to confirm perceived changes in system performance. If the impact of the microcode patches turn out to be negligible, it won't hurt to leave them.

Related Question