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:
Donovan Glover 2024-08-03 12:46:41 -04:00
parent 95f52d6e39
commit 19ceda95a8
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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;