Swap for moto g LTE - Moto G 4G Android Development

Aside from an LTE radio the other big addition to the Moto G LTE is the sdcard slot. Unfortunately we were not given any more ram,
but after searching XDA I found a script for adding swap via the sdcard the works on the stock Moto G LTE rom after a few additions.
I did this on x1045 but it should work on all models.
1. Root your phone, easiest way is to flash from a custom recovery:
http://forum.xda-developers.com/moto-g/4g-development/progress-twrp-2-7-1-0-source-t2807585
2. Install busy box from the play store:
https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
3. Enable int.d scripts, I used this app from the play store:
https://play.google.com/store/apps/details?id=com.androguide.universal.init.d&hl=en
4. Install a script runner, I used this one from the play store:
https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
5. You should have all you need to follow defiant07's thread for running their script to add swap:
http://forum.xda-developers.com/showthread.php?t=2359182
6. After a reboot I used Terminal Emulator to check if swap was actual activated via
Code:
free
you should see numbers in the swap row, if it's all zeros then it didn't work.

Zdog291 said:
Aside from an LTE radio the other big addition to the Moto G LTE is the sdcard slot. Unfortunately we were not given any more ram,
but after searching XDA I found a script for adding swap via the sdcard the works on the stock Moto G LTE rom after a few additions.
I did this on x1045 but it should work on all models.
1. Root your phone, easiest way is to flash from a custom recovery:
http://forum.xda-developers.com/moto-g/4g-development/progress-twrp-2-7-1-0-source-t2807585
2. Install busy box from the play store:
https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
3. Enable int.d scripts, I used this app from the play store:
https://play.google.com/store/apps/details?id=com.androguide.universal.init.d&hl=en
4. Install a script runner, I used this one from the play store:
https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
5. You should have all you need to follow defiant07's thread for running their script to add swap:
http://forum.xda-developers.com/showthread.php?t=2359182
6. After a reboot I used Terminal Emulator to check if swap was actual activated via
Code:
free
you should see numbers in the swap row, if it's all zeros then it didn't work.
Click to expand...
Click to collapse
testing now

I would be interested to know real world experience with this setup. I have never liked RAM swap (SD degradation, battery life, heat, etc) and would always use it as a last resort. The only issue with RAM i have had with Moto G LTE (i had Moto G before) was the aggressive minfree values. Decreased it from 48,60,72,84,96,120 MB to 10,20,27,50,58,66 MB and I have achieved smoother results by increasing the RAM that is available to me.

vpnair said:
I would be interested to know real world experience with this setup. I have never liked RAM swap (SD degradation, battery life, heat, etc) and would always use it as a last resort. The only issue with RAM i have had with Moto G LTE (i had Moto G before) was the aggressive minfree values. Decreased it from 48,60,72,84,96,120 MB to 10,20,27,50,58,66 MB and I have achieved smoother results by increasing the RAM that is available to me.
Click to expand...
Click to collapse
how do you play with these values...?
Sent from my XT1045 using XDA Premium 4 mobile app

suhridkhan said:
how do you play with these values...?
Sent from my XT1045 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Looked into it and MinFreeManager from the play store seems ideal. But read up on the app categories before you tinker.
Just reduced the "minfreeram" value to 60mb accross the board... let's see if i notice the difference.
But this is very OT. Start a new thread if you want to discuss further.
Sent from my Moto G 4G

What improvements are you seeing? my moto go will shut down navigation, beyondpod playback, google music if hit home or start anything else. I ran the script and used the authors minfree values and dont notice any improvement.

I see vast improvements, with apps being killed much less frequently. before, my Moto g would keep free RAM an around 160MB, resulting in apps being killed just by switching to the launcher. Now I have less free RAM and apps "live" a lot longer.
I used MinFreeManager (don't forget to grant root access) wit the values 8 14 16 29 34 64 and set to apply on boot.
If you don't see improvements, try a different app and check if the values are actually applied. You could also try to lower the values even more. I would advice to leave enough room between the last 2 though.
Sent from my XT1039 using XDA Free mobile app

^^ I'm using this configuration and I find it OK.

SoulSeekerHS said:
I see vast improvements, with apps being killed much less frequently. before, my Moto g would keep free RAM an around 160MB, resulting in apps being killed just by switching to the launcher. Now I have less free RAM and apps "live" a lot longer.
I used MinFreeManager (don't forget to grant root access) wit the values 8 14 16 29 34 64 and set to apply on boot.
If you don't see improvements, try a different app and check if the values are actually applied. You could also try to lower the values even more. I would advice to leave enough room between the last 2 though.
Sent from my XT1039 using XDA Free mobile app
Click to expand...
Click to collapse
Brilliant. Like night and day.
Never got swap to work though. Perhaps they made changes to the kernel?

Related

[Q] What is and how works VM heap?

Hi
Everybody talk about changing the VM heap value, but... what is the difference after changing it? What about increase its value? And decrease it?
On the CM7 thread adamz667 post this: http://forum.xda-developers.com/showpost.php?p=15065093&postcount=4569
Anyone can confirm that?
Thanks
Increasing cm heap means that apps can use more memory which makes them run faster but then since tbey use up more mem u will have less free memory.
Sent from my Milestone using XDA App
Here you got some definition:
VM Heap Size
The heap is an area of dynamic memory allocated to programs. With a larger heap size, there is more memory for the program and the garbage collector can run more efficiently. Therefore, it is possible to get better performance by setting a larger VM heap size.
However, if you set it too high, you can run out of free memory which can trigger swapping which will degrade performance. Therefore the VM setting is a trade-off.
The optimal value will depend on the RAM on the device as well as the programs and usage patterns, therefore the optimal setting can often only be determined by the user experimentally.
Default value: varies between devices
Click to expand...
Click to collapse
from: http://droidgram.com/forum/8-Android-Dalvik-VM-Heap-Size
adamz667 said:
Here you got some definition:
from: http://droidgram.com/forum/8-Android-Dalvik-VM-Heap-Size
Click to expand...
Click to collapse
Thanks adam, but your post on CM thread was a good theory and this definition it's opposite to your post (a this new one: http://forum.xda-developers.com/showpost.php?p=15092265&postcount=4582)
I only want to know what value use without have to try all of them during days of testing...
Thanks
parads said:
Thanks adam, but your post on CM thread was a good theory and this definition it's opposite to your post (a this new one: http://forum.xda-developers.com/showpost.php?p=15092265&postcount=4582)
I only want to know what value use without have to try all of them during days of testing...
Thanks
Click to expand...
Click to collapse
I have tested all of them today and the best results was with 16mb.
How I was testing it?
Shadow Guardian HD is a very heavy game for MM's ram memory. So I've tested every vm heap size on one and the same level of SGHD, with the same run environment and game was most playable on 16mb (no freezes, reboots, no returns to home screen).
Really 16mb. Which rom? And how far did you get in the game?
Sent from my Milestone using XDA App
thre3aces said:
Really 16mb. Which rom? And how far did you get in the game?
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
I am using CM7rc10 (14.06.2011) I am now in 4th episode (level?) - Medusa Sanctuary.
That is very very interesting. I'm gonna have to give cm7 another chance. Maybe rc10 is a lot better than rc4 (last cm7 I tried)
Sent from my Milestone using XDA App
i also have good performance with 16m tried most settings from extremely large to extremely small...
also png optimized most apps again and again... (which decreased the size of the apps by almost 10mb again - quite sure that it does not make much of a difference)
don't have any app locked in memory and only one homescreen with adw ex without widgets...
dunno till now i have not experienced any issues with lost sms or phone calls...
but i'm aware of that it could happen with my settings so it needs more testing, jit turned off etc. phone works like a charm since i switched from froyomod a week ago or so.
sent from my current location
Are you sure u tried 16 mb. Because I just tried shadow guardian on cm7 rc10 with ur settings and zepplinrox supercharger on balance and tbh it was rather language at times
Sent from my Milestone using XDA App
I've tried jit off and VM heat on 16MB but not get any result.
The launcher was freezing 3 or 4 times, and all games get a minimal improve: 3 seconds more until FC.
I'm testing with: Asphalt 6 and Brothers In Arms 2 (Gameloft games) and Age of Wind v2.2. All versions for MM, with people that play them on stock rom.
thre3aces said:
Are you sure u tried 16 mb. Because I just tried shadow guardian on cm7 rc10 with ur settings and zepplinrox supercharger on balance and tbh it was rather language at times
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
well as i said i do not use that memory intensive apps.
(i think my biggest apps are maps and the browser, and the browser barely goes beyond 30mb, so 2 vm's with 16mb, instead of 2 with 24. but most apps stay below 10mb so i think for my use it is a good solution)
also i debloated the rom massively and replaced most system apps with smaller ones.
cm7 performs very well with this settings, at least for me. (no redraws, no lags in ui no freezes etc...)
like i said i don't use games on my stone
edit: only genie news & weather app reloads often but i think it simply has a high priority.
sent from my current location
That is quite interesting. On ho no I
And 20mb with balanced 3 supercharger works great. But not so well on 16mb
Sent from my Milestone using XDA App
I had tried 16mb weeks ago when somebody suggested it.
That lasted about 5 minutes.
Scrolling between adw screens was brutally choppy.
Swipe finger, wait, look at watch, then bam - the screen suddenly decides to quickly jump to the next screen...
zeppelinrox said:
I had tried 16mb weeks ago when somebody suggested it.
That lasted about 5 minutes.
Scrolling between adw screens was brutally choppy.
Swipe finger, wait, look at watch, then bam - the screen suddenly decides to quickly jump to the next screen...
Click to expand...
Click to collapse
I've got the same with 12mb vm heap. But when I use 16mb everything works fine on CM7 and HO!NO! CM7. Maybe it depends on rom/apps you use and your own configuration.
I guess.
But I'm used to fast, smooth and lots of free ram no matter what rom I'm using
Sent from my Milestone using Tapatalk
adamz667 said:
I've got the same with 12mb vm heap. But when I use 16mb everything works fine on CM7 and HO!NO! CM7. Maybe it depends on rom/apps you use and your own configuration.
Click to expand...
Click to collapse
yeah 12mb is to small... experienced some errors with it too.
i have to say that for me everyhing between 16 and 32 mb seems to do not do much of a difference, but with 32mb my system uses some more RAM right after boot.
after a while it usally uses less (around 80-90mb sometimes less, sometimes more) so i normally have around 60mb free RAM, which seems to be enough.
i'm out of this discussion for now, but i have to say that i rly think ur VM Heap settings should match the apps u use.
so just try different settings.
@Zeppe
yay never experienced that, but i use only one Homescreen anyway. and ADWEX is rly memory friendly : )
sent from my current location

Low free RAM on ICS

Hello all XDA devs and users!
I've decided to run a new thread becasue recently a few users (including me) had a discussion about low free RAM available on our ICS roms and kernels (different ones i.e. Infinitum + Devil kernel, CM9 and others).
What I have found on my devices after running a couple of days without restart I end up with 40 - 50 MB of free ram with Devil XL kernel (389 MB), where the other users with similar configuration have more than 100 MB.
I know that some of you might say, this is how the Android handles the RAM and that is good when most of the memory is consumed. I would totally agree with that however when there is around 40-50 MB left, the phone starts to perform slower and starting another app result in lags.
I do not want to use any task killers because what I have read, they simply do not work well with android (see rule above).
Maybe some of you have an experience or knowledge, why on some devices there is more than 130 MB of RAM left even if there are 8 - 9 apps running (i.e. services) - after couple of days and on some others there is only 40-50 and phone lags more and more.
Reboot the phone everyday when you're having a shower.
beardedwonder said:
Reboot the phone everyday when you're having a shower.
Click to expand...
Click to collapse
Thx for the tip, but I do not see this as a good solution. It's hard to predict when or how often the phone gets slower due to low Ram available.
Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
Play some good games that require higher system requirements once in a while. You'll have a lot of free ram (around 200+ cm9 nightly).
Sent from my GT-I9000
i always get min 130 mb amount of ram and i dont restarted phone for 6 days.
(ICSSGS RC4.2 + Devil xl VC 0.72)
~N.A.W.Y~ said:
i always get min 130 mb amount of ram and i dont restarted phone for 6 days.
(ICSSGS RC4.2 + Devil xl VC 0.72)
Click to expand...
Click to collapse
That's the proof that RAM doesn't get consumed by the android system after a day or two.
Do you use any task killers or modification to your system?
Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
vitoski said:
That's the proof that RAM doesn't get consumed by the android system after a day or two.
Do you use any task killers or modification to your system?
Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
Click to expand...
Click to collapse
nope.. only using this config with 1200 mhz overclock.
i also not restarting phone.because fearing for that damn bootloop on these new huge mem config kernels
You can flash Semaphore Kernel sbm, it gives 410MB of RAM, the HD recording gets broken but i think its a good sacrifice for a good performance.
-Dante- said:
You can flash Semaphore Kernel sbm, it gives 410MB of RAM, the HD recording gets broken but i think its a good sacrifice for a good performance.
Click to expand...
Click to collapse
Yes I can but the point is that the more available RAM will be eventually taken by the system at the end of the day. Increasing more RAM by the kernel will not help here. Right now I have Devil with 389 so only 20 mb less than with semaphore but still more as with the default kernel.
Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
I notice this as well. You have to either run a Rom that includes a low memory killer, e.g. aokp. Or you need to use a kernel where you can set the lmk, e.g. semaphore. I think if you don't do either of the above, the default free ram is around 45-50mb. I am using aokp with midnight kernel at the moment, with free ram set to 75 mb free.
Sent from my GT-I9000 using XDA
tips -
try GO
Menu > Setting > Developer options > Background process limit
set to 4
u shuold have more ram most of the time~should be always above 60 around 100
give u best multitask also, i feel got bug but i really dun no which and what is it...
but it still ok for daily use
I got 220mb free with many process. But on miui and aokp its arround 50.
Sent from my GT-I9000 using Tapatalk 2 Beta-6
Ok i reckon the best way to improve RAM and system memory is by using this tweak.
I have around 120mb also and multitask around up to 4-5 apps without it closing.
I use ICS btw.
Ok go to google or XDA search and type supercharger, follow instructions and Wolla, U should have about 120mb of RAM all the time.
If that is to hard for you here is a simply method. Go to Play Store and type RAM manager (PRO). there is a free version but its not that good. Trust me the PRO version is way better, buy the app and use it!
It is really good!
THX guys for all concepts and advices!
After a couple of tests and research I've done so far there is one method that simply works perfect for our SGS devices.
No matter how much free RAM you push from the kernel (THX to all DEVS for BM kernels) we will not have enough free RAM for the hardware our phones have. I my opinion SAMSUNG simply f**** up here and gave not enough RAM for the phone that can act so fast and handle pretty resource hungry apps and games(
I have used 'Supercharger' script extensively when I was on GB Roms. It did pretty good job, nevertheless you always end up in the situation where more RAM is needed. In this case 'Android' (LMK) kills running or buffered apps to make new rom for the app you started.
Some time ago I have compared GS2 with GS1 against RAM. The key thing why S2 works so well is amount of RAM. Even if the system is loaded and RAM reserved for GPU and sensors the S2 has at least 500 MB FREE, which we will not have never...
SOLUTION:
The solution I have found (in fact it was not me, I simply started to using it) is SWAP. Recently one of the greatest kernel devs (DerTeufel1980) here on XDA published his kernel (Devil v0.79) with SWAP option enabled. If you create a partition or file with apps from Google Play store (like the pagefile in MS Win) you have more RAM (not physically, but still apps are being loaded into swap file).
I was doing some tests few minutes ago and got that:
- 10 tabs opened in ICS+ browser (each was unique - not Google search)
- Any.DO
- QuickAccess
- PowerAmp
- Snowstorm
And I could access every single app quicker than ever before. In fact I could not start 10 tabs in web browser not to kill launcher before or any other app I had buffered in RAM.
For those of you who are wondering if that is a good solution I can say that you should try it. If you do not like it will not use it and stay with kernel and LMK you have now.
I am happy with that so far and of course will do some more tests.
Autostarts
I use an app called Autostarts which you can purchase in google play store. What it does it stops apps from starting up on there own, you wont believe how many apps start up when they are not needed e.g - when you plug the charger in Google Mapps will start up in the background or when Wi-fi is switched on the calender will start up and run in the background, why??? i havnt got a clue but with Autostarts you can pick and choose which apps you want to start or not. I've used it for the past 8 - 12 months and i cant fault it one bit. I'm on AOKP Milestone 5 SGS at the mo and i always have between 170mb & 210mb of Ram availible because i stop uneccessary apps from starting up
i'm using ics with many running service as i can,and i never get lower than 80...gtalk,viber,Y!,any.do,gesture search,and so on...
1-first of all,try NOT to kill useful and auto restart-able apps like the ones u use sometime your widgets of course!;in my case it includes viber,facebook,any.do...
cause in every restart android lost a little of ram,and it cant recover that anymore
2-try disabling location service and force close google maps(if you've installed),it really helped me!
3-try "auto start manager" apps
4-use system tuners and tune ur ram auto kill levels.
i've tested many combinations and found 16,32,40,50,50,80 with GB 2.3.4 acting nice to me,but now i have 14,19,24,32,37,50 on ics 4.0.3 CGen.Mod and i had no problem so i didn't bother myself to test any other combination
Rebooting doesn't really help. Limiting background processes or ReChild's Advanced Task Killer as an easy solution. 400mb kernel and/or force closing/disabling apps, clearing cache if you know what you're doing.
If you're flashing CM9 nightlies every few days, you won't have too many troubles with free RAM.
Did anyone try CM9 SNAPSHOT? any reviews? Also when a new nightly comes out..is it getting better? ..in short ..devs..must be implementing new changes..
Correct me if i am wrong
Thanks
Shoot, I have just started similar thread..
http://forum.xda-developers.com/showthread.php?t=1632914
Abyv said:
Did anyone try CM9 SNAPSHOT? any reviews? Also when a new nightly comes out..is it getting better? ..in short ..devs..must be implementing new changes..
Correct me if i am wrong
Thanks
Click to expand...
Click to collapse
im running snapshot as of now. no problem so far. battery seems better.
never try 02Apr build. dont see any interesting fix on the release. Basically i will just try it if the fix is interest me. well that just me.

LED notification issue and Less RAM

Hi All,
Bought a new Xperia SP! Love it but have 2 issues:\
1) The LED notification for missed calls not working (rest is working)
2) The ram is showing as 786 MB only!
ankushkool said:
Hi All,
Bought a new Xperia SP! Love it but have 2 issues:\
1) The LED notification for missed calls not working (rest is working)
2) The ram is showing as 786 MB only!
Click to expand...
Click to collapse
1) +1 (a bug. I believe if you disable STAMINA power mode it works, but haven't tried it)
2) +1 (the rest probably consumed by Android system)
Pete_S said:
1) 2) +1 (the rest probably consumed by Android system)
Click to expand...
Click to collapse
So any app that can show the total RAM?
ankushkool said:
Hi All,
Bought a new Xperia SP! Love it but have 2 issues:\
1) The LED notification for missed calls not working (rest is working)
2) The ram is showing as 786 MB only!
Click to expand...
Click to collapse
CPU-Z for android will show ur full hardware specs..
Here is a screenshot form CPU-Z it shows only 766MB Can others having SP check!
Link to image
ankushkool said:
Here is a screenshot form CPU-Z it shows only 766MB Can others having SP check!
Link to image
Click to expand...
Click to collapse
Same here CPU-Z does indeed only show 756MB RAM.
Sent from my C5303 using xda app-developers app
Any one know how to free up more RAM without root. My free RAM is very low and I think thats the reason why Firefox crashes randomly.
And where is the rest of my 1GB RAM?
Sent from my C5303 using xda app-developers app
melek-taus said:
Any one know how to free up more RAM without root. My free RAM is very low and I think thats the reason why Firefox crashes randomly.
And where is the rest of my 1GB RAM?
Sent from my C5303 using xda app-developers app
Click to expand...
Click to collapse
Actually, I'd also like to know what's using the remaining 200MB or so of the 1GB RAM. Is it the system? Surely the system is already included in the used RAM indicator? Or maybe it's for the graphics?
I do find it annoying that with its advertised 1GB RAM the SP all too easily appears to run out of memory. Loading up complex pages in Opera set for "desktop" user agent frequently causes background apps to be kicked out. Sometimes even Opera appears to be booted out for using too much RAM! This shouldn't happen on a modern 1GB RAM device, when there's still around 200MB RAM free, and a further 200+MB "missing". It's a bit of a joke really... Now I can begin to understand why the latest hardware has 2GB.
Seems 200MB is reserved for the system. And also XBMC seems to use alot of cache memory. Removed XBMC and turned of alot of Sony apps and now I have a decent amount of RAM left.
Sent from my C5303 using xda app-developers app
Here
Sent from my C5303 using xda app-developers app
So, I think everyone still dunno what the "1GB" RAM mean...
usually in android phone, the 1GB RAM was not exactly 1GB, normal scaling is 7XXMB user and system access RAM + 2XX MB system hardware reserve RAM (usually ur GPU - it's like the old Intel GMA)
Then 7XXMB user and system access RAM is further separate to user access RAM and system process reserve RAM (just see how's they scaling)
And it same as other market advertise 2GB, 512MB, etc Android Phone, even S4's user and system access RAM also approx 1.8GB instead of "2GB"
U all are still haven see how's Samsung stock ROM make their RAM usage always in busy usage (If someone got use S Advance with updated JB Stock ROM then u should know)
If got time u all should read this:
http://forums.androidcentral.com/sa...2-you-happy-about-amount-ram-galaxy-s4-2.html
melek-taus said:
Seems 200MB is reserved for the system. And also XBMC seems to use alot of cache memory. Removed XBMC and turned of alot of Sony apps and now I have a decent amount of RAM left.
Sent from my C5303 using xda app-developers app
Click to expand...
Click to collapse
What's xbmc?
Sent from my C5303 using Tapatalk 4 Beta
XBMC is Xbox Media Center. It was first developed for the original Xbox.
Now its available for all platforms like Android, , Windows, Linux even Rasperry Pi. Its a complete media center solution with any function you can think of.
Google it, its really interesting. It has full media functionality with its own UI. You can watch movies, stream tv shows through internet, listen to music, run software, its almost a stand alone operating system.
Under Android you can even use your phone as a remote/ keyboard to navigate through XBMC while having it installed on an Android tv stick.
Sent from my C5303 using xda app-developers app
unbeleivable!
i got the xpeia sp recently and im a bit sad about the multitasking of a mid range android phone and i want to find a solution, i have another really cheap chinese quad core phone and the ram is 1gb too, in the info at antutu benchmark it says 971 mb whereas the sp says 766! im sure there is a solution out there to make the most of the ram and get better multitasking, can anyone with cyanogenmod rom tell us their ram value please?
melek-taus said:
Seems 200MB is reserved for the system. And also XBMC seems to use alot of cache memory. Removed XBMC and turned of alot of Sony apps and now I have a decent amount of RAM left.
Sent from my C5303 using xda app-developers app
Click to expand...
Click to collapse
also some of it s used by the Adreno 320 GPU.
both phones when empty from bloatware, the xperia sp free ram is 260mb and the chinese phone is 422 mb, why?!!!! i want the value to change at antutu benchmark device info to 971 mb instead of 766 mb is there a way??
We have 1 GB of RAM. Aprox 200/250 mb is for system. For:
- Camera; filming does not work without enough RAM
- GPU; If you have a PC and you game a lot you know what i mean
Also for being able to connect, and have the system running smooth there is RAM needed.
About your LED issue:
Stamina mode enabled? If yes disable it or download illumination bar pro
It has been stated many times by sony that stanima mode disables the LED to save battery
tegr96 said:
both phones when empty from bloatware, the xperia sp free ram is 260mb and the chinese phone is 422 mb, why?!!!! i want the value to change at antutu benchmark device info to 971 mb instead of 766 mb is there a way??
Click to expand...
Click to collapse
The Chinese "Super" phone you refer to more than likely has no manufacturer skin like Touchwiz etc, and zero bloatware thats why it has more free ram.
with a MTK Cortex A7 processor, as for performance goes it cannot compare to the Xperia SP.
you've already been told some of the Ram is reserved for the GPU/Imaging camera system etc.
tweaking androids internal Minfree values can with multi-tasking.
regards

Lag Problems

Hello
got anyone these loag problems when using google Maps or when using some apps at the same time ?
my phone starts to be extrmly laggy.
a phone with 1GB RAM lags when multitasking heavily? wow, that's unexpected!
I know.
Gabboplano said:
a phone with 1GB RAM lags when multitasking heavily? wow, that's unexpected!
Click to expand...
Click to collapse
I am actually happy that unlike my old ****ty Samsung Galaxy Ace Plus, my brand new Moto G (2nd Gen) doesn't lag.
I've used GPS and PowerAmp (several times) with flawless performance, also running Next Laugher 3D, a power hungry launcher, with no problems..
Its all about what apps. one is running..some are more compatable with a particular device than others..
Sent by my 4.4.4_21.11.17_titan
(Unlocked) XT1064 Moto G (2nd Gen.)
http://waynekent.com/page6.html
"Praise Jah" YOU people.!
My Moto G gets really laggy when charging and using snapchat at the same time. That's pretty much weird. :/
Only thing I have noticed is that when using certain apps and going back to the home screen...sometimes it takes a few (2-5) seconds for my home screen icons to show up. (Use Nova Launcher on every device)
I also have a 2013 moto g, a LG L9, and a cheap BLU phone...all with 1gig of RAM and none of them display this same issue.
My next
Moto G 2014 will be my next smartphone.
(coming from a fake mobilen (i8160 Galaxy Ace 2))
It's got some RAM managing problems I guess. I can't play Clash of Clans while listening to Spotify (music stops) for example.
Or the launcher refresh. I've got an htc one X with the same amount of RAM and that never happened to me. Wish they'll fix it, or that custom roms will.
zodiark said:
It's got some RAM managing problems I guess. I can't play Clash of Clans while listening to Spotify (music stops) for example.
Or the launcher refresh. I've got an htc one X with the same amount of RAM and that never happened to me. Wish they'll fix it, or that custom roms will.
Click to expand...
Click to collapse
This. I've got some weird issues as well that I never had with my S3, which also has a gig of RAM. Hope lollipop or any other future update fixes this issue!
You can try to change minfree values as you wish, for example:
Code:
echo "2048,3072,11520,16640,24320,42240" > /sys/module/lowmemorykiller/parameters/minfree
I'm quite happy with these values, more multitasking but still not so much lag
eskamhl said:
You can try to change minfree values as you wish, for example:
Code:
echo "2048,3072,11520,16640,24320,42240" > /sys/module/lowmemorykiller/parameters/minfree
I'm quite happy with these values, more multitasking but still not so much lag
Click to expand...
Click to collapse
How should i change it?
Sent from my XT1068 using XDA Free mobile app
rahilsayed said:
How should i change it?
Sent from my XT1068 using XDA Free mobile app
Click to expand...
Click to collapse
You could just give that command from the terminal emulator on your phone but once you reboot you'll lost the configuration.
I made a script for SManager ( you can find it for free on the play store ) in order to run the command at each boot, it's in the attachment.
To configure it open the app, select the script from your storage and toggle "Su" and "Boot" as in the screenshot below. Of course root permissions are needed.
PS: I also managed to enable init.d support in stock rom in order to avoid using another app, but that command is not run ( or something else restores the default configuration after it runs ). Don't know why
rahilsayed said:
How should i change it?
Sent from my XT1068 using XDA Free mobile app
Click to expand...
Click to collapse
how do i change it
Ever since I changed my runtime to ART the hangup and lag have been becoming more of an issue to me. I own both the original and 2014 version of Moto G and I can say the former has a better hold on multitasking with the same exact apps that I have installed on my 2014 version. I'm still giving Motorola the benefit of the doubt though until they push the 5.0 update which I am hoping will bring better experience on the 2014 version.

Tweak Moto g5 plus

This are some build prop tweaks that make Moto g5 plus fly .
Pros
1) Better ram management
2) More free ram
3) Faster app install
4) fast scrolling
and more test yourself and see.
Just copy and paste this build prop tweak in system/build prop file and reboot.
ro.SECONDARY_SERVER_ADJ=10
ro.HIDDEN_APP_ADJ=12
ro.EMPTY_APP_ADJ =15
ro.HEAVY_WEIGHT_APP_ADJ=9
ro.BACKUP_APP_ADJ=10
dalvik.vm.usejitprofiles=speed
dalvik.vm.dex2oat_swap=true
persist.zygote.preload_threads=4
ro.hwui.use_gpu_pixel_buffers=true
ro.hwui.disable_scissor_opt=false
ro.hwui.text_gamma_correction=lookup
ro.hwui.disable_vsync=true
ro.hwui.shape_cache_size=4
ro.max.fling_velocity=15000
dalvik.vm.verify_bytecode=false
ro.HOME_APP_ADJ=2
ro.hwui.render_dirty_regions=false
ro.zygote.disable_gl_preload=1
dalvik.vm.heapminfree=4m
dalvik.vm.heapmaxfree=16m
dalvik.vm.dexopt-data-only=1
ro.zygote.disable_gl_preload=true
dalvik.vm.extra_free_kbytes=4096
dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n
Look through any device section and there is always one of these posts. I prefer to keep apps in memory so they don't reload when you go back to them rather than kill everything and keep RAM unused. I agree, this does keep things smooth by killing everything, but after the app reloads it's pointless..
mikeyinid said:
Look through any device section and there is always one of these posts. I prefer to keep apps in memory so they don't reload when you go back to them rather than kill everything and keep RAM unused. I agree, this does keep things smooth by killing everything, but after the app reloads it's pointless..
Click to expand...
Click to collapse
what I personally don't get is that this phone is already fast.
why should I add some random tweaks to make it "faster" ?
I just don't see a benefit
This work on Oreo(Lineage 15.0) too?
I see this being useful for people with the 2gb version but that's the reason I got the 4gb model. So I don't have to worry about using up my RAM. Phone already fly's
bvsbutthd101 said:
I see this being useful for people with the 2gb version but that's the reason I got the 4gb model. So I don't have to worry about using up my RAM. Phone already fly's
Click to expand...
Click to collapse
Yes, this is for 2 and 3 GB variant .
ckret said:
what I personally don't get is that this phone is already fast.
why should I add some random tweaks to make it "faster" ?
I just don't see a benefit
Click to expand...
Click to collapse
Have you used the 2gb ram variant.
mikeyinid said:
Look through any device section and there is always one of these posts. I prefer to keep apps in memory so they don't reload when you go back to them rather than kill everything and keep RAM unused. I agree, this does keep things smooth by killing everything, but after the app reloads it's pointless..
Click to expand...
Click to collapse
If you have problem with app reload then don't use foreground app and visible app line.
I'm running 2 gig variant never have any issues but I also don't play games but I compile roms and run youtube heavily without using any tweaks
I have the 4 gig variant, but some apps don't stay in memory. Apps like whatsapp are always restarting in the background even though I have > 1 GB ram free
Note : I did not apply this or any mod. It's completely stock
To be honest, my 2GB variant runs just fine. No tweaks needed.
n7slc said:
To be honest, my 2GB variant runs just fine. No tweaks needed.
Click to expand...
Click to collapse
I agree. But I'm fairly certain there is a memory leak of some sort in the stock FW. I have to reboot every few days or things really slow down. I especially notice it typing on GBoard
mine was danfo a gagging and stopped, improved a lot, thanks

Categories

Resources