From 621d209680f07c63e991c32c21aeb4a758755163 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 9 Jun 2021 15:22:17 +0200 Subject: [PATCH] sayuri: Add specialisation that disables mitigations x264 encodes over 2 times faster in one example with mitigations disabled. --- machines/sayuri/configuration.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/machines/sayuri/configuration.nix b/machines/sayuri/configuration.nix index 3279e74..47f69b4 100644 --- a/machines/sayuri/configuration.nix +++ b/machines/sayuri/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { imports = [ @@ -44,5 +44,23 @@ 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; + }; }; }