I was tired of the 8GB iQOO Neo 10R (Android 16, ro.vivo.os.name=vos, ro.vivo.os.version=7.0 ) I own killing YouTube or Firefox whenever I toggled between only two apps. I grabbed dumpsys meminfo, /proc/meminfo, dumpsys activity oom, and logcat -b events on ADB to see what's really happening behind the scenes.
The short answer for why these two heavy apps can't coexist:
Practically zero cache spare (~524MB): Out of 7.13GB usable RAM, base apps+services are taking ~5.66GB pss, and the kernel has taken ~1.88GB (plus ~930MB unaccounted), leaving only about ~75MB truly free, and ~524MB cached pss. Because YouTube or Firefox easily occupy 250-500MB, opening the second heavy app immediately hogs the entire cache.
The aggressive lmkd killed heavy app first: from logcat am_kill is killing PREVIOUS_APP_ADJ (oom_adj 720-746) for low mem. Because ro. Lmk. Kill_heaviest_task=true is on together with PSI based killing (thrashing_limit_critical=300), lmkd kills the heavy app just used in particular.
Heavy vivo background bloat locked at oom_adj = -800: System services such as com. Vivo. Sps, com. Vivo. Abe, com. Vivo. Upslide, com. Vivo. Ai.aie, com. Vivo. Gamecube, com. Vivo. Globalsearch reside at PERSISTENT_PROC_ADJ (-800) together with a ~531 MB launcher (launcher3), rendering them untouchable to lmkd.
High ZRAM & App Clone services: ZRAM size of 8 GB (4.25 GB of swap compressed to 1.45 GB of RAM) and this causes memory pressure, and thrashing, on app switches. Also having App Clone (user 999) enabled, keeps a second com. Google. Android. Gms (~81 MB PSS) running permanently.
What helped so far:
- Disable extended RAM (which will stop ZRAM compression thrashing causing PSI kills).
- Disable App Clone (user 999) if not using it.
- Locking 12 main apps in Recents so sps/pem won't immediately deprioritize them.
- Debloat/restrict unnecessary vivo background packages (globalsearch gamewatch cota nps etc).
Anyone else running 8 GB on iQOO/vivo seeing am_kill like this? Interested in what lmkd/device_config lists have helped the most without killing notifications or the useful system behaviours.
If anyone knows how to fix these issues or has ADB debloat / device_config tweaks that actually work without breaking notifications, a reply would be really appreciated!