From 26e347f38ce422f7925e869a95ca15997e40ab04 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 19 May 2024 10:39:17 +0000 Subject: [PATCH] moby: ship with way higher CMA by default --- hosts/by-name/moby/kernel.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/by-name/moby/kernel.nix b/hosts/by-name/moby/kernel.nix index d99fba69..1b776612 100644 --- a/hosts/by-name/moby/kernel.nix +++ b/hosts/by-name/moby/kernel.nix @@ -78,8 +78,12 @@ in # # the default CMA seems to be 32M. # i was running fine with 256MB from 2022/07-ish through 2022/12-ish, but then the phone quit reliably coming back from sleep (phosh): maybe a memory leak? + # bumped to 512M on 2023/01 + # bumped to 1536M on 2024/05 # `cat /proc/meminfo` to see CmaTotal/CmaFree if interested in tuning this. - "cma=512M" + # kernel param mentioned here: + # i think cma mem isn't exclusive -- it can be used as ordinary `malloc`, still. i heard someone suggest the OS default should just be 50% memory to CMA. + "cma=1536M" # 2023/10/20: potential fix for the lima (GPU) timeout bugs: # - "lima.sched_timeout_ms=2000"