RAM Consumption on Android 9 Pie - Android Design Resources

Hello! Good night everybody.
I am Brazilian, so sorry for the English. Nice to meet.
I have a very simple smartphone, with two gigs of Ram running Android 9 and came across the system consuming 350 MB, sometimes 260 MB, is that correct? Is it to consume so little RAM like that? The system is basically AOSP, unmodified, but I still suspect very little.
Sometimes I get hours without receiving a single notification from the applications, could there be something related to the bad system optimization to run in this RAM? Or is it more likely to be the result of Android 9's aggressive policy against background apps? I always stop receiving notifications from messengers like Whatsapp.
Thank you all for your attention.

Related

Stop apps from auto running?

How can I do this? I noticed yesterday that my scramble with friends app with only 2 games, was taking up 135Mb RAM. I'm sure there's another issue behind there, but this got me noticing other apps that don't need to always be open and running, but for some reason are. How can I stop these apps from auto launching and running in the background?
cgibsong002 said:
How can I do this? I noticed yesterday that my scramble with friends app with only 2 games, was taking up 135Mb RAM. I'm sure there's another issue behind there, but this got me noticing other apps that don't need to always be open and running, but for some reason are. How can I stop these apps from auto launching and running in the background?
Click to expand...
Click to collapse
Just because something is loaded doesnt mean its actually running. Android takes programs that are often used and load them into RAM so that they are ready and waiting when you want to run them. They are then dropped out of memory when that memory is needed for something else. Read up on memory management to get a better idea. If you want to kill it anyways, you can probably just use Titanium to freeze it, but this requires root.
Thanks for the response. I'm rooted and also running RAM manager. It seems that certain programs are taking up my RAM that don't need to be. Another example, words with friends, was in my RAM usage after reboot, and I've never even used this game before. Games like scramble with friends I'd imagine always need to be running or in active RAM since that game has notifications and built in messaging. But I don't need to constantly have that app checking for new data. I tried setting the in app settings to check every few hours rather than 5 minutes, but it was still shown as taking 130MB of RAM usage (though the number is normal now after reboot).
So, it sounds like there is no way.. or what you're saying is more of, no need? I just don't want a bunch of little used apps taking up my active memory.
cgibsong002 said:
Thanks for the response. I'm rooted and also running RAM manager. It seems that certain programs are taking up my RAM that don't need to be. Another example, words with friends, was in my RAM usage after reboot, and I've never even used this game before. Games like scramble with friends I'd imagine always need to be running or in active RAM since that game has notifications and built in messaging. But I don't need to constantly have that app checking for new data. I tried setting the in app settings to check every few hours rather than 5 minutes, but it was still shown as taking 130MB of RAM usage (though the number is normal now after reboot).
So, it sounds like there is no way.. or what you're saying is more of, no need? I just don't want a bunch of little used apps taking up my active memory.
Click to expand...
Click to collapse
No real need. Android sees that you use this app a good bit so it preloads it, and it's sitting there in unused RAM untill it's either called upon to run or untill another process needs that RAM that its using.The application is not running and that RAM would otherwise be sitting unused, so there's no need to get rid of it unless it happened to be a suspicious application. This process is what gets alot of folks all wound up about never having enough RAM because they think that almost all of their RAM is being used for running processes when in reality this isn't really true, kinda half true.
Download Autostarts from the Market, it will let you prevent apps from starting automatically.
And what Chief Geek said is true, he's missing a big part of the picture, and I see statements like his all the time. Yes Android does a good job of loading things in and out of memory as needed. However, if there is crap you don't care about coming in and out of memory all the time, then that means Android is going to dump stuff out of memory that you DO care about (browser, games, etc.) So if you have a bunch of extra crap running, that means if you pause a game, check and email, and come back, Android may have released it from memory and you have to wait for it to reload. If you cut back on the things that are constantly running, it will keep more of your apps that you care about in memory longer, meaning when you go back to that game they will be there right away.
The more stuff you can prevent from running the better. I use Titanium Backup to freeze stuff I will never use. I use autostarts to prevent certain apps from running at startup that I don't want to - Maps, Facebook, etc. Doing this gives me tons of extra free RAM which translates to more useful multitasking.
EvoXOhio said:
And what Chief Geek said is true, he's missing a big part of the picture, and I see statements like his all the time.
Click to expand...
Click to collapse
I understand where your coming from, as this is a very common argument, but what you didn't mention is your method favors empty/available RAM for multitasking while sacrificing fast launches leading to some folks experiencing a laggy system. I completely agree with freezing the junk as the bloat always seems to have pointless priority, but I feel as once these steps are taken that android does a perfectly fine job of managing RAM. Very rarely do I have to wait for applications to reopen as I'm jumping back and forth between them and never have trouble multitasking. I'm not going to be curt and say your theory is wrong, I'll leave it as just another way of running your device as it certainley has it's merits, but I don't agree that it's for the average user who is more likey to be jumping from one app to another and not back and forth between the same ones needing all the data to be exactly where they left it.
Chief Geek said:
I understand where your coming from, as this is a very common argument, but what you didn't mention is your method favors empty/available RAM for multitasking while sacrificing fast launches leading to some folks experiencing a laggy system. I completely agree with freezing the junk as the bloat always seems to have pointless priority, but I feel as once these steps are taken that android does a perfectly fine job of managing RAM. Very rarely do I have to wait for applications to reopen as I'm jumping back and forth between them and never have trouble multitasking. I'm not going to be curt and say your theory is wrong, I'll leave it as just another way of running your device as it certainley has it's merits, but I don't agree that it's for the average user who is more likey to be jumping from one app to another and not back and forth between the same ones needing all the data to be exactly where they left it.
Click to expand...
Click to collapse
You're misunderstanding what I am saying. I am suggesting to prevent apps you don't care about from getting loaded into memory automatically at startup. By doing that, it means more free memory for the system, which means better multitasking.
My method doesn't sacrifice fast launches at all. If anything, by having more free memory, it means more applications will remain in memory, which equals better multitasking and faster relaunches. Initial launches will be the same either way.
I am NOT suggesting to prevent apps you care about from autostarting - just the crap that you never use nor care about. Maybe that's where you misunderstood me.
EvoXOhio said:
You're misunderstanding what I am saying. I am suggesting to prevent apps you don't care about from getting loaded into memory automatically at startup. By doing that, it means more free memory for the system, which means better multitasking.
My method doesn't sacrifice fast launches at all. If anything, by having more free memory, it means more applications will remain in memory, which equals better multitasking and faster relaunches. Initial launches will be the same either way.
I am NOT suggesting to prevent apps you care about from autostarting - just the crap that you never use nor care about. Maybe that's where you misunderstood me.
Click to expand...
Click to collapse
I appologize for the misunderstanding, I assumed that since we were discussing an app that he says he does use that you meant to prevent apps such as this all together. Such is an argument that some make in an attempt to maximize the amount of available unused RAM.
Chief Geek said:
I appologize for the misunderstanding, I assumed that since we were discussing an app that he says he does use that you meant to prevent apps such as this all together. Such is an argument that some make in an attempt to maximize the amount of available unused RAM.
Click to expand...
Click to collapse
I was addressing what he said here:
but this got me noticing other apps that don't need to always be open and running, but for some reason are. How can I stop these apps from auto launching and running in the background?
Click to expand...
Click to collapse
But in all honesty, if his app is using 135MB of RAM when doing nothing, it is probably better off being prevented from running in the background entirely. 135MB is less than 1/3 of the free RAM on the system after a fresh boot.
I been using system tuner pro. You can freezes apps stop them from start up. It also has a task manager that you can choose which apps run what you want to kill.you can also exclude apps so if you kill all it will keep the apps you need running like widget locker bln or avast and kill the rest. Also gives you in depth everything on yor phone
Sent from my oversized communication device.
+1 for Autostarts
Sent magically through the air from the mighty Note!
kimocal said:
+1 for Autostarts
Sent magically through the air from the mighty Note!
Click to expand...
Click to collapse
+2 for Autostarts.
The best by far is Gemini app manager... https://play.google.com/store/apps/details?id=com.seasmind.android.gmappmgr
long press on the icon of the app to get a menu with an option to disable start up.
And the nice part it has very granular selection of start up permissions.

SGS3 (i9300 Europe) on XXDLIB closes minimized apps

Hi.
First: I haven't found a thread which is only meant for my problem.
So: As written above, I'm on XXDLIB, but this behaviour is there in earlier JB releases, too (all WanamLite).
When I minimize an app (means: press home button in an app) it won't stay there long. It will be closed after a (volatile) period of time.
Example: I'm navigating and want to read something in (stock) browser. I read and minimize this app too.
I'll go back to navigation.
Afterwards I want to read my opened page (which should be in browser) and waht happens: the browser reloads the page and hasn't been listed in task manager (hold home button, left side).
So it has been closed.
First i thought that this is a out of memory issue. So I removed many apps that I don't need from /system/app and observed the memory usage then.
Same scenario as mentioned above: Navigation (Navigon) is opened, I open the browser, finish my navigation... and .. the browser is closed again.
This is vice versa: when I minimize my navigon app and use the browser for.... let's say 3 to 4 minutes the app will be closed.
Then I got deeper into it. I opened FM radio, browser, WhatsApp and evernote and minimized them, before I slept. No app with that great memory usage I would say.
But at morning ALL apps are closed.
For short: I HATE it. When I want to have my browser opened, it should be opened until I want to close it.
Sometimes I minimize my navigon app and I only need audio orders... unusable now, because the app closes very fast...
Same for browser: It eats my monthly provided data, because it reloads the last viewed page (its not reloaded from cache; with flight mode enabled there is only an error page).
It's no memory issue I would say. After opening all these mentioned apps I have more than 230 MB of free ram.
I know that wanam adds a modified services.jar with some kind of 'memory optimization script/code' from XDA devs.
But as far as I understand it, it should not lead to any closed apps.
As far as I can see, this problem is 'new' since JB (AOS 4.1.1).
In 4.0.4 it hasn't been there.
Anyone with the same problem?
Stock or mod?
Any suggestions?
I'm missing my S2... never had this kind of problems there...
Greetings,
Mario
EDIT: I'm using the newest apex launcher (free). I don't know if this could be important.
The issues you describing are present big time in ICS also. That's what I hate this phone.
I don't even think this is a Galaxy S III issue. It seems to be more of an issue with Android itself. I've noticed things like this with the pure stock android Galaxy Nexus and even on the US Galaxy S III which has a total of 1.6gb of ram available.
Mine keeps it in memory and when I return to it is still there as I left not re-started. In fact I just opened xda app after not using all day today but using many other apps it was still on the last thread I was reading. I'm running stock but rooted.
It's all about the RAM. More precisely about the amount of available RAM.
Get the free app 'Advanced Tools', go to 'options' and tick 'Root functions'.
Then go to 'System'->'System Manager'->LMKiller and configure the values.
They are thresholds, meaning that if this amount of total available RAM (disk cache deduced) has been reached, it will start killing apps off to free at least enough Ram to go above the threshold again. Lowering the values means it will only do it much later.
Make sure that you don't lower them too far, since a device running low on RAM uses the OOM-Killer to kill apps regardless of their status.
It should help to set the Dalik heap size to 128MB too, but some side effects with large games/apps have been reported.
I have also realised this problem as someone who comes from Samsung Galaxy S 2. Now I am on Omega Rom v27 and use hard swap, I should not be having this problem but no, I see that many apps are closed by system although I have huge ram available after some time. There must be a way to deal with it; I play with auto memory kill settings but have not seen a difference so far.
Regards
GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
This is an Android issue even with GB, if the phone runs out of memory for the foreground process, it closes other processes in order to free up memory. However, what you're talking about (web browsing) if you're using Chrome I believe this is a chrome thing (does the page get greyed out?) Happens to me even if I leave the page on. For example:
Browsing, put phone aside, the phone automatically locks, as I unlock it does that. Doesn't bother me much though, as long as the page loads again normally. I haven't had any issue with the S3 concerning closing other applications for the foreground one.
d4fseeker said:
It's all about the RAM. More precisely about the amount of available RAM.
Get the free app 'Advanced Tools', go to 'options' and tick 'Root functions'.
Then go to 'System'->'System Manager'->LMKiller and configure the values.
They are thresholds, meaning that if this amount of total available RAM (disk cache deduced) has been reached, it will start killing apps off to free at least enough Ram to go above the threshold again. Lowering the values means it will only do it much later.
Make sure that you don't lower them too far, since a device running low on RAM uses the OOM-Killer to kill apps regardless of their status.
It should help to set the Dalik heap size to 128MB too, but some side effects with large games/apps have been reported.
Click to expand...
Click to collapse
Thanks. I will have a look - but I would say, its now memory issue, because of the free ram that is left.
Heapsize is at 128 MB, heapgrowlimit too. I played around with these values. Nothing helped.
I'll give a report tomorrow.
EDIT: On stock the heapsize is 256m. Why should someone *lower* this value, like wanam?
Any idea? I'm no programmer...
Removing the bloat helped here a lot and that change in the build.prop from 256 to 128m.
Delete kiesexe from system/bin if you don't use kies. Freeze all the Samsung applications and services. Finally don't use Supercharger.
Swyped on I9300 - XXDLIB - Siyah kernel - JKay & Thunderbolt tweaks.
To me, it happens randomly. Sometimes the browser just show the same page without reload even after a few days! But sometimes it just reload after receiving a call!!!
Is not big problem on a daily usage but is very very big problem when I'm downloading something and have to worry about incoming call.
Sent from my GT-I9300 using xda app-developers app
hey guys, it makes me miss my little "Eclair" or "Froyo" phone...
a phone with this huge capabilities can't have this type of issue...
im getting this issue when im playing and need to change a track in song player...
then it always restart the game and it sucksssssssssssssss!!!!! ;/
So, thank you all.
I increased heapsize to 276. Now the apps are hold longer in memory.
I observed something strange: When I use flight mode, apps are closed too... but thats ok.
im playing Football Manager Handheld
and it closes everytime too...
cant handle this!!!!
i want a phone that does the things correctly.....so sad!!
Ya this is really sad!!
We keep on saying how Android does true multitasking and all, but at the end of the day it's not getting done what we want to.
I was downloading Shadowgun the other night, and after about 50%, I got a msg so I pressed home button to go to the Msg app and then:
1) Home Redraw ..grrrrrrrrrrrr.
2) I replied back to text and opened the Shadogun from Recent Apps and the downloading had stopped.
Had to start it again.
WTF??
Why does android not kill the other useless cached things which is taking upto 300-400 mb ram.
Why does it have to kill Launcher and the latest foreground operation??? The worst kind of management ever!!
Why doesn't it kill Maps instead of Launcher. I've not touched maps in two days and it takes about same ram as my Launcher does??
It has got the sorting all wrong...I hate it...
I don't know how it is in iOS, but it couldn't be worse
d4fseeker said:
It's all about the RAM. More precisely about the amount of available RAM.
Get the free app 'Advanced Tools', go to 'options' and tick 'Root functions'.
Then go to 'System'->'System Manager'->LMKiller and configure the values.
They are thresholds, meaning that if this amount of total available RAM (disk cache deduced) has been reached, it will start killing apps off to free at least enough Ram to go above the threshold again. Lowering the values means it will only do it much later.
Make sure that you don't lower them too far, since a device running low on RAM uses the OOM-Killer to kill apps regardless of their status.
It should help to set the Dalik heap size to 128MB too, but some side effects with large games/apps have been reported.
Click to expand...
Click to collapse
Best reply in this thread. I have these settings :
LMkiller: 32/40/48/56/64/72
dalvik.vm.heapsize=256m
To fix launcher redraws, change it's OOM value. Supercharger V6 can help with that. Also debloated ROMs help a lot
j0ep0 said:
Best reply in this thread. I have these settings :
LMkiller: 32/40/48/56/64/72
dalvik.vm.heapsize=256m
To fix launcher redraws, change it's OOM value. Supercharger V6 can help with that. Also debloated ROMs help a lot
Click to expand...
Click to collapse
This is where Apple wins and Samsung fails.
So much just to make your phone smoothly, something Samsung should have done and not the user.
j0ep0 said:
Best reply in this thread. I have these settings :
LMkiller: 32/40/48/56/64/72
dalvik.vm.heapsize=256m
this settings will solve the problem????
if so, how to set up?????
Click to expand...
Click to collapse

[Q] GT I8150 with Cyanogenmod too slow due to background apps

Hi,
I put Cyanogenmod (some unofficial alpha or beta build from this forum) onto my GT i8150. While it generally runs great, the device suffers from its low memory (it only has 512 INCLUDING what is used for graphics).
When I switch between many apps and do stuff, the device becomes slower and slower. At some point it takes various seconds to do a simple switch to the home screen, and I get tons of "App XYZ is not responding. [Kill XYZ] [Wait]" popups - mainly for apps I had just open but which I am NOT using right now.
The list of the most annoying apps is G+, Hangouts, Plume, Google Maps, Feedly. Those eat enough system resources to be an annoyance, they run just well enough if launched on their own, but if others of them still work in the background the device is so ruined. Sometimes it's faster to take out the battery than to bother going to the task manager and throw all the recent apps out to fix things again (because it takes 1-2 minutes due to the massive slowness).
My idea was: can I blacklist certain apps from running in the background _ever_? I don't care about timely G+ notices, I certainly don't care about Google Maps running in the background (what is that useful for if I'm not just looking at the map?), and same for Feedly. I would really love to have those apps totally instant-killed the very second I switch out of them. Can this be done in some way?
Please note there are some apps I would like to keep running in the background (mainly Kaiden mail and Xabber for Jabber/XMPP chat), so I wouldn't want to turn off ALL apps running in the background.
Regards
blubberjones

MTK Redmi Note 4 q: throttling, battery graph, memory optimization, sync hibernation

So I've been using MTK Redmi note 4 with latest global ROM for 2 days now and have the follow questions :
Is it normal for it to throttle after around 1 hour of Google maps? The external frame become hot and scrolling the map become sluggish.
How to see battery drain rate per hour? How much is yours? The battery statistics is missing the X line values, so I can't see how much it drains per hours. It only have Y values for battery percentage.
How to completely totally disable xiaomi's memory optimization? It close app so quick it become really annoying in this 3GB RAM phone (it even close WhatsApp and LINE, ugh). I came from LG G Pro 2 with a same amount of RAM and it almost never close apps willy-nilly.
Any idea how to totally disable the sync limitations for specific app? Because it only update WhatsApp when I open the app.
Anyway, I already used the battery menu to disable miui optimizations for WhatsApp and LINE. But xiaomi still closes them and limit their sync.
Thank you.

BAD Nougat RAM management (all devices with pure android)

Hi eveyone,
Title tells you everything. Why i made this conclusion? Because android nougat system uses all your RAM in vain.(I would like to mention that Linux os is famous for its low ram usage and fast ui so, google, why android is using so much RAM?) . Any installed app data which are stored on your Ram on a boot, so why apps are slowly opening,Why they are reloading everytime when switching back to that app? All apps which are running in multitasking mode(recents apps) when switching between apps , app is reloading but not switching to the last opened moment. Also there are some other bad behaviour like when youre updating your apps through google play store. If you switch to another app , google play app stops doing update process. These problems gets pixel and nexus devices and all devices which uses ROMs based on aosp or lineage.
I'm on a purenexus(aosp) rom and My device (kenzo)uses 1.8/1.8 GB of ram. It's a real problem. Comparing samsung galaxy s8 vs pixel device you can see what i'm talking about. (Youtube link is below) Why OEMs gets better results with their own UI and kernel customizations? Atleast, Can we get better Ram management on android o with stock kernel? I'm not talking about apple's iOS which is better in multitasking in any way..
https://youtu.be/UK8K-lhDFVw
I would like to get your opinion and suggestions how to improve RAM management on nougat. Atleast prove me that you don't have these my mentioned problems (please tell me your using ROM name, kernel and other mods you use).
Tried a lot ROMS but after some days of usage they end with poor ui performance with bad ram management behaviour..
Some saintly person with infinite knowledge is coming here to tell you that "free ram is wasted ram".
He won't care if your phone lags, apps reload and ui is unresponsive. He'll just repeat his favorite phrase.
"Free ram is wasted ram."
Let's see the first Saint's comment.
Oh and btw..
I'm facing the exact same problem. And I'm very pissed off with these saintly people repeating their favorite phrase. No solution found so far. Use greenify on as many apps as you can. It'll cause the problem to be a little more bearable.
Sent from my Redmi Note 3 using Tapatalk
Use custom kernel.
Also lately play services started hogging ram so I disabled some of the services :
https://www.dropbox.com/sh/ibsk0e1yens5suc/AACU4nhZGu0UuBcwHV1VT2pLa?dl=0
Third if you have social media apps running they are the culprit, my gfs s7e lagged with Facebook, Instagram, viber, whatsapp etc.
Greenify solved the issue.
1emrys1 said:
Some saintly person with infinite knowledge is coming here to tell you that "free ram is wasted ram".
He won't care if your phone lags, apps reload and ui is unresponsive. He'll just repeat his favorite phrase.
"Free ram is wasted ram."
Let's see the first Saint's comment.
Oh and btw..
I'm facing the exact same problem. And I'm very pissed off with these saintly people repeating their favorite phrase. No solution found so far. Use greenify on as many apps as you can. It'll cause the problem to be a little more bearable.
Sent from my Redmi Note 3 using Tapatalk
Click to expand...
Click to collapse
LOL so true, I was just thinking the same ? They'll say free ram is wasted but that's not true for a multitasker, like me, because I like to use 4 apps and be able to switch amongst them without reloading(I have 2GB variant)
Anyway, checkout my screenshot, I use greenify + 512mb zram(ElementalX kernel default settings)
P.s I'm on XenonHD
Never had such issue on any nougat rom. I use Resurrection remix 5.8.2 and Agni Kernel. Use Zram in kernel Auditor to boost performance little bit. I always have 700 to 800 free ram on 2g variant.
I set my LMK to 9-32-64-100-156-214 and I swear i can switch around with browser, facebook, message and gallery without reload anything . I'm on 2gb Kenzo with franco kernel
guys, use privacy guard / appops , and disable background working of unnecessary apps like
Solution: Root; tweak
A little bit of my story: Galaxy Tab S. What laptop (tablet - in the old days, laptops were great with that much ram, weren't they?) with 3 gb ram won't let you multitask?! When it was Kitkat, it was, well, alright. I upgraded to Marshmallow, and I was not able to multitask. Marshmallow on Galaxy J5 Prime leaves 800 MB without cache and over 1.2 GB without cache, out of 3 GB. Similar with Marshmallow/Tab S (+ overheating processor!). I mean what the ****? Is that planned obsolescence?
And now I am here, typing from Tab S, with: 5 tabs open in Chrome, 2 tabs in Xodo, Settings, Play Store, ES File Explorer, Task Bar (Braden Farmer) [at the least] - having changed to Lineage OS 14.1 (no good. by default), rooted and learnt about Low Memory Killer (in Deathly Adiutor); tweaked it and I have less than 300 MB free ram with cache and less than 875 MB free without cache. Yay! (Btw, the overheating problem is solved too by underclocking - to save battery and avoid overheating!) [I have spent at least two days testing out different OS and possibility-of-root and features.] So, this paragraph is my 2 cents.
Would like to hear from you if your problem is solved.
[PS: J5 Prime is still under warranty, and is used for basic functionalities - no problem there as of yet.]
I'm currently running RR nougat with randon kernel
The ram management is great i can swith fb ,youtube, chorme, mess without loading, but in long term the phone start slow, hang and battery drop super fast ( 5H SOT)
So i have to force 3 app running background to keep battery longer and stay away from lag.
Any ideas to keep great ram and free - lag ?!?
Tks in advance
Any idea
vkass said:
Use custom kernel.
Also lately play services started hogging ram so I disabled some of the services :
https://www.dropbox.com/sh/ibsk0e1yens5suc/AACU4nhZGu0UuBcwHV1VT2pLa?dl=0
Third if you have social media apps running they are the culprit, my gfs s7e lagged with Facebook, Instagram, viber, whatsapp etc.
Greenify solved the issue.
Click to expand...
Click to collapse
How do you disable the services?
mehrshad.shafaghi said:
How do you disable the services?
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=cn.wq.disableservice

Categories

Resources