[SOLUTION] Optimize Multitasking and RAM Management - G3 General

Hello,
I'm a Senior-Moderator in the biggest german speaking Android community. A user has discovered a way how you can optimize the RAM management and multitasking on the LG G3 2GB RAM version. More and more users are reporting about apps, that are closed to fast. Also for me, this was very depressing.
We are not responsible for any damages to you, your device or your data!!!!
Of course you will ned root for this.
When you look at a Nexus you can see, that multitasking works much better. This isn't only the fact, that on Nexus devices don't runs any OEM software. The main problem is, that the 3GB and 2GB versions often run with the same ROM. When you start the G3 about 1.3 GB of RAM is used. When you start the Nexus 5 for example, only about 800-900MB is used.
LG defines these values, how much RAM should be used by the system, in the "build.prop". If we change these values, we can reduce force closes at multitasking.
You have to change following values:
"ro.sys.fw.mOomMinFree1"
....
...
"ro.sys.fw.mOomMinFree6"
To change these values, you can use this tool for example: https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor
When you use Lollipop klick on the PENCIL right on the bottom! Don't edit it with the UI you get presented first!
These are the recommended values (the values are given in KB):
Code:
ro.sys.fw.mOomMinFree1=49152
ro.sys.fw.mOomMinFree2=61440
ro.sys.fw.mOomMinFree3=65000
ro.sys.fw.mOomMinFree4=70000
ro.sys.fw.mOomMinFree5=80000
ro.sys.fw.mOomMinFree6=100000
NOTE!!!! These values are not final and you can test other values. We would appreciate that! So we could find the perfect values for our G3!
Credits:
The analysis and the recommended values goes to this user here: @systemstress
Translation by me

tried but seems not working never ending reboot...

Same config :laugh: http://forum.xda-developers.com/showpost.php?p=56228170&postcount=1259

Important!
This is not working on Lollipop, phone will restore defult valute after reboot (if you are unluckey bootloop?)

Settings stick for me on AN 3.3. Dont know if they are better or not at the moment

The values remained after reboot for me, so I guess does work on Lollipop

robalm said:
Important!
This is not working on Lollipop, phone will restore defult valute after reboot (if you are unluckey bootloop?)
Click to expand...
Click to collapse
It works just fine on mine (2GB D855) and I'm on Chupachubs Lollipop rom. I used the suggested tool and no bootloop and changes are persistent.
---------- Post added at 08:28 PM ---------- Previous post was at 08:12 PM ----------
Okay this REALLY makes a huge difference on my phone!!
I have debloated the rom as much as I could, but it still wasn't good.
With this fix it's simply perfect!!
Like my good ol' Nexus 5!
Thank you sooooo much!
Running Facebook, Maps, Chrome and Google Inbox and no apps close down on 2 GB version!

i have 3gb G3. will these settings work? thanks
Sent from my LG-D855 using xda premium

robalm said:
Same config :laugh: http://forum.xda-developers.com/showpost.php?p=56228170&postcount=1259
Click to expand...
Click to collapse
As I said. I took the settings from a user in our german speaking board.
It works definitely on Lollipop. I have configured my build.prop like this and more RAM is available for multitasking now.

will this drain battery faster if apps aren't closed?
Sent from my LG-D855 using xda premium

Nope. RAM is always under voltage. It is doesn't matter if the RAM is full or not.

@ phankhi ....you dont need this settings with 3gb ram

@systemstress Discovered something. When you use the build.prop Editor App, you have to click on the pencil right on the bottom. Then it will be saved after a reboot. Otherwise there can be problems.

You can also use any app that lets you change OOM values, like tricksterMOD or 'memory manager' by JRummy.. This will change the value just after boot and leave the build.prop unchanged.

Works!
Can feel and see it directly.

There is a big difference with those values :
http://forum.xda-developers.com/lg-g3/general/guide-build-prop-tweaks-free-ram-t2825693
What will it change and what is supposed to be the best?

Rafael1000 said:
There is a big difference with those values :
http://forum.xda-developers.com/lg-g3/general/guide-build-prop-tweaks-free-ram-t2825693
What will it change and what is supposed to be the best?
Click to expand...
Click to collapse
The values in that thread are just plain idiotic, even on the 3GB model. You need to free up sufficient RAM so that any app can run, but not so much that you close everything.

Not working for me... D851 3gb version.

Reposted thread
I already make this thread on July 2014
See here
http://forum.xda-developers.com/lg-g3/general/guide-build-prop-tweaks-free-ram-t2825693
I'm on 2gb ram 16gb roms..
The ram usage is very very iritating

spiderio said:
Reposted thread
I already make this thread on July 2014
See here
http://forum.xda-developers.com/lg-g3/general/guide-build-prop-tweaks-free-ram-t2825693
I'm on 2gb ram 16gb roms..
The ram usage is very very iritating
Click to expand...
Click to collapse
Your 'tweaks' are the exact opposite to this. As has already been said, we dont want more free RAM, we want less, we want the RAM to actually be used, which is the point of it being there..

Related

[SUGGESTION] V6 Supercharger script integration for our SGS1s

To the attention of all ROM/Kernel devs I would like to introduce the one and only RAM solution for android
Developed and updated by zeppelinrox, the V6 Supercharger Script:
http://forum.xda-developers.com/showthread.php?t=991276
Some may have heard about it, some may have read/written a thread about it, but I want it to become more popular, at least here in the SGS community.
The ROM I'm on has this ram script integrated, but I feel that there is more that could be achieved for both ROM and Kernel related Ram management.
If you reed carefully you will notice that latest update of the script has included a 'hard to kill launcher' and 'kernel tweaks' options in the installation. And since I have no idea about code I would like the devs of this community to try, think and maybe open an united project for proper integration of this script on our device.
Since my time on the XDA I have come to realize after countless flashing how many people do real and hard work and share it here on this forum. I humbly bow before you all in respect and ask you as a fan, as one looking upwards filled with hope , to consider.
I thank you for your spend time in advance.
Cheers from Bulgaria and again props for all hardworking people in this forum
moe
The opinions of people using the Supercharger script in their systems would also be very appreciated for making this script more popular.
Free RAM levels with integrated Supercharger in Simplicity ROM
- Multitasking Ram levels: 50s/60s
- Normal Free Ram levels (with excluded widgets): 90s/110s
- Gaming Free Ram levels: 140MB +
This is on GalaxianEE Kernel with 334MB Free Kernel Ram
Really .. no interest ...
The developer of this script wants people to be leaded to original page of the script, he does not want developers to intergrate it to their rom.
Edit: ignore what i said...
Sent from my GT-I9000 using xda premium
its very useful
i use customized settings(option 10):10 16 24 48 56 72
no launcher redraw,no memory leak,everything smooth
sun8ross said:
its very useful
i use customized settings(option 10):10 16 24 48 56 72
no launcher redraw,no memory leak,everything smooth
Click to expand...
Click to collapse
This is exactly the feedback I was looking for. Thanks sun8ross!
Please, any other users feedback will be also greatly appreciated.
hmm i tried it, but it seems like the improvement is negligible... is it because our SGS already has plenty of RAM? The script was made for low-RAM phones in the first place right?
sun8ross said:
its very useful
i use customized settings(option 10):10 16 24 48 56 72
no launcher redraw,no memory leak,everything smooth
Click to expand...
Click to collapse
So i was playing more with the settings, and finally mine are:
/sys/module/lowmemorykiller/parameters/minfree
[2560, 4096, 6144, 11264, 13312, 16384] [ 10, 16, 24, 44, 52, 64]
/data/SuperChargerMinfree
[2048, 4096, 12288, 18432, 24579, 30720] [ 8, 16, 48, 72, 96, 120]
and, wow!
I'd wish it would be integrated in roms or kernels. it's simply the best. but it's to complicated, for doing it every time i change the rom (or/and kernel?)
moegrave said:
So i was playing more with the settings, and finally mine are:
/sys/module/lowmemorykiller/parameters/minfree
[2560, 4096, 6144, 11264, 13312, 16384] [ 10, 16, 24, 44, 52, 64]
/data/SuperChargerMinfree
[2048, 4096, 12288, 18432, 24579, 30720] [ 8, 16, 48, 72, 96, 120]
and, wow!
Click to expand...
Click to collapse
Sorry for the noob question, but why do you list two sets of parameters? I can only set one when running supercharger...
ZioGTS said:
Sorry for the noob question, but why do you list two sets of parameters? I can only set one when running supercharger...
Click to expand...
Click to collapse
As far as I get it, the supercharger script overwrites the stock OS LMK settings, but with that it works on demand and chooses how to act (before and instead of the stock os one)
The values in /sys/module/lowmemorykiller/parameters/minfree are the stock ones, I think..
The ones in /data/SuperChargerMinfree are the ones which the script uses to overwrite.
I listed the two values, because we have a safe backup for playing with the values as far as I understand from reading in the original thread.
That's why I listed this thread in General, because I need more opinions. And on the thing if it's only for low RAM phone, I do not agree. This script have massively improved all RAM management that I have ever wanted.
Please feel free to share settings and opinions on those settings in this thread!
P.S.
ZioGTS, not a noob question, but a good remark for me not being clear enough. Thanks
one with failed l' to have on Rom GingerReal but damage
moegrave said:
ZioGTS, not a noob question, but a good remark for me not being clear enough. Thanks
Click to expand...
Click to collapse
Thanks to you! I'm currently testing MegaRam 1 setting, but I think it's a little bit unbalanced on sgs... Maybe needs some tweaking.
Sent from my GT-I9000 using XDA App
ZioGTS said:
Thanks to you! I'm currently testing MegaRam 1 setting, but I think it's a little bit unbalanced on sgs... Maybe needs some tweaking.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
UPDATE: I tried your settings (8, 16, 48, 72, 96, 120) and I feel they are much better than MegaRam 1!!! I'm sticking with these values for some time and see what happens. Thanks!
ZioGTS said:
UPDATE: I tried your settings (8, 16, 48, 72, 96, 120) and I feel they are much better than MegaRam 1!!! I'm sticking with these values for some time and see what happens. Thanks!
Click to expand...
Click to collapse
I played around and found out that these settings work really nice for me. Not too aggressive and yet I have a lot of free RAM for multi or single tasking. Thanks for the feedback!!
Hi,
I just thought that I will share my settings for SGS as well. I've already played around with various settings like: Agressive (option 1); Balanced 1.2.3 (options: 4,5,6); MegaRam 1 and 2 and a few my customized settings.
With every setting I had a bulletproof launcher (it was not restarting at all), but I found that after a day of using a phone the applications started to start slower.
Again I made some customized settings and now use the following numbers:
6,8,30,60,80,100
Maybe it will work for some one as well.
vitoski said:
Again I made some customized settings and now use the following numbers:
6,8,30,60,80,100
Click to expand...
Click to collapse
Nice, actually my initial settings were: 8, 12, 40, 60 ,80, 100.
I have two questions for you: 1) what is your normal free ram values
2) have you tried my settings
moegrave said:
Nice, actually my initial settings were: 8, 12, 40, 60 ,80, 100.
I have two questions for you: 1) what is your normal free ram values
2) have you tried my settings
Click to expand...
Click to collapse
Sorry but do not remember what settings I had before I applied V6supercharger. Nevertheless my free memory was something around 50 MB. Now with current V6sett I have around 70-80.
What I found is that every time I start "Cut the rope" game, both contacts and dialer get killed.
If I go with balanced settings, there is a high chance they will stay in memory, but the apps start slower after a day or two.
So the best compromise would be to have the settings that prevent our most willing apps to be killed and the other not.
Best of the best solutions would be to have a chance to decide which app is running on each slot of Lowmemkiller. This case we could have our contacts and dialer untouched even with low memory...
Now we can only guess. Somewhere I read that most apps run in slot 3 therefore giving this too high value will cause them to be closed by any further app start.
There is no point to have more free ram if android needs to load the same app over and over again cause it got killed already...
Sorry for making it so long
EDIT:
I had to modify my settings, because when I played high resources consuming game it closing after a short while and I was left with home screen...
Now I have the following values:
6,8,26,34,60,80
They were already tested with same game and other things. So far so good, however I think apps start a little bit slower.
Just to make everything straight, I am on Galixian GT.
Anyone has some other good configuration? Maybe you use SuperchargerBeta3 with kickasskernel?
Sent from my GT-I9000 using xda premium
vitoski said:
Sorry but do not remember what settings I had before I applied V6supercharger. Nevertheless my free memory was something around 50 MB. Now with current V6sett I have around 70-80.
What I found is that every time I start "Cut the rope" game, both contacts and dialer get killed.
If I go with balanced settings, there is a high chance they will stay in memory, but the apps start slower after a day or two.
So the best compromise would be to have the settings that prevent our most willing apps to be killed and the other not.
Best of the best solutions would be to have a chance to decide which app is running on each slot of Lowmemkiller. This case we could have our contacts and dialer untouched even with low memory...
Now we can only guess. Somewhere I read that most apps run in slot 3 therefore giving this too high value will cause them to be closed by any further app start.
There is no point to have more free ram if android needs to load the same app over and over again cause it got killed already...
Sorry for making it so long
EDIT:
I had to modify my settings, because when I played high resources consuming game it closing after a short while and I was left with home screen...
Now I have the following values:
6,8,26,34,60,80
They were already tested with same game and other things. So far so good, however I think apps start a little bit slower.
Just to make everything straight, I am on Galixian GT.
Anyone has some other good configuration? Maybe you use SuperchargerBeta3 with kickasskernel?
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
can you run kickasskernel with galaxian GT? i can't. If you get boot loops try flashing speedmod kernel t10
Hawkeye1103 said:
can you run kickasskernel with galaxian GT? i can't. If you get boot loops try flashing speedmod kernel t10
Click to expand...
Click to collapse
Same here... Bootloops with galaxian and kak... :-(
Sent from my GT-I9000 using XDA App

[Q] RAM on I9505

Hello guys,
i can't understand where disappear 2Gb memory on SGS4 i9505. I use stock ROM, minimum one time per day i need clean memory through "active aplication" manager because phone unresponsive, it is same situation as on my old phone SGS1 I9000 (512mb RAM). Even all aplication cleared still used 1.2Gb RAM of 1.78Gb physically memory. This is normal or i need begin flash a lot of custom ROM's for find something useful that realy works??? What is better way?
Thanks in advance for answers.
speedfire said:
Hello guys,
i can't understand where disappear 2Gb memory on SGS4 i9505. I use stock ROM, minimum one time per day i need clean memory through "active aplication" manager because phone unresponsive, it is same situation as on my old phone SGS1 I9000 (512mb RAM). Even all aplication cleared still used 1.2Gb RAM of 1.78Gb physically memory. This is normal or i need begin flash a lot of custom ROM's for find something useful that realy works??? What is better way?
Thanks in advance for answers.
Click to expand...
Click to collapse
Stock ROM is full of bloatware and stuff. This means you have a ****load of useless apps running in the background, and some useful ones too. You should root your phone, go to application manager and DISABLE all of the useless bloatware you never use (use caution though - some things depend on others. For example don't disable google services if you intend on using any of their things).
There are many apps out there which show you what's running in the background and taking most space. Are you sure your phone feels slower or it's just the RAM that worries you?
Keep in mind that apps keep running in the background so you can later open them quickly, so if you force close them the next time you open them it will be slower.
frrlod said:
There are many apps out there which show you what's running in the background and taking most space. Are you sure your phone feels slower or it's just the RAM that worries you?
Click to expand...
Click to collapse
Yes, i feel that phone slower, i wait too long time, while i check RAM it is almost full, and after cleaning RAM phone is more responsive.
Ok, i'll try disable some services in background with root phone, thank you.
I'm still using mine on the unbranded MDM which came with the phone.
I will wait a couple more days, and if they will not release a BTU update, i will flash the DBT one.
Since i have the phone ~May , i never had those lags and redraws like i see here from some users.
I'm not rooted at the moment and if i use apps/games and i just exit them, used RAM drops to ~0.98, i never clear them from memory, but if i do then the used ram drops to ~0.87.
speedfire said:
Hello guys,
i can't understand where disappear 2Gb memory on SGS4 i9505. I use stock ROM, minimum one time per day i need clean memory through "active aplication" manager because phone unresponsive, it is same situation as on my old phone SGS1 I9000 (512mb RAM). Even all aplication cleared still used 1.2Gb RAM of 1.78Gb physically memory. This is normal or i need begin flash a lot of custom ROM's for find something useful that realy works??? What is better way?
Thanks in advance for answers.
Click to expand...
Click to collapse
let the android system manage your ram.
any way, you want to see more free ram?
go to developers options and set "Background process limit" to 4 or less
samersh72 said:
let the android system manage your ram.
any way, you want to see more free ram?
go to developers options and set "Background process limit" to 4 or less
Click to expand...
Click to collapse
Do you recommend doing this for battery life improvement?
frrlod said:
Do you recommend doing this for battery life improvement?
Click to expand...
Click to collapse
it saves a little bit of battery.
but setting limit is not so good for multi-tasking, some apps (not cached in the background) will take a little more time to open, maybe you will not notice that. so if you set limit for example to 2, open running app in setting and press on "show cached process", you will see only 2 apps are cached in the background
samersh72 said:
let the android system manage your ram.
any way, you want to see more free ram?
go to developers options and set "Background process limit" to 4 or less
Click to expand...
Click to collapse
Yes, i did it, now on phone "Background proccess limit" is 4 app, but in any case during normal phone job 1.1Gb is used.
Simply i compare with my previous phone galaxy s I9000 that flashed with custom ROM on android 4.1 (comparable software) and i it perfectly and stable work with 512Mb RAM and 1gb (one core) proccessor. I don't play with games and don't feel high difference between two absolutely different hardware's & devices (i don't speak about screens). Old phone work very smoothly, it only uses half as much system resources relatively to new galaxy s4 i9505. Why i need use "Background process limit" option on newest device with 2Gb RAM, even think about it? What is payment for biggest high quality screen?
speedfire said:
Yes, i did it, now on phone "Background proccess limit" is 4 app, but in any case during normal phone job 1.1Gb is used.
Simply i compare with my previous phone galaxy s I9000 that flashed with custom ROM on android 4.1 (comparable software) and i it perfectly and stable work with 512Mb RAM and 1gb (one core) proccessor. I don't play with games and don't feel high difference between two absolutely different hardware's & devices (i don't speak about screens). Old phone work very smoothly, it only uses half as much system resources relatively to new galaxy s4 i9505. Why i need use "Background process limit" option on newest device with 2Gb RAM, even think about it? What is payment for biggest high quality screen?
Click to expand...
Click to collapse
no need and not mandatory to set process limit, it is for dev and testing purposes.
linux is smart enough to manage ram
samersh72 said:
no need and not mandatory to set process limit, it is for dev and testing purposes.
linux is smart enough to manage ram
Click to expand...
Click to collapse
Of course, but what reason unrational using memory on galaxy S4?
I can understand than system use 500Mb RAM even 700Mb but not over 1gb....
speedfire said:
Of course, but what reason unrational using memory on galaxy S4?
I can understand than system use 500Mb RAM even 700Mb but not over 1gb....
Click to expand...
Click to collapse
on S4, for example, you are dealing with almost 1.14 GB of system apps,
a lot of bloatwares....
samersh72 said:
on S4, for example, you are dealing with almost 1.14 GB of system apps,
a lot of bloatwares....
Click to expand...
Click to collapse
So, only one way remove excess system apps.
thanks for your help.

Ram down to 1100 MB?

The amount of RAM seems to have fallen to 1100 MB since 4.3. Is this also taken up by the GPU? Or what else could explain this?
Sent from my MB855 using xda app-developers app
I think it is taken up by system and other system staff. BTW, is the memory leak issue solved in 4.3?
Sent from my Nexus 10 using Tapatalk 4 Beta
The ram is not bogging up due to the surface flinger fix by driver correction. Yes the main problem is fixed, no more random reboot or freeze up. Let's party like its 1999!!!
drewskee said:
The ram is not bogging up due to the surface flinger fix by driver correction. Yes the main problem is fixed, no more random reboot or freeze up. Let's party like its 1999!!!
Click to expand...
Click to collapse
Thx for Great news!! My manta could finally work like a true monster device!
Sent from my Nexus 10 using Tapatalk 4 Beta
Koopa777 said:
The amount of RAM seems to have fallen to 1100 MB since 4.3. Is this also taken up by the GPU? Or what else could explain this?
Sent from my MB855 using xda app-developers app
Click to expand...
Click to collapse
Yes but the amount of free RAM I have available actually seems to have gone up.
Either way the device is working worlds better!
Sent from my Nexus 10 using Tapatalk HD
Is anyone else finding that apps are reloading more frequently? What's the standard limit? I had about 6 apps in my recent and a few of them had to reload upon selecting them from the list. A quick look at the free RAM is somewhere in the 700 MB ballpark. I don't recall this happening before as much.
User space ram was cut down to 1100mb with the 4.2 update by reserving 800mb for the gpu. The surfaceflinger plague seems to be fixed, we'll have to wait and see if that was the only culprit causing instabilities on our Nexus 10. So far, and this might be a placebo because I did a factory reset, things seem to run fairly OK, there are a few glitches and minor freezes, and yes even though there is plenty of ram, the min free values might need a bit tweaking because apps seem to get killed off for no apparent reason.
I'm guessing that it even might be possible to revert the decision to increase such a huge amount of ram for the gpu, which would leave more free ram for background apps. That is if Google doesn't abandon support for the device all together.
Sent from my Nexus 10 using Tapatalk 4 Beta
We really need to complaint about this. Advertised 2gb of ram, 1.1gb out of the box. Not fair!
---------- Post added at 11:24 AM ---------- Previous post was at 11:22 AM ----------
They need to give us more space. 1.5gb at least!
Free ram is waste ram.
The people complaining - when do you have an issue due to lack of free ram?
ultim said:
Free ram is waste ram.
The people complaining - when do you have an issue due to lack of free ram?
Click to expand...
Click to collapse
The only thing I'm complaining about is the abundance of free RAM and the fact that apps are getting killed off. I've only got a few running and I'm getting redraws after like.. 20 minutes.
mustbepbs said:
The only thing I'm complaining about is the abundance of free RAM and the fact that apps are getting killed off. I've only got a few running and I'm getting redraws after like.. 20 minutes.
Click to expand...
Click to collapse
Same here. Its quite annoying. That RAM is being totally wasted right now. I wouldn't care if I had 300MB left if my recent applications were actually KEPT in memory!
I experienced the issue initially after flashing the odexed version. even with 650mb+ tabs were reloading (all two if them) when accessing any other app. reflashed the zip and supersu and all is well here. though allocating another 100mb to the GPU seems questionable to me on Google's end.
all you experiencing the redraws update via ota?
Sent from my Nexus 10 using Tapatalk 4 Beta
vasili0s said:
I experienced the issue initially after flashing the odexed version. even with 650mb+ tabs were reloading (all two if them) when accessing any other app. reflashed the zip and supersu and all is well here. though allocating another 100mb to the GPU seems questionable to me on Google's end.
all you experiencing the redraws update via ota?
Sent from my Nexus 10 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yeah I sideloaded the OTA. I'd rather not lose my data. Thinking of trying the supercharge script to alter the min free values.
These values work really well on 4.3:
MinFree
12288,16384,51200,61440,71680,102400
oom_adj
0,1,4,7,10,15
Google is learning, with every release they keep getting closer to the ones I have been using for years. LOL
If you don't have init.d active you can adjust them in init.rc without any scripts. I haven't checked but they might be overwritten by ActivityManagerService.java at boot though. That is why I use init.d.
---------- Post added at 01:15 PM ---------- Previous post was at 01:01 PM ----------
vasili0s said:
I experienced the issue initially after flashing the odexed version. even with 650mb+ tabs were reloading (all two if them) when accessing any other app. reflashed the zip and supersu and all is well here. though allocating another 100mb to the GPU seems questionable to me on Google's end.
all you experiencing the redraws update via ota?
Sent from my Nexus 10 using Tapatalk 4 Beta
Click to expand...
Click to collapse
It actually makes sense to have around 1 GB allocated for the GPU considering the resolution of this tablet. The framebuffer alone could saturate most of that in a 3D application running at full res. The Nexus 7 v.2 just about doubled the res and doubled the RAM along with it.
brees75 said:
These values work really well on 4.3:
MinFree
12288,16384,51200,61440,71680,102400
oom_adj
0,1,4,7,10,15
Google is learning, with every release they keep getting closer to the ones I have been using for years. LOL
If you don't have init.d active you can adjust them in init.rc without any scripts. I haven't checked but they might be overwritten by ActivityManagerService.java at boot though. That is why I use init.d.
---------- Post added at 01:15 PM ---------- Previous post was at 01:01 PM ----------
It actually makes sense to have around 1 GB allocated for the GPU considering the resolution of this tablet. The framebuffer alone could saturate most of that in a 3D application running at full res. The Nexus 7 v.2 just about doubled the res and doubled the RAM along with it.
Click to expand...
Click to collapse
I'll try out those values. Thanks.
Any of you successufly ran supercharger script on 4.3? Its not working on my factory image, rooted, deodexed, busybox from the starter kit.

[5.X.X]Get The BEST Out of STOCK or ANY ROM

Hello MOTO G2 users,
I have been testing a lot of setting to get the best out of the stock lollipop (u can try on custom ROMS too with appropriate(optimus kernel by Flashhhh works ) kernel) on our device. After lots of flukes and changing of setting I got the device to perform its best.
If u want to try u can go ahead, but I am not responsible if anything happens to ur device
ROOT REQUIRED(Obviously)
Requirements:
1. Stellar Kernel v3.0(recommended for stock not for custom rom): http://forum.xda-developers.com/moto-g-2014/development/stock-stellarkernel-v1-t3085277
2. Kernel Adiutor app (Download from playstore)
3. Optimus kernel (Only for custom ROMS not for stock)
Steps:
1. Open the kernel adiutor app (The stellar kernel should already be installed)
2. Set the settings as given below:
CPU:
Cpu max frequency: 1190 MHz
Cpu min Frequency: 300 MHz
Governor: interactive(mostly) or ondemand (I recommend ondemand only when u are sleeping as it saves battery)
Multicore power saving: Aggressive (U can keep it disabled if u want)
(Leave other settings as it is)
CPU Hotplug:
MPDecision: Off
Intelliplug: ON
Profile: Eco performance or balanced
Touch boost: On
MSM Hotplug: ON
Debug Mask: ON
CPUs Boosted: 4 (Adjust ur way)
Max cores screen off: ur choice
(Leave other settings as it is)
GPU:
GPU max frequency: 320MHz (u can try 450)
CPU governor: msm adreno tz
Simple Gpu Algorithm : ON
Laziness: 4
Ramp Threshold : 6
Low Memory Killer:
Foreground Application: 6MB
Visible " " : 8MB
Secondary Server: 16MB
Hidden Application: 20MB
Content Providers: 22MB
Empty application: 24MB
[Or u can apply this value easily using the scripts by selecting super multitasking profile (temp) from rt ram manger page in android development section]
(Thanks to Diamond Bond For this Values)
Thanks To:
@zakee94 :For the kernel
@DiamondBond : For the Script
@Flashhhh for optimus kernel
I really thank the developers for the works they have done for our device. Without them this was not achievable.:good::good::fingers-crossed:
I have really done nothing but only triend configuring the setting. All main work goes to those two developer.
I would recommend keeping a ram cleaner on ur device if ur ram usage goes high
Install greenify to hibernate useless apps.
Press Thanks if this helped you.
Send me ur experience after applying this.:good:
If u find something more better u can post it here
Vedant Mistry said:
If u find something more better u can post it here
Click to expand...
Click to collapse
Dont suggest users to use the M option which removes the bootanimation bin, it dosnt help suggest them to use xposed with the backported mem-leak fix module and an lmk profile from my script (different profiles work for different people), but otherwise, nice guide, ive been meaning to post something like this for a while!
DiamondBond said:
Dont suggest users to use the M option which removes the bootanimation bin, it dosnt help suggest them to use xposed with the backported mem-leak fix module and an lmk profile from my script (different profiles work for different people), but otherwise, nice guide, ive been meaning to post something like this for a while!
Click to expand...
Click to collapse
Many people dont use xposed though.
Sent from my XT1068 using XDA Free mobile app
Vedant Mistry said:
Many people dont use xposed though.
Sent from my XT1068 using XDA Free mobile app
Click to expand...
Click to collapse
Well i would just for the mem leak fix
DiamondBond said:
Well i would just for the mem leak fix
Click to expand...
Click to collapse
Me too
Sent from my XT1068
Tried this setting on Flex OS and CM 12.1 with optimus kernel.. And it works:thumbup::thumbup::thumbup:
Memory leak fix not required i guess
smartmax profile works perfect in my case.
Ya its good, but it may cause your phone to over heat.... Its upon you to choose governors but dont mess with low mem kill values:thumbup:
Sent from my XT1068
I never faced overheat problem with smartmax (Using it from tha past three days).
Vedant Mistry said:
I would recommend keeping a ram cleaner on ur device if ur ram usage goes high
Click to expand...
Click to collapse
And this was all I needed to know that you are a complete moron who is just posting random drivel
I'm out
codified said:
And this was all I needed to know that you are a complete moron who is just posting random drivel
I'm out
Click to expand...
Click to collapse
@Vedant Mistry Bit harsh, but its true that memory killers don't work on android, purely because of the way that memory management is handled on android. The whole system is set up to use lots of ram. Ram use isn't bad, CPU use is. If you use a task killer to free up more ram, android will just restart the service and use extra CPU in doing so, plus your phone will be slower because you haven't got the cached data already there in the ram. Free ram on android is wasted ram.
So, that, in a nutshell, is why the insult (however harsh) was flung.
Sent from my Moto G XT1068 using Tapatalk
Duck86 said:
@Vedant Mistry Bit harsh, but its true that memory killers don't work on android, purely because of the way that memory management is handled on android. The whole system is set up to use lots of ram. Ram use isn't bad, CPU use is. If you use a task killer to free up more ram, android will just restart the service and use extra CPU in doing so, plus your phone will be slower because you haven't got the cached data already there in the ram. Free ram on android is wasted ram.
So, that, in a nutshell, is why the insult (however harsh) was flung.
Sent from my Moto G XT1068 using Tapatalk
Click to expand...
Click to collapse
codified said:
And this was all I needed to know that you are a complete moron who is just posting random drivel
I'm out
Click to expand...
Click to collapse
First of all, I never told that I was some superhero(pro) that would give the 100% guarantee of this guide working for all. And I also know that free ram on android is wasted ram. But based on my experience with stock ROM running those low memory killer values, the ram usage goes high on running lot of apps e.g. 740mb/848mb and the phone just lags like hell. So by cleaning your ram (more like Memory boost) you can get out of the lag.
And if you don't want to follow this guide don't follow it but don't kill/be harsh on me. I have already written in the thread that any new suggestions are welcomed. I found this working so I posted it.
Vedant Mistry said:
First of all, I never told that I was some superhero(pro) that would give the 100% guarantee of this guide working for all. And I also know that free ram on android is wasted ram. But based on my experience with stock ROM running those low memory killer values, the ram usage goes high on running lot of apps e.g. 740mb/848mb and the phone just lags like hell. So by cleaning your ram (more like Memory boost) you can get out of the lag.
And if you don't want to follow this guide don't follow it but don't kill/be harsh on me. I have already written in the thread that any new suggestions are welcomed. I found this working so I posted it.
Click to expand...
Click to collapse
Hey I wasn't trying to kill anything, or be harsh on you. I was just trying to clarify why the other guy was If it works for you, go for it. I'm all for experimentation and fresh ideas
Sent from my Moto G XT1068 using Tapatalk
virtual memory
dirty ratio 65
dirty background 65
disrty background centisecs 1200
dirty expire centisecs 2500
swappiness 100
vfs cache pressure 30
Cpu governer- zzmoove
Min freq-96000hz
Gpu- simple ondemand; 450mhz; laziness-7
I/o scheduler- zen or fiops regarding ur usage....
Fiops if u prefer multitask
Zen if u want normal daily use
MSM MPDECISION - ON with default values
For more juice u can use Leandroid......
this settings work well for me
Thnx to "blind rodro" for helping me out
Rom- euphoria( by sarath)
Kernel- optimus r6( by flashhh)
Model- xt1068(lol by motorola ?????)

Low memory killer values

Hello my nexus 6 always slow down after days of use, too much apps on memory and low free ram, so I started stuying other devices oom settings, and found that two of fastest devices I can observe have this settings, so try it if you want , for me these fixed slugginess after days without reboot.
lol!
btw, rebooting your device every once in a while will also keep it fast.
fedef12evo said:
Hello my nexus 6 always slow down after days of use, too much apps on memory and low free ram, so I started stuying other devices oom settings, and found that two of fastest devices I can observe have this settings, so try it if you want , for me these fixed slugginess after days without reboot.
Click to expand...
Click to collapse
which kernel are you using ?
normaly the stocl lmk values are good enough to not be laggy
Dead-neM said:
which kernel are you using ?
normaly the stocl lmk values are good enough to not be laggy
Click to expand...
Click to collapse
All the kernels have the same lmk values, that are too low
fedef12evo said:
All the kernels have the same lmk values, that are too low
Click to expand...
Click to collapse
yes these are the stock value for 3gb of ram i guess but they're not too low. the android will kill old apps when necessary to free up the ram.
with gravitybox i can see that on recent tab my memory can be around 130mb free ( not feeling laggy) and when reopen the recent tab again there is around 400mb free and i don't touch lmk value
i think it's a kernel related problem this is why i ask which one he's using.
fedef12evo said:
All the kernels have the same lmk values, that are too low
Click to expand...
Click to collapse
No... not really...
I highly doubt it truly has to do with your lmk... and probably more to do with vmpressure
I bet you have that either set too low... or its broken all together... which means garbage collections isn't happening when it's supposed to...
If you were to drop_cache... your lag would be gone...
Messing with lmk without proper knowledge just leads to an unstable device
rignfool said:
No... not really...
I highly doubt it truly has to do with your lmk... and probably more to do with vmpressure
I bet you have that either set too low... or its broken all together... which means garbage collections isn't happening when it's supposed to...
If you were to drop_cache... your lag would be gone...
Messing with lmk without proper knowledge just leads to an unstable device
Click to expand...
Click to collapse
Maybe yes you are right, I am using aicp rom that has some tweaks about swappiness and vm cache pressure, what are the best values?
fedef12evo said:
Maybe yes you are right, I am using aicp rom that has some tweaks about swappiness and vm cache pressure, what are the best values?
Click to expand...
Click to collapse
Swappiness: no swap file(why do you need one with 3 GB of ram?) No change...
Vmpressure:
This is kinda grey...
There are 2 schools of thought...
HIGH: run between 100 and 200... your device will drop caches as necessary... with error on the side of... dump early dump often...
LOW: run at like 20... or even 0... but then run a cron.d job every 2 hours or so to "manually" drop caches... and when you realize you can make it longer between drops... you do...
Pros & Cons... I have no bloody idea...
Me personally... I like running between 150 and 200... it keeps my phone happy enough...
rignfool said:
Swappiness: no swap file(why do you need one with 3 GB of ram?) No change...
Vmpressure:
This is kinda grey...
There are 2 schools of thought...
HIGH: run between 100 and 200... your device will drop caches as necessary... with error on the side of... dump early dump often...
LOW: run at like 20... or even 0... but then run a cron.d job every 2 hours or so to "manually" drop caches... and when you realize you can make it longer between drops... you do...
Pros & Cons... I have no bloody idea...
Me personally... I like running between 150 and 200... it keeps my phone happy enough...
Click to expand...
Click to collapse
On aicp stock value is swap 0 and cache pressure 20 , so I am going to try 200 thank you
i used to set my low memory killer values, a long time ago. but ive found that rebooting every day or two does a better job.
I know it's not exactly on topic but what about scrolling cache? I hear if you disable it, scrolling in the UI is glassy smooth.
I don't know how to disable except I did see a setting once when I was running Dirty Unicorns.
Don't know if this was only valid on previous OS version or if it still works for MM.
Sent from my Nexus 6 using XDA Labs
MrBrady said:
I know it's not exactly on topic but what about scrolling cache? I hear if you disable it, scrolling in the UI is glassy smooth.
I don't know how to disable except I did see a setting once when I was running Dirty Unicorns.
Don't know if this was only valid on previous OS version or if it still works for MM.
Sent from my Nexus 6 using XDA Labs
Click to expand...
Click to collapse
Already tried, without scrolling cache, device is very laggy, dont know why, but having it enabled is better

Categories

Resources