I am currently using a Pixel 4a 5G, and despite it being an overpowered phone, I am never able to run an app, attend to the whims of life, and resume from where I left off, without Low Memory Killer (LMK) maliciously dropping my private browsing session (and no, the fix is not to stop private browsing, there's a reason I do this, and it's not girlfriend/super-cookie/ISP related).
I have tried everything to get LMK to mind its own business, including rooting, Memory Locker, I have even attempted enabling swap (through Terminal Emulator/other apps, to no avail), etc. Short of just switching to iPhone (any tips here? Does IOS have an annoying LMK, or is it balanced?) I would greatly appreciate any tips that will lead me to disabling this bad behaviour, before I end up destroying my overpriced phone.
/sys/module/lowmemorykiller/parameters/minfree
which you can apparently tweak to fit your needs. You can set them like so:echo x1,x2,x3,x4,x5,x6 > /sys/module/lowmemorykiller/parameters/minfree
, where x is the threshold you want, divided by the page size (4). More details at https://www.droidviews.com/tweak-android-low-memory-killer-needs/ – Dev Funnie May 03 '22 at 15:56/sys/module/lowmemorykiller
.) – Fabian Röling Dec 20 '22 at 13:15