Auto-fine the scheduler
This commit is contained in:
parent
86e362f14d
commit
c28b93d813
1 changed files with 13 additions and 2 deletions
|
@ -50,7 +50,6 @@
|
||||||
"page_alloc.shuffle=1"
|
"page_alloc.shuffle=1"
|
||||||
"pti=on"
|
"pti=on"
|
||||||
"vsyscall=none"
|
"vsyscall=none"
|
||||||
"debugfs=off"
|
|
||||||
"oops=panic"
|
"oops=panic"
|
||||||
"module.sig_enforce=1"
|
"module.sig_enforce=1"
|
||||||
"mce=0"
|
"mce=0"
|
||||||
|
@ -62,7 +61,7 @@
|
||||||
services.scx = {
|
services.scx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
scheduler = "scx_bpfland";
|
scheduler = "scx_bpfland";
|
||||||
extraArgs = ["-k" "-m all"];
|
extraArgs = ["-k"];
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
|
@ -71,6 +70,15 @@
|
||||||
scsiLinkPolicy = "max_performance";
|
scsiLinkPolicy = "max_performance";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.upower = {
|
||||||
|
enable = true;
|
||||||
|
usePercentageForPolicy = true;
|
||||||
|
percentageLow = 25;
|
||||||
|
percentageCritical = 5;
|
||||||
|
percentageAction = 3;
|
||||||
|
criticalPowerAction = "PowerOff";
|
||||||
|
};
|
||||||
|
|
||||||
boot.runSize = "100%";
|
boot.runSize = "100%";
|
||||||
boot.devSize = "100%";
|
boot.devSize = "100%";
|
||||||
boot.devShmSize = "100%";
|
boot.devShmSize = "100%";
|
||||||
|
@ -118,8 +126,11 @@
|
||||||
hardware.cpu.amd = {
|
hardware.cpu.amd = {
|
||||||
sev.enable = true;
|
sev.enable = true;
|
||||||
updateMicrocode = true;
|
updateMicrocode = true;
|
||||||
|
ryzen-smu.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.cpu.x86.msr.enable = true;
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot = {
|
boot.loader.systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue