Ram Management on Stock Android Pie - LG V30 Guides, News, & Discussion

Its almost been a week since Android Pie was released for H930...
I have been using it since release... I have observed that RAM Management on this firmware is very bad...Like... Almost impossible....Unable to listen to music and scroll though my mailbox too....
Is anyone else facing this issue..or only specific set of people like me
Although Ram management is also poor in Pixel phones... but..Its not this bad...
Hope anyone finds a solution ?
Some workarounds:
For Non Rooted Users:
thefpspower said:
I found a REALLY WEIRD and really SIMPLE solution for this ACCIDENTALLY.
So just like you guys, I had this issue with ram management, asked around on reddit and stuff, really weird because even when there is enough ram is just doesn't let apps in the background, even lost calls because of it apparently.
Solution: Make a backup using LG Bridge
It sounds weird, but it worked for me. Somehow, after I made a backup with LG Bridge, all my app permissions got reset, so FluidNG for example stopped working out of nowhere and I had to reboot the phone.
After rebooting I gave the apps I wanted the permissions they needed and SOMEHOW that fixed the issue, I can open more than 7 apps in the background with no issue.
Don't ask me how the hell this works, but it did so I'm sharing it here to see if it works for you too. I didn't need to reset the phone at all.
Click to expand...
Click to collapse
For Rooted Users:
tech_infinity said:
If you guys are rooted then set zram to around 900 and swapiness to 60. All will be good.
Click to expand...
Click to collapse
PS: This will result in faster battery drain.

[email protected] said:
Its almost been a week since Android Pie was released for H930...
I have been using it since release... I have observed that RAM Management on this firmware is very bad...Like... Almost impossible....Unable to listen to music and scroll though my mailbox too....
Is anyone else facing this issue..or only specific set of people like me
Although Ram management is also poor in Pixel phones... but..Its not this bad...
Hope anyone finds a solution ?
Click to expand...
Click to collapse
I do not know what this could be caused by. My phone also uses a lot of RAM since the pie update. But: In doing so it is absolutely smooth and very conservative with the battery. I do not experience lags or bad performance.
I came from LiquidRemix and flashed the KDZ. Set up the phone. Then formated it again and flashed the TWRP zip and started over once more because I messed around with deleting system apps too much in the first try.

Koersten said:
I do not know what this could be caused by. My phone also uses a lot of RAM since the pie update. But: In doing so it is absolutely smooth and very conservative with the battery. I do not experience lags or bad performance.
I came from LiquidRemix and flashed the KDZ. Set up the phone. Then formated it again and flashed the TWRP zip and started over once more because I messed around with deleting system apps too much in the first try.
Click to expand...
Click to collapse
Performance and Battery is fine for mee too... But when it comes to multi-tasking.... Its almost impossible....
Home launcher gets killed in the background when I open Camera app?

Hm. Ok strange. This works for me. I can open a dozen apps in parallel and switch between them without problems. But I am not a ultra heavy multitasker either

I am facing the same issue currently and it drives me crazy. If I just listen to music on Spotify and browse through my mails, Spotify gets killed. This is a total joke IMHO I will try a factory reset now to see if that helps.
H930 is my model btw.
If it doesn't get better, I will have to go back to a custom ROM I guess.

Yeah bro ram management is very poor. I only get 700mb free ram.

BlueFlame4 said:
I am facing the same issue currently and it drives me crazy. If I just listen to music on Spotify and browse through my mails, Spotify gets killed. This is a total joke IMHO I will try a factory reset now to see if that helps.
H930 is my model btw.
If it doesn't get better, I will have to go back to a custom ROM I guess.
Click to expand...
Click to collapse
Literally Same problem here.... And I tried factory reset too...it didn't help...
Poor optimization by LG..

Yep same here. Spootify is killied in the background and switching between cards in samsung or chrome browser causes cards reloading.

trouble. said:
Yeah bro ram management is very poor. I only get 700mb free ram.
Click to expand...
Click to collapse
For the record, free RAM is not an indicator of poor management. Modern operating systems like Android use up as much RAM as reasonably possible, as the OS will run faster that way.
I'm not saying that Pie is better/worse... just saying that free RAM is not a good metric. My Oreo phone is running fine with 771 MB free right now... again, this is normal.

schwinn8 said:
For the record, free RAM is not an indicator of poor management. Modern operating systems like Android use up as much RAM as reasonably possible, as the OS will run faster that way.
I'm not saying that Pie is better/worse... just saying that free RAM is not a good metric. My Oreo phone is running fine with 771 MB free right now... again, this is normal.
Click to expand...
Click to collapse
You are right, but...
On my 3GB RAM Quark unless I had 1GB free RAM, the phone would lag severely and stop responding well. I could "clear all" Recents to get 1GB RAM back, and it would spring to life.
On both V30 and V30+, on rooted stock Oreo firmware, I consistently have 600MB - 1GB free and have no lags.
However, if it got down to 200MB, would it start acting wonky like the Quark?
Enough people are complaining about it, I'm starting to get concerned. This isn't buggy beta tests any more. Hopefully they'll fix it before they roll out the North American variants.
But see next post. Maybe not RAM, but kernel governor or something?

trouble. said:
Yeah bro ram management is very poor. I only get 700mb free ram.
Click to expand...
Click to collapse
I have less than that 700MB free RAM right now on rooted stock Oreo and have no problems. I have 549MB free and my phone is not lagging at all.
So, it's not RAM, maybe it's something else with Pie. Maybe the kernel governor?

ChazzMatt said:
I have less than that right now on rooted stock Oreo and have no problems. I have 549MB free and my phone is not lagging at all.
So, it's not RAM, maybe it's something else with Pie. Maybe the kernel governor?
Click to expand...
Click to collapse
That's what I was thinking, that the governor or kernel might even be an issue. First step, can people seeing the problem tell us what governor is activated? Most kernel tools will tell you what you have turned on. CPU-Z tells me that I'm running Interactive... and kernel version is "4.4.78-perf+". Again, this may not be enough info to work from, but it would be a start for looking at least.
Maybe spending some time with our kernel devs would help explain, too, as they'd probably have a better idea of what to look for.

In my case it was extremely bad when I updated using OTA, Messenger would literally get killed while I was typing a message. Performing a fresh install helped to some extent and the phone is usable and running otherwise pretty smoothly now, but still kills background apps much quicker than on Oreo. (edit) just tested, taking a picture in the stock camera app closes the app launcher (Nova).
H930, Interactive, 4.4.153-perf+

ChazzMatt said:
Enough people are complaining about it, I'm starting to get concerned. This isn't buggy beta tests any more. Hopefully they'll fix it before they roll out the North American variants.
Click to expand...
Click to collapse
I could have sworn I read an XDA article that Pie had RAM management issues.
Sent from my LG-H932 using XDA Labs

BROKEN1981 said:
I could have sworn I read an XDA article that Pie had RAM management issues.
Click to expand...
Click to collapse
Maybe it does. But it's just the RAM available people are complaining about on Pie is the same RAM or more than we have on Oreo...
And I have no lags on US998 Oreo with less than 600MB RAM. So, wondering if it's CPU Governor or something.

tepalas said:
In my case it was extremely bad when I updated using OTA, Messenger would literally get killed while I was typing a message. Performing a fresh install helped to some extent and the phone is usable and running otherwise pretty smoothly now, but still kills background apps much quicker than on Oreo. (edit) just tested, taking a picture in the stock camera app closes the app launcher (Nova).
H930, Interactive, 4.4.153-perf+
Click to expand...
Click to collapse
I also wonder if the update process is not done well. In other words, I might suggest trying a factory reset and starting from scratch again? I know updating across a large OS change can often cause problems... I've seen this happen on other devices...

schwinn8 said:
I also wonder if the update process is not done well. In other words, I might suggest trying a factory reset and starting from scratch again? I know updating across a large OS change can often cause problems... I've seen this happen on other devices...
Click to expand...
Click to collapse
I tried installing the ROM from scratch with "Refurbish" option on LGUP and did not restore any backup. Same thing. I think LG just rushed this update too fast.
Oreo keeps all the apps I mostly use, about 10-15 of them, in RAM indefinitely. Pie just can't keep anything running in th background.

I check governor and its interactive, I think its the same i oreo?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Dizzyrul3z said:
I check governor and its interactive, I think its the same i oreo?
Click to expand...
Click to collapse
Yep...Same as oreo..
btw...I have tried all the governor... all same... in terms of RAM Management... nothing improves

[/COLOR]
[email protected] said:
Yep...Same as oreo..
btw...I have tried all the governor... all same... in terms of RAM Management... nothing improves
Click to expand...
Click to collapse
https://forum.xda-developers.com/lg-...k-pie-t3954653
Flash this pie kernel and see if things become better

Related

[Q] RAM availability varying figures

Ok so in the BLISS beta thread there was some discussion about available RAM. To keep that thread clear of our BS i decided to post this up for us.
I do recall Tiny mentioning something in the Bliss thread about us needing to read into Android Memory Management so I took a peak using trusty old Google and didn't find too much, then again I am at work. I'm sure there is more to It than I have stumbled upon though but I didn't want us to continuing threadjacking.
Anyway, Bob was posting how he had this amount of RAM available that we thought was unheard of. Upon further investigation, I believe the app he/she is using is pulling up data from here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
While most of us have been using task manager in the notification pulldown to see this:
Those screens were taken literally less than a minute apart. Why do these figures vary so much? I have no clue.
Discuss.
Marcismo55 said:
Ok so in the BLISS beta thread there was some discussion about available RAM. To keep that thread clear of our BS i decided to post this up for us.
I do recall Tiny mentioning something in the Bliss thread about us needing to read into Android Memory Management so I took a peak using trusty old Google and didn't find too much, then again I am at work. I'm sure there is more to It than I have stumbled upon though but I didn't want us to continuing threadjacking.
Anyway, Bob was posting how he had this amount of RAM available that we thought was unheard of. Upon further investigation, I believe the app he/she is using is pulling up data from here:
While most of us have been using task manager in the notification pulldown to see this:
Those screens were taken literally less than a minute apart. Why do these figures vary so much? I have no clue.
Discuss.
Click to expand...
Click to collapse
Hmmm. Weird, I am currently downloading the rom. Perhaps sense is using a different amount of RAM than the rest of the OS is.
I'm sure we will have closure on this in the next release from the developers.
Marcismo55 said:
Ok so in the BLISS beta thread there was some discussion about available RAM. To keep that thread clear of our BS i decided to post this up for us.
I do recall Tiny mentioning something in the Bliss thread about us needing to read into Android Memory Management so I took a peak using trusty old Google and didn't find too much, then again I am at work. I'm sure there is more to It than I have stumbled upon though but I didn't want us to continuing threadjacking.
Anyway, Bob was posting how he had this amount of RAM available that we thought was unheard of. Upon further investigation, I believe the app he/she is using is pulling up data from here:
While most of us have been using task manager in the notification pulldown to see this:
Those screens were taken literally less than a minute apart. Why do these figures vary so much? I have no clue.
Discuss.
Click to expand...
Click to collapse
Very good idea by the way. I can't actually answer why the two screenshots are different other than to assume where they get their information is obviously different as the free RAM is not going to vary that way. I actually never care about memory too much as long as the ROM runs smooth. It sounds like people are benchmarking using free RAM which is totally dependent on what apps you have running and in fact installed. Read on if you're still curious.
Let me try to summarize from what I understand. Basically from what I found by googling the Android OS does memory management different than Windows. More total RAM is definitely better in both scenarios as you can run more apps before the system has to load them to RAM. However, Android loads apps in memory at boot so having more apps could cut back on memory and I think it learns what is more popular on usage and prioritizes those. If you go killing apps, it may just reload them, using more battery than leaving them running, or they may stay stopped. I think the task manager should be used in a similar instance to Windows like if you have an app that's not responding or frozen. The lag actually stems from background processes such as reloading apps that it suspends from RAM. If you are having lag issues from low RAM (I would say around 50 MB reported in task manager though 60-70 MB could start leading to lag), I might be able to do something to assist with the lag on the kernel side. I can't promise this before the source is released. I actually don't plan new features until HTC releases source, just bugfixes if there are any (besides the unfortunate issue with USB mounting on some ROMs).
I'm aware that Sense uses more RAM and basically swap support could be added on the kernel side to allow virtual RAM and it should hopefully be smoother.
Sorry if I got too technical.
tiny4579 said:
Very good idea by the way. I can't actually answer why the two screenshots are different other than to assume where they get their information is obviously different as the free RAM is not going to vary that way. I actually never care about memory too much as long as the ROM runs smooth. It sounds like people are benchmarking using free RAM which is totally dependent on what apps you have running and in fact installed. Read on if you're still curious.
Let me try to summarize from what I understand. Basically from what I found by googling the Android OS does memory management different than Windows. More total RAM is definitely better in both scenarios as you can run more apps before the system has to load them to RAM. However, Android loads apps in memory at boot so having more apps could cut back on memory and I think it learns what is more popular on usage and prioritizes those. If you go killing apps, it may just reload them, using more battery than leaving them running, or they may stay stopped. I think the task manager should be used in a similar instance to Windows like if you have an app that's not responding or frozen. The lag actually stems from background processes such as reloading apps that it suspends from RAM. If you are having lag issues from low RAM (I would say around 50 MB reported in task manager though 60-70 MB could start leading to lag), I might be able to do something to assist with the lag on the kernel side. I can't promise this before the source is released. I actually don't plan new features until HTC releases source, just bugfixes if there are any (besides the unfortunate issue with USB mounting on some ROMs).
I'm aware that Sense uses more RAM and basically swap support could be added on the kernel side to allow virtual RAM and it should hopefully be smoother.
Sorry if I got too technical.
Click to expand...
Click to collapse
Not technical enough for me. I'll eat up as much info as you wanna dish.
loonatik78 said:
Not technical enough for me. I'll eat up as much info as you wanna dish.
Click to expand...
Click to collapse
Ok, we'll see. This is all from memory. Maybe I'll try again but I'm tired. I might have to do some more research.
Oh, I forgot, the Inc actually has 512 MB of RAM but about 100MB of it is dedicated to the kernel and OS processes that cannot be used by apps and such including the homescreen app. Google wasn't too helpful but this is just from my observations.
If anyone has more information please share as I'm curious why task manager is different than the RAM shown in running. I know there is a command in Linux called free that can be run from terminal emulator but it doesn't report accurately what is available for the system.
Sorry I need sleep so that's all for tonight.
As far as developers knowing, I think the CM devs would be knowledgable on this subject as they see the inner workings of Cyanogenmod and the AOSP framework so they see the source code of Android which is not available for the Sense framework.
FYI, CUViper is one of the maintainers for the Inc for Cyanogenmod so he oversees code changes for the Inc and I know he has also worked on the kernel for Cyanogenmod.
For what it's worth - system panel reports about the same as task manager for me (around 95mb) - and my running apps screen shows a huge amount of ram free - 288mb at the moment
Thank for breaking it down the best you can Tiny.
I don't have the greatest amount of computer knowledge but when I think if scarce free RAM I think that would contribute to a slow running system but I wasn't aware that Android handles memory so much differently but I guess that's why people were starting to have issues with Synergy due to the cache partition filling up with memory from apps? I read users of Synergy were having issues with the ROM becoming unstable and it was necessary to clear the cache partition in order to regain usability. I'm probably trailing off in the wrong direction though...
I did find this post in the Desire S forum under their Bliss port of a user who stated an app called Swapper really sped things up. HERE is the post.
I haven't done too much research on it but curious if anyone else does?

Multi-tasking woes with AOSP (CM10, AOKP, PA)

This is not meant to be a complaining post, mostly I wanted to see if anyone else is having my problems.
I am currently running ParanoidAndroid 2.50 (CM10 based ROM) and I absolutely love how all AOSP ROMs look and feel. TouchWiz had some neat things, but it felt really bloated.
My problem is, multi-tasking on AOSP blows, really, really, really, BAD. I mean it's downright as bad as HTC One X's Sense UI multitasking. For whatever reason, I can never get my free RAM to dip below the 600 MB limit. Usually it hovers around 750 MB, and occasionally I can get it down to 650 MB.
I am not a huge multitasker, but I HATE HATE HATE app re-draws and reloads. This was the one nice thing about TouchWiz, it would keep my opened applications running until I was absolutely at the bottom of my free RAM (~150 MB). My frequently used applications almost never needed to be reloaded/redrawn. This is especially big for applications like Youtube and Browser/Firefox, as you lose everything that you had loaded otherwise.
I've tried spamming opening apps, and the most apps I seem to be able to have open at once is around 8-10 depending on the circumstances. As soon as I cross that threshold of open apps, my other opened apps start being force closed, and require a redraw/reload. This is an absolutely pitiful amount of apps, especially with the whopping 600-800 MB of free RAM that I usually have.
I also have the issue that sometimes even when I don't open a lot of apps, some of my apps like to force close for no reason after a few minutes of being idle. My MailDroid and Firefox apps seem to be extra susceptible to this random time based force close compared to GoSMS, which rarely closes after an inactive period of time.
I have tried multiple kernels, multiple ROMS, multiple governers and I/O schedulers, and I even tried zeppelinrox's V6 supercharger + multitask mods. Nothing I do seems to allow me to crack into that 600 MB of unused RAM. I am so flustered by this that I'm actually considering going back to TouchWiz.
Could anyone else provide me with some feedback with their multitasking app limits/free RAM? Is this a known CM10 issue?
TL : DR
-I can never get below around 600 MB (usually hovers around 700MB) of free RAM
-My running app limit seems to be 8-10 with about 6 widgets
-My apps seem to force close after short durations of inactivity
-I experienced NONE of these problems on TouchWiz
-Could someone post their numbers for some of these things, and is this a known problem for CM10?
Same problem here... I think most people like this problem though. Many like to see more free ram, but I prefer faster multitasking. My main concern is my downloads being closed and interrupted.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Yeah definitely a known issue on AOSP. Memory allocation issues I guess. I've never seen a dev comment on it, despite the fact it has been brought up several times. I suspect we won't get a fix until the JB sources are released for the d2.
Post your services.jar
If you used the windows tool to patch it, it may not have worked - I've made quite a few changes for greater compatibility since it's last update.
btw what are your minfree settings?
Did you do the aLogcat test?
zeppelinrox said:
Post your services.jar
If you used the windows tool to patch it, it may not have worked - I've made quite a few changes for greater compatibility since it's last update.
btw what are your minfree settings?
Did you do the aLogcat test?
Click to expand...
Click to collapse
Oh wow it's zeppelinrox! Hi
Yes, I used the Windows Jellyscream tool to patch my services.jar. The ICS Service Center in your script insists that it worked, but CM10 does not currently have a "Charge Only" or "No Action" mode when the cable is plugged in, I'm forced to mount the SD card(s). Your tool specifically says do not do that, but I don't really have a choice :/
My current MinFree values are:
8, 14, 40, 50, 60, 75
I have also tried the auto-calculated ones (which in my opinion leaves way too much free RAM theoretically):
8, 16, 325, 358, 390, 423
Both of them didn't seem to make a difference.
I have attached my services.jar to this post as well as requested.
As for aLogcat, I'm not sure what that is or how to do that
Hi
Well I can't open it up... is the file size correct?
Maybe it's an incomplete upload.
I assume that it's for ParanoidAndroid 2.50 so try upping it again since I haven't cracked one of those open yet lol
The service centre only looks at the supercharged launcher aspect and the windows exe isn't up to date for the multitasking mods.
I've actually just updated the ultimate jar script today... and also has an SGS3 specific edit
However it may be only for the stock rom.
The aLogcat test is described in the ultimate jar thread OP.
Weird, I'm also not able to open the one on my phone, that's kinda scary.
Ok, I'll give your new ultimate script a spin, and I'll look into the aLogcat thing as well and try to provide you some information.
Here's the services.jar file that was leftover in the Jellyscream directory (JellyScreamPatcherV6_0.9.0.6/framework/services.jar). I chose not to delete the temp files, so I'm guessing it's the same file.
WOOOOOOOOOOOOOOOOO!!!!
Wow you were right zeppelinrox, I tried out your Ultimate Jars script and BAM, my phone is hauling ass right now. Down to 234 MB of free RAM and none of my apps have force closed on me at the moment even after running ~20. Also, my list of cached apps is MASSIVE now, my RAM is finally being utilized!!!!
Time will tell if my apps auto-close after inactivity, but damn this is awesome, THANK YOU SO MUCH, you rock .
Hopefully the windows tool gets updated eventually so it's easier for people to do this, it was a bit tedious to figure it out haha xD
Edit:
My only question now is why oh why do the default AOSP settings suck so bad?
ChrisG683 said:
WOOOOOOOOOOOOOOOOO!!!!
Wow you were right zeppelinrox, I tried out your Ultimate Jars script and BAM, my phone is hauling ass right now. Down to 234 MB of free RAM and none of my apps have force closed on me at the moment even after running ~20. Also, my list of cached apps is MASSIVE now, my RAM is finally being utilized!!!!
Time will tell if my apps auto-close after inactivity, but damn this is awesome, THANK YOU SO MUCH, you rock .
Hopefully the windows tool gets updated eventually so it's easier for people to do this, it was a bit tedious to figure it out haha xD
Edit:
My only question now is why oh why do the default AOSP settings suck so bad?
Click to expand...
Click to collapse
I think that's to make me look good
I hope to have it automated somehow like the outdated ics webapp.
btw how did you decompile?
I'll try again when on the PC.
edit: ok that second one you posted opens up fine. I guess that's CM10?
It looks like CyanogenMod is following my lead... https://github.com/CyanogenMod/andr...mmit/9a8117c4f887c8b0df9cadb5d9aa7689a878752a
am: Allow more hidden apps on devices with lots of RAM
* If more than 1.5GB is present, allow up to 40 hidden apps. * Number is somewhat arbitrary, but was found to work well on D2. * Also look at the sys.mem.max_hidden_apps value if given.
Click to expand...
Click to collapse
Uh yeah... you get a 40 app limit only if you have 1.5GB of RAM - otherwise, you're STILL stuck at 15 hidden apps... lol
I had already seen the "sys.mem.max_hidden_apps" code in ProcessList.smali before the last script update - so that's already been bypassed to 70.
I just didn't know where that setting came from lol
So if you're on CM10, the Ultimate Jar Power Tools script that's currently available already fixes that.
Of course, "sys.mem.max_hidden_apps" was introduced after my mucking around
zeppelinrox said:
btw how did you decompile?
Click to expand...
Click to collapse
Hmm, I'm not sure what you are asking here, could you clarify?
zeppelinrox said:
I think that's to make me look good
I hope to have it automated somehow like the outdated ics webapp.
btw how did you decompile?
I'll try again when on the PC.
edit: ok that second one you posted opens up fine. I guess that's CM10?
It looks like CyanogenMod is following my lead... https://github.com/CyanogenMod/andr...mmit/9a8117c4f887c8b0df9cadb5d9aa7689a878752aUh yeah... you get a 40 app limit only if you have 1.5GB of RAM - otherwise, you're STILL stuck at 15 hidden apps... lol
I had already seen the "sys.mem.max_hidden_apps" code in ProcessList.smali before the last script update - so that's already been bypassed to 70.
I just didn't know where that setting came from lol
So if you're on CM10, the Ultimate Jar Power Tools script that's currently available already fixes that.
Of course, "sys.mem.max_hidden_apps" was introduced after my mucking around
Click to expand...
Click to collapse
hey zeppelinrox....
And to think, that I read some debates with users downplaying the usefulness of 2gb ram vs 1gb. When I was on my HD2 with Swap/Zram, I was using your script(s)...but at one point, I had OS AutoKilling disabled entirely (can't even remember how I did it) and was using a fairly complex Tasker profile(s) to Kill ALL if my memory ran down to a critical stage....all except apps that I put in an EXCEPTION list. So basically, I had MAX multitasking...and the use of all available memory unless I hit a critical threshold...and then, aside from those apps on the exception list, all other apps would get killed. To this day, I believe that Android should be built with an Exception list for power users similar to your Bullet Proof thing.
My Stock S3 rom and kernel seem to handle things pretty darn well. I use Go Launcher EX and experience zero redraws and my tests so far indicate that the OS has great multitasking behavior. I can open quite a few apps for a good amount of time. Eventually they get killed, but as you know, it's a bit unpredictable. When I last ran the memory down to about 250mb, which was very difficult to do even with large games, the OS hardly killed anything. It wasn't a scientific test but feel factor based. One of these days SOON, I need to play with your scripts again. Only reason I haven't with the s3...is because so far the stock setup is working really well.
ChrisG683 said:
Hmm, I'm not sure what you are asking here, could you clarify?
Click to expand...
Click to collapse
OH that's ok.
The second file you posted decompiled fine
themadproducer said:
hey zeppelinrox....
And to think, that I read some debates with users downplaying the usefulness of 2gb ram vs 1gb. When I was on my HD2 with Swap/Zram, I was using your script(s)...but at one point, I had OS AutoKilling disabled entirely (can't even remember how I did it) and was using a fairly complex Tasker profile(s) to Kill ALL if my memory ran down to a critical stage....all except apps that I put in an EXCEPTION list. So basically, I had MAX multitasking...and the use of all available memory unless I hit a critical threshold...and then, aside from those apps on the exception list, all other apps would get killed. To this day, I believe that Android should be built with an Exception list for power users similar to your Bullet Proof thing.
My Stock S3 rom and kernel seem to handle things pretty darn well. I use Go Launcher EX and experience zero redraws and my tests so far indicate that the OS has great multitasking behavior. I can open quite a few apps for a good amount of time. Eventually they get killed, but as you know, it's a bit unpredictable. When I last ran the memory down to about 250mb, which was very difficult to do even with large games, the OS hardly killed anything. It wasn't a scientific test but feel factor based. One of these days SOON, I need to play with your scripts again. Only reason I haven't with the s3...is because so far the stock setup is working really well.
Click to expand...
Click to collapse
Yes you were using dorimanx's trick to break the lowmemorykiller on HD2
He asked me to break it on ICS and above, which I did.
But that only lasted a day because I found another way to do it... boost number of running apps without breaking lowmemorykiller.
Needless to say, dorimanx got real happy lol.
See post 2 of the ultimate jar thread for more about that.
So yeah, you still have the app limit and lots of room for more multitasking since you can't get very low on ram.
I've added more mods to reduce the likelihood of apps closing on you. (Check the change log)
Sense users are ecstatic with the latest
Anyway, I'm sure that if you try it, you'll notice a difference - it's just a matter of you not knowing how much better it can be
What program are you using to put on the app kill exception list?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Deoxlar said:
What program are you using to put on the app kill exception list?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
Deoxlar...are you asking me?
With the HD2, I had the OS rigged to NOT kill any apps EVER and used System Tuner Pro as my APP Killer with exceptions checked off. I used Tasker to determine the ram availability each time a window opened or changed, and Tasker would trigger STP when necessary.
But Zepplinrocks' V6 Supercharger as a very unique system for doing similar...but overall, it handles everything to do with ram management and better. Also, for some people's setup, it is a dramatic improvement...a FIX... a LIFE SAVER. (Basically the rom Devs are going to eventually slowly STEAL Zeps ideas. But we will not forget.
My old HD2 memory mngt system was an ALL or NOTHING workaround so it suffered in that regard.. The way my S3 with stock ICS is handling things right now is surprisingly good. I did a test last night opening as many apps as possible until I basically ran out of FREE ram. At that point, the OS was doing it's thing, killing another app or 2 so it could run the new app launched. Multitasking...or switching to newly launched apps and then returning to previously launched apps where they left off....worked near flawless and FAST on my i747m. When I woke up today, 3/4 of the apps were still in memory ready for resuming.
This is why I went from 2 years of OBSESSIVE flashing and tweaking....to using my new S3 with the Stock rom and about 1/100th of the tweaks. Super STABLE and not a slouch. I hope the upgrade to JB...well....is an UPGRADE. yadda yadda yadda...:good:
Hey, for shi.tz n giggles do that aLogcat test that I describe in the multitasking OP... I'd be interested to see what your max hidden app limit is
Install aLogcat, run as many apps as you can, run aLogcat and search for longer.
Most people get this before the mod...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The 16th hidden app gets killed because the limit is usually 15.
zeppelinrox said:
Hey, for shi.tz n giggles do that aLogcat test that I describe in the multitasking OP... I'd be interested to see what your max hidden app limit is
Install aLogcat, run as many apps as you can, run aLogcat and search for longer.
Most people get this before the mod...
The 16th hidden app gets killed because the limit is usually 15.
Click to expand...
Click to collapse
For you Zep, I do about any test you asked me to do! Respect! :good:
Stay tuned....possible depression, followed by possible "V6...light at the end of the tunnel".
themadproducer said:
For you Zep, I do about any test you asked me to do! Respect! :good:
Stay tuned....possible depression, followed by possible "V6...light at the end of the tunnel".
Click to expand...
Click to collapse
LOL thanks for the kind words man
zeppelinrox said:
LOL thanks for the kind words man
Click to expand...
Click to collapse
OK, I used System Tuner Pro's log and guess what....checked a dozen times....
hidden #51
Yup...and also using "free" in STP terminal, I have 115mb free close to 1.6gb used.
I cross referenced by reopening the apps and most of them were still in ram memory.
Actually, a few games I was testing almost 20hrs ago, were still in ram. That surprised me.
So these games/apps were not killed off by idle time auto killing.
This is why I haven't tried any CM or custom roms. This thing seems to be doing way better...then the forums would lead me to believe. I was FLASH happy with my HD2 and never quite satisfied but this thing is so much better...and mostly stock.
What do you think Zep...honestly, have you heard any similar reports?
UPDATE: now i am down to 83mb free...still rock solid smooth.
So, you're using the "ultimate jars" script in conjunction with which ROM? And did you use in conjunction with the supercharger script?
Just trying to understand exactly what is required to "fix" the multitasking issue.
themadproducer said:
OK, I used System Tuner Pro's log and guess what....checked a dozen times....
hidden #51
Yup...and also using "free" in STP terminal, I have 115mb free close to 1.6gb used.
I cross referenced by reopening the apps and most of them were still in ram memory.
Actually, a few games I was testing almost 20hrs ago, were still in ram. That surprised me.
So these games/apps were not killed off by idle time auto killing.
This is why I haven't tried any CM or custom roms. This thing seems to be doing way better...then the forums would lead me to believe. I was FLASH happy with my HD2 and never quite satisfied but this thing is so much better...and mostly stock.
What do you think Zep...honestly, have you heard any similar reports?
UPDATE: now i am down to 83mb free...still rock solid smooth.
Click to expand...
Click to collapse
Wow I've never heard of a stock rom having the app limit set to 50.
However when you type free in terminal, how much is system tuner reporting as free?
There is a difference because the free command in terminal is always very low whereas apps like system tuner/task managers always report free ram as "free ram + cached apps" which is a much bigger number.
Can you post a deodexed services.jar (it's probably odex tho since it's a stock rom) or at least the smali files?
The windows patcher should be able to decompile it.
If it's not sense I'd only have to look at ActivityManagerService.smali and ProcessList.smali.

AOKP RAM issues

i've have AOKP_JB_MR1_Build-6 and its been good.
My only complaint is the ram usage. I know most of you
guys are firm believers in letting the system manage the memory.
I enabled the the ram bar in the apps switcher, and
I constantly have 22 mb of ram out of 654 MB.
My phone constantly feels slow and lags.
When I clear all the apps, and regain Ram
my phone feels speedy, and runs good.
A phone with 1GB of Ram shouldn't be slow
or eat this much ram. Are there bugs or what?
Thanks guys
beniamin said:
i've have AOKP_JB_MR1_Build-6 and its been good.
My only complaint is the ram usage. I know most of you
guys are firm believers in letting the system manage the memory.
I enabled the the ram bar in the apps switcher, and
I constantly have 22 mb of ram out of 654 MB.
My phone constantly feels slow and lags.
When I clear all the apps, and regain Ram
my phone feels speedy, and runs good.
A phone with 1GB of Ram shouldn't be slow
or eat this much ram. Are there bugs or what?
Thanks guys
Click to expand...
Click to collapse
@beniamin it doesnt lag for me at all even with high ram usage i got like 4 mb free right now and it runs butter smooth lol fyi -im running it with purity v30 kernel
It's partially an AOKP thing and also a 4.2 thing. AOKP and CM always ate more RAM for me since ICS.
On stock 4.2, ram management is also bad.
Everyone like to say android bla bla bla manages RAM well bla bla bla.
Android manages RAM well IF the core system doesn't rape RAM.
So basically the android uses some ram. And leaves the remaining ram for caching apps all the time. Now when the system runs out ram, the phone will kill an app to free RAM. Sounds good right? Well, the problem is that on 4.2, the system eats up so much RAM that apps don't even get a chance to be cached. And when you switch over to another app the system will kill other apps first then launch your requested app. This whole process takes a long time as the system is now hogging more ram all the time.
The best part is the system will continue to leak more and more ram as uptime increases.
As 4.2 have so many RAM leaks,the only quick solution will be to use a 4.1 rom.
I measure RAM used like this, works pretty well. Go to settings - apps - running. The blue is Android system + services. Services are apps that will not be killed unless absolutely necessary. Gray is not exactly "free RAM". The gray portion is the amount of RAM the system can use for caching purposes. You actually want the gray portion to be as high as possible.
A picture of 4.1 and 4.2 can sum this entire paragraph xD
I use stock 4.1 and 4.2 as comparison as custom roms almost always have higher ram utilisation.
On stock 4.1,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
On stock 4.2
Sent from my Galaxy Nexus using Tapatalk 4 Beta
What's going on?
Linux is borrowing unused memory for disk caching. This makes it looks like you are low on memory, but you are not! Everything is fine!
Why is it doing this?
Disk caching makes the system much faster! There are no downsides, except for confusing newbies. It does not take memory away from applications in any way, ever!
What if I want to run more applications?
If your applications want more memory, they just take back a chunk that the disk cache borrowed. Disk cache can always be given back to applications immediately! You are not low on ram!
Do I need more swap?
No, disk caching only borrows the ram that applications don't currently want. It will not use swap. If applications want more memory, they just take it back from the disk cache. They will not start swapping.
How do I stop Linux from doing this?
You can't disable disk caching. The only reason anyone ever wants to disable disk caching is because they think it takes memory away from their applications, which it doesn't! Disk cache makes applications load faster and run smoother, but it NEVER EVER takes memory away from them! Therefore, there's absolutely no reason to disable it!
Why does top and free say all my ram is used if it isn't?
This is just a misunderstanding of terms. Both you and Linux agree that memory taken by applications is "used", while memory that isn't used for anything is "free".
But what do you call memory that is both used for something and available for applications?
You would call that "free", but Linux calls it "used".
Click to expand...
Click to collapse
AOKP and android respect this concept, AOKP use more ram because loading more App ( idk why ) on memory, there's no lag. The system will be more smooth and faster than before, because AOKP don't reload from disk app but "launch" from ram ( ram is alot faster than SSD ).
If this things cause lag, there's some "malformed" app that use resource.
d0ge01 said:
AOKP and android respect this concept, AOKP use more ram because loading more App ( idk why ) on memory, there's no lag. The system will be more smooth and faster than before, because AOKP don't reload from disk app but "launch" from ram ( ram is alot faster than SSD ).
If this things cause lag, there's some "malformed" app that use resource.
Click to expand...
Click to collapse
Doesn't matter what they say, if you feel that there is lag when you are using your phone, then there is lag, no 2 ways around it.
4.1.2 is more fluid than 4.2.2 with the same apps running for me, seems like a memory leak issue on 4.2.2, hopes 4.3 fixes this..
Here is the comparison of AOKP vs AOSP 4.2 ( dark and grey backgrounds accordingly). The setups are 95% identical - same apps, same usage pattern. After some time both needs to rebooted due to memory leaks
Sent from my Galaxy Nexus
g1DDriver said:
Here is the comparison of AOKP vs AOSP 4.2 ( dark and grey backgrounds accordingly). The setups are 95% identical - same apps, same usage pattern. After some time both needs to rebooted due to memory leaks
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
i saw screen, but i don't think there are some memory leak, AOKP team hardly work over to fix them, anyway it's possible, but i used AOKP 4.2 for without any problem, without rebooting for days ( max uptime is 4 days )
d0ge01 said:
i saw screen, but i don't think there are some memory leak, AOKP team hardly work over to fix them, anyway it's possible, but i used AOKP 4.2 for without any problem, without rebooting for days ( max uptime is 4 days )
Click to expand...
Click to collapse
I was talking about memory leaks in Android in general (not AOKP related), and that's definitely the case with 4.2 The screens are for demonstration that AOKP needs more RAM to begin with. If you try most recent PA builds with halo, there you need even more memory. I guess it the price you pay for additional stuff under the hood
Sent from my Galaxy Nexus
my thoughts about this RAM issues:
https://plus.google.com/u/0/106590215548240805185/posts/MECZP5mqKfJ
beniamin said:
i've have AOKP_JB_MR1_Build-6 and its been good.
Click to expand...
Click to collapse
Why are you running an old build? Try updating to the 5/18 build or even Milestone 1 after a full wipe and don't restore any apps until you see if the RAM issue's still there.
Sent from my Mahjong Nexus
Try to reinstall another rom
Finally!! I thought it was just me. It was same for me on CM,AOKP,PA,AK47, all of them....I dont know why. I have greenify, plus I try to make sure least no. of apps run in background.
Finally switched to stock 4.2.2. Not a big issue now, very very rarely does it go below 80mb. Plus its fairly smooth. Oh well.....
I've never had lag issues with AOKP and ram
Try Using....
beniamin said:
i've have AOKP_JB_MR1_Build-6 and its been good.
My only complaint is the ram usage. I know most of you
guys are firm believers in letting the system manage the memory.
I enabled the the ram bar in the apps switcher, and
I constantly have 22 mb of ram out of 654 MB.
My phone constantly feels slow and lags.
When I clear all the apps, and regain Ram
my phone feels speedy, and runs good.
A phone with 1GB of Ram shouldn't be slow
or eat this much ram. Are there bugs or what?
Thanks guys
Click to expand...
Click to collapse
I run Aokp 4.2.2 Milestone Build with Franco Kernel, I was having a pretty similar issue not so much of the lag necessarily but my ram drain was unbelievable, well anyway i was on "Android Police" one day and was reading an article about apps running in background blah blah blah and came across an app recommendation called "GREENIFY" You go threw and hibernate a few if not all the apps that dont have anything to do with the system like Facebook or GMapps, Gmail Etc... and once they are grennifyed they will stay closed no random background data will start app untill you either open that app again or you go back in and ungreenify it, the only downfall (and only to some) is that, say you greenify facebook you will not receive instant notifications from a post or msg etc... Ive been using this for almost three months now, works awesome it remembers all the apps you greenify and will stay every time you reboot your phone,
---------- Post added at 07:51 AM ---------- Previous post was at 07:45 AM ----------
Rich8692 said:
I run Aokp 4.2.2 Milestone Build with Franco Kernel, I was having a pretty similar issue not so much of the lag necessarily but my ram drain was unbelievable, well anyway i was on "Android Police" one day and was reading an article about apps running in background blah blah blah and came across an app recommendation called "GREENIFY" You go threw and hibernate a few if not all the apps that dont have anything to do with the system like Facebook or GMapps, Gmail Etc... and once they are grennifyed they will stay closed no random background data will start app untill you either open that app again or you go back in and ungreenify it, the only downfall (and only to some) is that, say you greenify facebook you will not receive instant notifications from a post or msg etc... Ive been using this for almost three months now, works awesome it remembers all the apps you greenify and will stay every time you reboot your phone,
Click to expand...
Click to collapse
http://www.androidpolice.com/2013/02/15/new-app-greenify-keeps-rooted-devices-running-smoothly-by-hibernating-specified-apps-when-theyre-not-in-the-foreground/
Enjoy! Hopefully that helps.

[Q] 4.3 high RAM usage?

I did fresh install of 4.3 and it runs very nice... well until it runs out of RAM.
I`ve noticed this couple of times that device slows down and when I press home icon there`s nothing on the "desktop" only launcher apps icon and I have to wail couple of seconds while thing loads into memory...
I don`t have many 3rd party apps and have disabled some on the system side.
When problem occurs I can see in Settings that there is only 30-40MB of RAM left.
For an example I was surfing today (system browser) while listening to music with doubletwist music player and doubletwist suddenly stopped playing because it was stopped to free some memory for browser...
Anybody noticed this too?
There is obviously a high memory usage on 4.3. Any advice for this?
I`m running stock unrooted
Sorry for my bad english
ciao sei italiano vero? Cmq io ti consiglierei di aspettare la cyanogen 10.2 è sempre meglio ottimizzata rispetto alla stock, I have the same problem with 4.2.2 but with greenify(app) and lagfix free, is partitially solved, or you can try to set 4 app backgroud in developer option and disable all animation in developer option
ram usage should be fine on stock. on cm10.2 this is the situation after 50 hours of uptime
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
shriom_manerker said:
ram usage should be fine on stock. on cm10.2 this is the situation after 50 hours of uptime
Click to expand...
Click to collapse
I hope you're not saying that screen shot is an example of fine, you've got basically no memory free.
Memory use in 4.3 is definitely higher. You can pretty much forget about multitasking with Chrome now, as soon as I start using it other apps start getting killed left and right.
pfmiller said:
I hope you're not saying that screen shot is an example of fine, you've got basically no memory free.
Memory use in 4.3 is definitely higher. You can pretty much forget about multitasking with Chrome now, as soon as I start using it other apps start getting killed left and right.
Click to expand...
Click to collapse
Think you might have hit on the magic word.... Chrome (or any other browser). On the Xperia forum lots are noticing that browsers (all of which open @ about 40MB ram usage) are just continuing to grow in ram usage, even when not being used, to ridiculous levels (100's of MB)
Maybe you could take a look at individual process ram usage and report back.... Curious to see if there's the same happening on GNexi
sent from my still superb Google I/O 7510 (xda hd)
pfmiller said:
I hope you're not saying that screen shot is an example of fine, you've got basically no memory free.
Memory use in 4.3 is definitely higher. You can pretty much forget about multitasking with Chrome now, as soon as I start using it other apps start getting killed left and right.
Click to expand...
Click to collapse
what i meant was , it is definitely high on cm10.2 roms but its fine on stock roms and stock based custom roms like catacalysm, the free ram is about 120 mb even after 50 hours of usage but on cm 10.2 and other JSS15J based roms its really crazy and phone runs out of memory
tanasczn said:
You can pretty much forget about multitasking with Chrome now!!!
Click to expand...
Click to collapse
Almost all the browsers are facing memory issues.
I use a few other browsers like Dolphin and UC and even they are eating up memory
Especially during downloads, these browsers crossed 170MB RAM usage :cyclops:
You can send feedback to help the devs to help them with this.
But I'm sure they have already started working on these issues.
tanasczn said:
You can pretty much forget about multitasking with Chrome now!!!
Click to expand...
Click to collapse
neerajvd said:
Almost all the browsers are facing memory issues.
I use a few other browsers like Dolphin and UC and even they are eating up memory
Especially during downloads, these browsers crossed 170MB RAM usage :cyclops:
You can send feedback to help the devs to help them with this.
But I'm sure they have already started working on these issues.
Click to expand...
Click to collapse
So this pretty much confirms what i asked in post #5
Possibly related to DoubleTwist?
For an example I was surfing today (system browser) while listening to music with doubletwist music player and doubletwist suddenly stopped playing because it was stopped to free some memory for browser...​
I am running stock rooted 4.1.1 on my toroplus and am only posting here because DoubleTwist (DT) was mentioned in OP. DT must be a memory hog because when I try to stream music with DT over BT simultaneously with Google Nav, DT and Google Nav seem to knock each other out of memory, i.e., sometimes DT will quit while Nav remains running and other times Nav will quit while DT remains running. Bottom line is both apps won't stay running simultaneously for any appreciable length of time.
I then used Poweramp for BT streaming and experienced no such issues, that is, I can listen to music and turn-by-turn nav directions at same time w/o apps killing each other off.
.....uh.... JSS15J isn't a build for the gnex. JWR66Y is.
a manta sent this.
I'm running 4.3 (second update) on a stock galaxy necus ROM (takju) and my free ram nowadays is 18MB
When i restart the phone i get about 350MB of RAM free, which immediately start decreasing as i use the phone until it gets to the 18MB.
I know i ran out of memory when i press the home button and i have to wait for the items to be drawn on the desktop again ... I'm considering flashing back to original 4.3 or 4.2 because of this
Free ram is idle ram... Having free ram means its lazy and not doing anything. High ram usage simply means apps are stored in it... Shouldn't really concern yourself with ram.
Sent from my Galaxy Nexus using xda app-developers app
cstrife999 said:
Free ram is idle ram... Having free ram means its lazy and not doing anything. High ram usage simply means apps are stored in it... Shouldn't really concern yourself with ram.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
...but having more idle RAM means you have space for more running background apps, i.e. apps will be less probably closed and cleared out of RAM. If one really runs that many app, the difference of free RAM actually tells.
And my GNex always has ~500MB free RAM (not just after boot!), ready for action.
Sent from Google Nexus 4 @ CM10.2
cstrife999 said:
Free ram is idle ram... Having free ram means its lazy and not doing anything. High ram usage simply means apps are stored in it... Shouldn't really concern yourself with ram.
Click to expand...
Click to collapse
No, the memory is being used up by the system not by apps. The system should use as little memory as possible so that it is available to your apps. Wasted memory is as bad as fee memory, either way it's not being put to proper use.
so basically there's a lot of talk about this,a lot of people with the same problem and no solution whatsoever !?
AndyYan said:
...but having more idle RAM means you have space for more running background apps, i.e. apps will be less probably closed and cleared out of RAM. If one really runs that many app, the difference of free RAM actually tells.
And my GNex always has ~500MB free RAM (not just after boot!), ready for action.
Sent from Google Nexus 4 @ CM10.2
Click to expand...
Click to collapse
Can u tell me how u get so much free ram.
sent from a phone running on SLIM ROM
This is my ram usage before and after a game my phone still runs smooth and fast as someone said left over ram is lazy if you have left over ram be great full. Touchwiz always uses alot of ram from my experience
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
DaveyRepairs said:
This is my ram usage before and after a game my phone still runs smooth and fast as someone said left over ram is lazy if you have left over ram be great full. Touchwiz always uses alot of ram from my experience
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
atishey23 said:
Can u tell me how u get so much free ram.
sent from a phone running on SLIM ROM
Click to expand...
Click to collapse
Advanced Task Killer Pro (kill ALL apps except Launcher and IME) and Autostarts (ban most auto-start privileges for apps, prevents apps from eating up memory automatically).
Do note that this is not practical for daily use, as this may sacrifice some functionalities (e.g. Bluetooth file transfer function). I don't use my GNex as my primary device so it doesn't matter for me. You can still get ~400MB free RAM if you don't ban privileges related to functionalities.
Sent from Google Nexus 4 @ CM11
---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------
DaveyRepairs said:
This is my ram usage before and after a game my phone still runs smooth and fast as someone said left over ram is lazy if you have left over ram be great full. Touchwiz always uses alot of ram from my experience
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
...It doesn't look like you have a GNex...
Sent from Google Nexus 4 @ CM11
I wouldn't recommend to use a task killer.
A better solution is Greenify which hibernates the app if it is in background. It's using less RAM when hibernated but it is started pretty fast if needed.
Another solution would be to flash a big memory kernel, or use ZRAM.
You can also try Android 4.4 where the RAM management improved a lot.

[QUESTION] Apps being killed

Hello.
I got a Mi A2 Lite a few days ago, is my first Android One. My model have 3Gb of RAM.
I'm facing the following problem:
Let's say I'm playing Lords Mobile (the only game I play). Then, I receive a message on WhatsApp. I go there and reply. I then go to Facebook and/or Chrome to check something, and want to go back to Lords Mobile. The game was pulled out from memory, and need to reload again from zero. Same with Chrome, it shows all my tabs I had opened, but is surelly reloading again from zero. Is like the "clear all" of 'recent apps' on some other phones.
I think 3Gb of RAM is enough to handle these apps, don't? I don't have too much apps installed, and the memory use is about 2Gb. I don't know if this behavior is native, by the way. Another example: if I go to sleep just after play, when I go to game again in the morning, the game reload from zero.
Is this normal? Any way to make this model handle the memory in a better way, if is the case?
My device is on Pie, July security patch. No root.
Thanks in advice
It gets better over time. There is "AI" that figures out what to keep in memory.
But in general, pie seems to be worse than previous releases at keeping things in memory, even when memory is not full.
a1291762 said:
It gets better over time. There is "AI" that figures out what to keep in memory.
But in general, pie seems to be worse than previous releases at keeping things in memory, even when memory is not full.
Click to expand...
Click to collapse
Thanks.
Is there a way to get rid of AI, or set an app to be excluded from this?
romulocarlos said:
Is there a way to get rid of AI, or set an app to be excluded from this?
Click to expand...
Click to collapse
Not that anyone seems to know. Maybe custom ROMs help?
I just used my phone like normal and noticed that it got better at not unloading apps that I came back to regularly.
You can try to force Android Go mode, since it's designed for really small RAM use but I tried it and didn't like it (changes some things).
a1291762 said:
Not that anyone seems to know. Maybe custom ROMs help?
I just used my phone like normal and noticed that it got better at not unloading apps that I came back to regularly.
You can try to force Android Go mode, since it's designed for really small RAM use but I tried it and didn't like it (changes some things).
Click to expand...
Click to collapse
Thank you. I don't go for Android Go, seems worse. lol
Any other suggestions will be welcome.
It's not AI, it's the Kernel's scheduler profile, and Xiaomi is famous for tuning it with an aggressive policy towards keeping as much RAM available as possible. The only way to improve it is by installing a custom kernel.
slimshady76 said:
It's not AI, it's the Kernel's scheduler profile, and Xiaomi is famous for tuning it with an aggressive policy towards keeping as much RAM available as possible. The only way to improve it is by installing a custom kernel.
Click to expand...
Click to collapse
Well, custom kernel and ROMs means unlocking bootloader... I can't do this for now. But, anyway, thanks!
3 gigs of ram is barely enough for pie. On the 4 gig version I have barely 1 gig free at idle. But mostly, the app kill is done by a crappy A.I. system that does some battery optimization.
TheoXSD said:
3 gigs of ram is barely enough for pie. On the 4 gig version I have barely 1 gig free at idle. But mostly, the app kill is done by a crappy A.I. system that does some battery optimization.
Click to expand...
Click to collapse
Well, taking in note what @slimshady76 wrote above, maybe the "Butterfly for daisy" will be a good deal. But I can't do it now.
I just made a test on last 2 days.
I uninstalled any optional app on phone I downloaded, and disabled a lot of system apps. Lords Mobile won't unload from memory when switching and/or when I sleep and back to game at morning.
So, is a lack of memory, but I still thinking 3Gb is enough to handle it. When 10.0.12.0 comes available to download, I'll try Butterfly kernel.

Categories

Resources