Testing some kernel and systemd config changes

This commit is contained in:
Emmet 2023-11-12 10:10:37 -06:00
parent c82069045e
commit 0b2241d439
6 changed files with 25 additions and 13 deletions

View file

@ -1,5 +1,9 @@
{ config, lib, pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.extraModulePackages = with config.boot.kernelPackages; [
zenpower
amdgpu-pro
];
}

View file

@ -17,7 +17,7 @@
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
@ -25,7 +25,7 @@
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 90;
CPU_MAX_PERF_ON_BAT = 80;
};
};

View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
services.journald.extraConfig = "SystemMaxUse=250M\nSystemMaxFiles=10";
services.journald.rateLimitBurst = 800;
services.journald.rateLimitInterval = "5s";
}