RAM management with CM13 - Xiaomi Mi 5 Questions & Answers

Guys, who have already flashed cm13 on their device, how is the RAM management.
I know its AOSP RAM management but how much free RAM are you getting on 1st boot?
Also is it able to keep things in memory like games and browser tabs?

@bsourav said:
Guys, who have already flashed cm13 on their device, how is the RAM management.
I know its AOSP RAM management but how much free RAM are you getting on 1st boot?
Also is it able to keep things in memory like games and browser tabs?
Click to expand...
Click to collapse
I honestly don't know, I've never monitored free memory since using devices with more than or 2GB of memory (Nexus 4).
And I don't think it even matters.

@bsourav said:
Guys, who have already flashed cm13 on their device, how is the RAM management.
I know its AOSP RAM management but how much free RAM are you getting on 1st boot?
Also is it able to keep things in memory like games and browser tabs?
Click to expand...
Click to collapse
On CM13 here and can keep about 1.5, 1.6gb free. But, multitasking just work! When I was on MIUI every time I must reload the app... Now I can hold apps and some games. I recommend CM

Multitasking work better than miui, you dont need more free ram, as long as system didnt lag, all working fine on cm
Sent from my MI 5 using Tapatalk

Related

Milestone available memory :(

My milestone run MIUI rom 1.7.8. Available memory is about 20-30 MB , so when I opened camera and taked a picture, It stucked there for a couple minutes. Then I rebooted my phone and Available memory is 40-50 MB, and nothing wrong with the camera ?? How can I fix the memory problem?? please help
Sorry for my English
I do believe that's because when you had 20~30 mb free, there were many others apps running in memory.
The camera app froze the phone 'cause it had no free memory.
When you restarted your phone you had more free memory because you were not running all those app you probably were before.
Sucks, but Milestone's memory is really low
felipefill said:
I do believe that's because when you had 20~30 mb free, there were many others apps running in memory.
The camera app froze the phone 'cause it had no free memory.
When you restarted your phone you had more free memory because you were not running all those app you probably were before.
Sucks, but Milestone's memory is really low
Click to expand...
Click to collapse
No man, I open task killer and kill everything. When I bought it , It had about 150 MB free memory man . So confuse ??
Lesson
mtnhan1996 said:
No man, I open task killer and kill everything. When I bought it , It had about 150 MB free memory man . So confuse ??
Click to expand...
Click to collapse
Ok clearly you are new to milestone. The thing is when you bought the phone it was probably running 2.1 eclair or 2.0 which uses very little ram: it had the least features (no jit or a2sd) hence it's the lightest on ram. However you have to understand that since froyo google has been trying to add more features to android and use exisitng resources to boost performance and since Google's flagship phone at the time of froyo was the nexus one (which had 512mb of ram whereas the milestoen only has 256mb of ram) and so they used ram to boost performance which is essentiall what JIT is. So there's an issue. The milestone is already short on ram and 2.2/2.3 uses more ram which is why they are sometimes slower (not all, something like froyo mod or cronos ginger/ho!no! is bloody fast) which is why you have less free ram.
but over to MIUI which has even MORE features than stock gb which means it uses up even MORE ram which is why you have so little free ram. use this script, it should help the ram issue http://forum.xda-developers.com/showthread.php?t=991276
thre3aces said:
Ok clearly you are new to milestone. The thing is when you bought the phone it was probably running 2.1 eclair or 2.0 which uses very little ram: it had the least features (no jit or a2sd) hence it's the lightest on ram. However you have to understand that since froyo google has been trying to add more features to android and use exisitng resources to boost performance and since Google's flagship phone at the time of froyo was the nexus one (which had 512mb of ram whereas the milestoen only has 256mb of ram) and so they used ram to boost performance which is essentiall what JIT is. So there's an issue. The milestone is already short on ram and 2.2/2.3 uses more ram which is why they are sometimes slower (not all, something like froyo mod or cronos ginger/ho!no! is bloody fast) which is why you have less free ram.
but over to MIUI which has even MORE features than stock gb which means it uses up even MORE ram which is why you have so little free ram. use this script, it should help the ram issue http://forum.xda-developers.com/showthread.php?t=991276
Click to expand...
Click to collapse
Thank you very much, so now I got 2 options ,right? I can flash froyo mod instead of MIUI or I can use the script to icrease ram a little bit huh?
mtnhan1996 said:
Thank you very much, so now I got 2 options ,right? I can flash froyo mod instead of MIUI or I can use the script to icrease ram a little bit huh?
Click to expand...
Click to collapse
well yes and no. in my experience you can have miui with zepplinrox's script but still only have around 30-45mb of free ram whereas on froyomod you can get far more.
I liked using cronos ginger but the thing is feeyo's roms have a lot of bugs and arent updated to the latest sources which is why they are usually a little bit behind.
Cronos GB 1.5.0 is really fast. And yes, it has bugs, but nothing impossible to live with.
This is the fastest GB rom I've tried ..
thre3aces said:
well yes and no. in my experience you can have miui with zepplinrox's script but still only have around 30-45mb of free ram whereas on froyomod you can get far more.
I liked using cronos ginger but the thing is feeyo's roms have a lot of bugs and arent updated to the latest sources which is why they are usually a little bit behind.
Click to expand...
Click to collapse
With the script, you can use slot 3 to choose how much free ram you want.
Performance levels out beyond 30mb free tho.
And android will make more ram available if needed anyway.
I use Froyomod and I have around 37 MB free after startup. I tried to play Cut the rope but it keeps killing it. Also happens with Google Maps. Could this be a problem of low memory?
ruisan said:
I use Froyomod and I have around 37 MB free after startup. I tried to play Cut the rope but it keeps killing it. Also happens with Google Maps. Could this be a problem of low memory?
Click to expand...
Click to collapse
yea it is. but if your on froyomod why not try to use advanced task killer and zepplinrox's supercharger

Ram ?

Hello, i bought the phone (used) a few days ago. it's great.
just wondering, there's a pretty low amount of available ram (~300-350 somtimes 400 after cleaning memory).
currently im running stock 4.1.2
so, if i will flash any cm rom or any other rom, will there be more ram available?
or that's it?
thanks in advance.
yoeleli said:
Hello, i bought the phone (used) a few days ago. it's great.
just wondering, there's a pretty low amount of available ram (~300-350 somtimes 400 after cleaning memory).
currently im running stock 4.1.2
so, if i will flash any cm rom or any other rom, will there be more ram available?
or that's it?
thanks in advance.
Click to expand...
Click to collapse
why do you need more free ram? more free ram is useless, system uses ram to cache programes to start faster.
moneyvirus said:
why do you need more free ram? more free ram is useless, system uses ram to cache programes to start faster.
Click to expand...
Click to collapse
Because it's frustrating to close apps\clean ram all the time. it would be nice to have about 50-100mb for extra free ram.
yoeleli said:
Hello, i bought the phone (used) a few days ago. it's great.
just wondering, there's a pretty low amount of available ram (~300-350 somtimes 400 after cleaning memory).
currently im running stock 4.1.2
so, if i will flash any cm rom or any other rom, will there be more ram available?
or that's it?
thanks in advance.
Click to expand...
Click to collapse
that's it
moneyvirus told you right...
Sent from my LG-P880 using xda app-developers app
Free RAM is wasted RAM... RAM is way faster that the usual storage. That's why the system preloads as many apps as possible, to start up directly, without loading too long. So, the more used RAM you have, the better. Linux is not Windows. Windows is known for its bad RAM management.
Also, 300Mb is quite a lot BTW regarding 1GB total RAM. Killing apps to "safe" memory is the worst thing you can do. Let the system decide what's needed and what's not.
Also, Questions belong into the Q&A section. Thread moved.
my friend , android works that way. it caches everything to ram so that is faster. you dont need more ram and of course u dont need any task manager to close the background apps. the system on its own knows when to free ram and use it somewhere else. if the case is u need to play a game which need more available ram than the phone can have ( for example lets say the phone needs at least 200 ram for the basic system functions so u have available 800 ram and the game needs 1gb ram then thats another case.) u can install swapper to use some disk space to do what ram does. thats all. but if u dont need or play such game then no need for swapper , no need to clear cache and no need to close background apps. if u think u will get more battery life like that , its also wrong. there is another way to get battery life. thats all. hope i covered u.
kessaras said:
my friend , android works that way. it caches everything to ram so that is faster. you dont need more ram and of course u dont need any task manager to close the background apps. the system on its own knows when to free ram and use it somewhere else. if the case is u need to play a game which need more available ram than the phone can have ( for example lets say the phone needs at least 200 ram for the basic system functions so u have available 800 ram and the game needs 1gb ram then thats another case.) u can install swapper to use some disk space to do what ram does. thats all. but if u dont need or play such game then no need for swapper , no need to clear cache and no need to close background apps. if u think u will get more battery life like that , its also wrong. there is another way to get battery life. thats all. hope i covered u.
Click to expand...
Click to collapse
You told that there is no need for task manager , so what's the use of these many task manager apps ??
I'm really confused , because as I clean my ram the speed boosts .
So we should not use task manger apps ?!!
And sth else is that , why our ram capacity is 977 instead of 1024 ?
Sent from my LG-P880 using Tapatalk 2
jasin91 said:
You told that there is no need for task manager , so what's the use of these many task manager apps ??
I'm really confused , because as I clean my ram the speed boosts .
So we should not use task manger apps ?!!
And sth else is that , why our ram capacity is 977 instead of 1024 ?
Sent from my LG-P880 using Tapatalk 2
Click to expand...
Click to collapse
where do u see speedboost when you clean ram in android ? Really ?
the only case this can happen is only if u play for example one of my favorites : dungeon hunter 4 and forget to close the app. At least for some time until the os decides that ok u just forgot it there and close it , u have a decrease of fps at your phone ... eh ok if u forget to push the little button to close an app that needs a big amount of resources, then the task manager is usefull. The apps are apps. There are also 10 different apps to sync google contacs but why use them if google contacts are syncing by default if u dont close the sync ?
lol thanks now i understand
Sent from my LG-P880 using xda app-developers app
this is normal with 4.1.2, I checked a Iconia tab with 4.1.1 and used less ram, V4.1.2 doesnt manage right the ram... try to rollback to 4.0.3 v10f or search a CM10.1 or custom rom which uses less ram :laugh:
no need more ram if you want more use swapp

[Q] how to free more ram

hi everyone i want to know how to free more ram in stock rom when i restart its almost 700mb ram usage and after normal use its goes to 1200mb but i want free memory like my nexus 4 which use ram 350mb to 700mb max please help me guys
pradatta said:
hi everyone i want to know how to free more ram in stock rom when i restart its almost 700mb ram usage and after normal use its goes to 1200mb but i want free memory like my nexus 4 which use ram 350mb to 700mb max please help me guys
Click to expand...
Click to collapse
My RAM usage is about that high, 700mb. But since the Z1 has about 1.6 gb of RAM, you shouldn't really worry. If it does get to the point where apps stop working or services become unresponsive, restart the phone or kill the app that's using the RAM. I believe when your RAM usage is about 1.5 GB it starts becoming a bit unresponsive.
Nexus uses less RAM because it only has stock apps. Sony has their own software running in the background along with some of Google's apps.
kentexcitebot said:
My RAM usage is about that high, 700mb. But since the Z1 has about 1.6 gb of RAM, you shouldn't really worry. If it does get to the point where apps stop working or services become unresponsive, restart the phone or kill the app that's using the RAM. I believe when your RAM usage is about 1.5 GB it starts becoming a bit unresponsive.
Click to expand...
Click to collapse
ya actually u r right but this is not related mobile lag or hang i just want my mobile should use less ram so i m searching for that kind of answer any way u really help me with ur fast reply thanks:good:
You have to be rooted and delete all the unnecessary application which working in background.
eclyptos said:
You have to be rooted and delete all the unnecessary application which working in background.
Click to expand...
Click to collapse
i have rooted device and how to know which app i should delete from background ?
pradatta said:
ya actually u r right but this is not related mobile lag or hang i just want my mobile should use less ram so i m searching for that kind of answer any way u really help me with ur fast reply thanks:good:
Click to expand...
Click to collapse
That doesn't makes sense. As long as your device isn't unresponsive or laggy you shouldn't bother about RAM-Usage. Android handles your available Memory quite well.
Try looking at it like this:
There isn't any use in having more and more RAM, if people on the other hand go and try to keep the RAM-usage low. As long as you don't have problems (lags or such) having free RAM is just eyecandy.
Additionally:
For every app killed, Android needs to load it from storage the next time, resulting in more battery drain than just letting it idle in memory
xXFlippyXx said:
That doesn't makes sense. As long as your device isn't unresponsive or laggy you shouldn't bother about RAM-Usage. Android handles your available Memory quite well.
Try looking at it like this:
There isn't any use in having more and more RAM, if people on the other hand go and try to keep the RAM-usage low. As long as you don't have problems (lags or such) having free RAM is just eyecandy.
Additionally:
For every app killed, Android needs to load it from storage the next time, resulting in more battery drain than just letting it idle in memory
Click to expand...
Click to collapse
ohh thanks reply and and suggestions :good:
pradatta said:
i have rooted device and how to know which app i should delete from background ?
Click to expand...
Click to collapse
It's a kind of thread like this one for Arc
but for Z1 somewhere, I remember a saw that thread with a list of apps to uninstall, search for it.

Low RAM

I had this phone since 2011 it came with android 2.1 .the phone should have 512mb of RAM but always shows 312mb. I read somewhere that if I upgrade android it will change to 512mb but it still stayed the same. It was running android 2.3 gingerbread until now. I decided to install a custom ROM this year.I installed CyanogenMod 11 snapshot release. It brought so many new cool features to the phone and made it much easier to use. But the RAM is full. Apps like Facebook and Google+ are using up the RAM. Should I get an older version of CyanogenMod? Like cm10, or cm11? I think that the older versions would use less RAM to run on the phone.
Sent from my SGH-I897 using Tapatalk
Sippay said:
I had this phone since 2011 it came with android 2.1 .the phone should have 512mb of RAM but always shows 312mb. I read somewhere that if I upgrade android it will change to 512mb but it still stayed the same. It was running android 2.3 gingerbread until now. I decided to install a custom ROM this year.I installed CyanogenMod 11 snapshot release. It brought so many new cool features to the phone and made it much easier to use. But the RAM is full. Apps like Facebook and Google+ are using up the RAM. Should I get an older version of CyanogenMod? Like cm10, or cm11? I think that the older versions would use less RAM to run on the phone.
Sent from my SGH-I897 using Tapatalk
Click to expand...
Click to collapse
You're always gonna have some RAM used. You can sacrifice your hd recording for more RAM (with another kernel). But unless you really need it, having 200 RAM being used is nothing.
You cant get whole 512MB of installed RAM as free space in this world! android OS itself consumes 40-50% RAM! Some of the exceptional ROMs like SlimROMS consume less amount of RAM. Secondly, You cant expect Apps like Facebook,Google+,Flipboard work like charm on Captivate as they consume more RAM and Cache memory for their benefit. If you want to use those kind of apps, then you should keep closing them whenever not required. You better use Greenify app from the playstore, it hibernates apps when not in use!
Hope it helps! :fingers-crossed: Cheers! :good:
Use any KK rom with NeatKernel 1.09, works great and its very fast in any ROM. I just can't play videos in instagram and sometimes in snapchat but i can live without it. And i deleted some system apps i dont use like native keyboard, calendar, talkback, etc.
The 1st gen SGS devices (including the original Galaxy Tab) only has 384mb of "real" RAM. The rest is for the graphic card. With a bigmem kernel, you can sacrifice HD recording/playback for another 30-40mb.

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