sayuri: Add specialisation that disables mitigations

x264 encodes over 2 times faster in one example with mitigations
disabled.
This commit is contained in:
Simon Bruder 2021-06-09 15:22:17 +02:00
parent a6ddd29a1b
commit 621d209680
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ imports = [
@ -44,5 +44,23 @@
user = "sbruder"; user = "sbruder";
}; };
}; };
intel-sucks.configuration = {
# https://make-linux-fast-again.com/
boot.kernelParams = [
"l1tf=off"
"mds=off"
"mitigations=off"
"no_stf_barrier"
"noibpb"
"noibrs"
"nopti"
"nospec_store_bypass_disable"
"nospectre_v1"
"nospectre_v2"
"tsx=on"
"tsx_async_abort=off"
];
sbruder.gui.enable = lib.mkForce false;
};
}; };
} }