Performance regression, with recent apps frequently being killed and causing reboots
<!-- INSTRUCTIONS What not to report - Bugs in unofficial builds or anything not downloaded from our official portal - Missing Builds - Problems with the website - Asking for device support - Feature requests If you need help please see https://www.lineageos.org/community/ Anything between <!- - and - -> won't be shown when your issue is created. --> ## Expected Behavior <!--- Tell us what should happen --> On earlier major versions, when you switched away from an app (leaving it open) for about a minute and then returned, it used to restore itself much faster, without any loading screen. ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> After upgrading to v23, apps appear to go through a lengthy reload when switching away for a minute and then coming back to them. They often display a loading screen and appear to re-render the UI, like a webpage being reloaded. What's worse: some apps lose their state. For example, both my password manager (Password Store) and my TOTP app (Aegis) have a grace period through which they remember the decryption password so you don't have to type it again while the screen is unlocked. What often happens is that I open the password manager, copy some credential, switch to another app for less than a minute, and when I come back to copy another credential, the app goes through a loading screen and I have to type the password again. I'm including a [link to the logcat](https://drive.google.com/file/d/18LPNRX6C3i48dvyjoiiBAujBC2zTulSi/view?usp=sharing) and a screen recording demonstrating the problem. ![screen-20260213-124505-1770997448697](/uploads/53473b8a04cd187824e0b1ac0e41d5b2/screen-20260213-124505-1770997448697.mp4){width=270 height=600} The logcat contains more than a few LMK/OOM kill records with the same `reason`: "low watermark is breached". ``` 02-13 12:45:23.799 827 827 I lowmemorykiller: Kill 'com.linkedin.android' (6144), uid 10228, oom_score_adj 915 to free 308288kB rss, 89200kB swap; reason: low watermark is breached 02-13 12:45:22.748 0 0 I oom_reaper: reaped process 6144 (inkedin.android), now anon-rss:0kB, file-rss:3700kB, shmem-rss:720kB ``` ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Open two or three apps, and switch to one of them. 2. Stay on that app for a while (from 30 seconds to 1 minute) and keep the screen from locking — by interacting with it. 3. Switch back to any of the other apps you've opened, and watch how they're restored. Then repeat the same instructions, but skip step 2 — don't wait. Apps should be restored quickly, without reloading or losing state. I've made a screen recording of the expected behavior: ![screen-20260213-144131-1771004463096](/uploads/1808b23c4650461b72f314941486e98c/screen-20260213-144131-1771004463096.mp4){width=270 height=600} /device devon (found at https://wiki.lineageos.org/devices/devon/) /version 23.2-20260523-NIGHTLY-devon /date Sat May 23 03:00:02 UTC 2026 /kernel 4.19.325-cip132-st16-perf-ga611b86ed67b (`#1 Sun Feb 8 16:46:48 UTC 2026`) /baseband HAK11_15.154.01.90R /mods F-Droid (not a system app) and microG (from their F-Droid repository; also not a system app); It happens with MindTheGapps too. <!-- Replace the following line with "I have read the directions" --> I have read the directions.
issue