minecraft: Fix ridiculous CPU usage

Tapes over https://bugs.mojang.com/browse/MC-183518, which schedules
things completely stupidly on Linux starting with 1.14.
This commit is contained in:
Tristan Daniël Maat 2021-08-25 19:45:15 +01:00
parent 64057828cb
commit 4fe3b8b22b
Signed by: tlater
GPG key ID: 49670FD774E43268
2 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,8 @@
trustedUsers = [ "@wheel" ]; trustedUsers = [ "@wheel" ];
}; };
boot.kernelParams = [ "highres=off" "nohz=off" ];
networking = { networking = {
hostName = "tlaternet"; hostName = "tlaternet";

View file

@ -90,6 +90,7 @@ in {
}; };
}; };
extraOptions = [ "--cpu-quota=90000" ];
autoStart = false; autoStart = false;
ports = [ "25565:25565" ]; ports = [ "25565:25565" ];
volumes = [ volumes = [