Permanent Android slowdown after 2-3 days of using

Search This thread

Explosator

Member
Jun 26, 2015
10
0
Hello all.
Have a Xiaomi Redmi Note 8 Pro on MIUI with root. Has Samsung Galaxy S7 on Android 8.0 before for many years.
On both phones I get permanent slowdown after 2-3 days using. First day of using (first 6-8 hours after each restart) all is fine. But after 1-2 days I became huge "swapping" of each app I use.
For example, I begin type a text in a web page (forum, etc.), switch to gallery for 1-2 seconds, return to browser and... a web page loads from the beginning, all my typed text loosed. Or loosed another text or state in another apps, taxi-app, calendar, etc. Apps restarts, nothing stays in memory for a long time, even for 2-3 s. Also there is a slowdown in apps starts - it open more slowly then in first day after phone restart. First 1 day - all fine or mostly fine, but after - awful. Something in memory, something in apps...don't know what is that. People, are you experienced the same issues? Need help to diagnose this.
Also I see that phone can be very fast from time to time, but after a 10 minutes of jet-speeds phone slows and never reached those speeds again.
What is this? Thanks for all answers.
 

xXx yYy

Senior Member
Feb 4, 2017
1,830
9
346
That's what ChatGPT answers:

1685762896723.png
 

Explosator

Member
Jun 26, 2015
10
0
I know about cache, unused software, lacks of a storage space. Many processes in a background - how many processes Android can hold without slowdown? 1 or 2? There is 6 GB RAM, 4 GB for user processes.

I see that 1,3 GB still free. But swapping begins anyway.
 

xXx yYy

Senior Member
Feb 4, 2017
1,830
9
346
Great you already know all what matters. :)

FYI:

Basically Android - what by nature is a multithreading OS - can run as many processes ( read: services and applications ) as RAM for them is available. The maximum amount of RAM ( read: heap size ) an application can make use of is defined in system file build.prop. In general, the maximum heap size for Android apps is 256MB on devices running Android 4.0 or later. However, some devices may have a lower maximum heap size due to hardware limitations. It's important to note that setting the heap size too high can cause performance issues and may even cause the app to crash.

The following list presents the different types of processes in order of importance ( the first process is most important and is killed last ):

  1. Foreground process
  2. Visible process
  3. Service process
  4. Background process
  5. Empty process
All Android applications will remain running and in memory until the system needs its resources for other applications.

Anyway:

1. Check the background process limit setting in developer settings
2. Run
Code:
su -c "dumpsys activity settings"
to get the values for

CUR_MAX_CACHED_PROCESSES
CUR_MAX_EMPTY_PROCESSES
CUR_TRIM_EMPTY_PROCESSES
CUR_TRIM_CACHED_PROCESSES
 
Last edited: