feat: adopt performance tweaks from cachyos.
This commit is contained in:
parent
aca1c88f53
commit
77b7e90166
3 changed files with 26 additions and 1 deletions
|
|
@ -9,7 +9,16 @@
|
|||
|
||||
config = lib.mkIf config.crony.boot.enable {
|
||||
boot.kernel.sysctl = {
|
||||
"vm.swappiness" = 10;
|
||||
# Cachy os adopted values
|
||||
"vm.swappiness" = 100;
|
||||
"vm.vfs_cache_pressure" = 50;
|
||||
"vm.dirty_bytes" = 268435456;
|
||||
"vm.page-cluster" = 1;
|
||||
"vm.dirty_background_bytes" = 67108864;
|
||||
"vm.dirty_writeback_centisecs" = 1500;
|
||||
"net.core.netdev_max_backlog" = 4096;
|
||||
"fs.file-max" = 2097152;
|
||||
# Disable watchdog
|
||||
"kernel.nmi_watchdog" = 0;
|
||||
};
|
||||
boot.kernelParams = ["quiet"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue