mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 17:28:49 +02:00
phone: Limit dirty_ratio / dirty_background_ratio
Been running this for a few days now and it seems to make the phone significantly slower under load but reduces the probability of hanging and crashing by quite a bit. Plan to try this later with maximum CPU frequency to see if high CPU frequency still crashes the PinePhone.
This commit is contained in:
parent
95f52d6e39
commit
19ceda95a8
@ -193,6 +193,11 @@ in
|
|||||||
|
|
||||||
binfmt.emulatedSystems = mkForce [ ];
|
binfmt.emulatedSystems = mkForce [ ];
|
||||||
loader.systemd-boot.enable = mkIf (pkgs.system == "aarch64-linux") (mkForce false);
|
loader.systemd-boot.enable = mkIf (pkgs.system == "aarch64-linux") (mkForce false);
|
||||||
|
|
||||||
|
kernel.sysctl = {
|
||||||
|
"vm.dirty_background_ratio" = 5;
|
||||||
|
"vm.dirty_ratio" = 10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
documentation.man.generateCaches = false;
|
documentation.man.generateCaches = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user