[Q] Nexus 4 lazy RAM - Android Q&A, Help & Troubleshooting

Hello world,
I have been using several ROMs for my 16GB Nexus 4 and I have a complain about RAM usage: it is never close to its full potential.
I did the following experiment: I opened up lots of apps(dialer, messaging, browser, facebook etc) not very demanding the ram usage was about 50-60% and most of the apps were loaded in RAM as there was no latency in switching between them. The I've opened up GTA 3. And the RAM usage was barely around 60-65%. Overall not much of an increase. I figured out that even though I had over 30% free RAM and android killed my other apps because even though they were in Recents it took the same time to open up.
So my QUESTION is: Is there any way to enable agressive multi tasking (90-95% ram usage) or a way to disable android task killimg mecanics in order to achieve a higher number of apps loaded in ram, therfore improving the overall speed?
Now I am running PSX ROM with S4 patch and Neo kernel
Peace

You can look into supercharging and adding swap or compcache/zram
Depending on how you use your phone will tell you if any of this will help or hinder your device
Sent from my Nexus 4 using XDA Premium 4 mobile app

demkantor said:
You can look into supercharging and adding swap or compcache/zram
Depending on how you use your phone will tell you if any of this will help or hinder your device
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for the tips, but I want app switching to be fast, therfore no ZRam. As far as I know zram is slow virtual ram that allows many apps to stay in "memory" but switching to them is not fast. If I am getting something wrong, please tell me. Also I want to use the full potential of my RAM not having maximum 65% in high stress situations.

Try tweaking minfree values, google android ram minfree to get a better concept of it.
Basically its to adjust the number of pages at wich the system will start killing apps/processes with a given priority (foreground, background, services, system, etc).

dxppxd said:
Try tweaking minfree values, google android ram minfree to get a better concept of it.
Basically its to adjust the number of pages at wich the system will start killing apps/processes with a given priority (foreground, background, services, system, etc).
Click to expand...
Click to collapse
Higher minram=killing tasks much often, right?

DEV_Geek said:
Higher minram=killing tasks much often, right?
Click to expand...
Click to collapse
Yes, exactly that. So keep minfree as low as posible, but still give system core processes the priority. This way, ram will have to be really full (really low free ram) for apps to get killed.

dxppxd said:
Yes, exactly that. So keep minfree as low as posible, but still give system core processes the priority. This way, ram will have to be really full (really low free ram) for apps to get killed.
Click to expand...
Click to collapse
Will try soon. Thanks once again for helping a noob. I will keep you posted with the results.
Peace

dxppxd said:
Yes, exactly that. So keep minfree as low as posible, but still give system core processes the priority. This way, ram will have to be really full (really low free ram) for apps to get killed.
Click to expand...
Click to collapse
Didn't worked out quite well, all my minfree settings are below 6MB, but still below 1GB ram is used

Related

I have a " samsung galaxy player 4 ". I was wounder how much memory ( RAM ) it has ?

I have a " samsung galaxy player 4 ". I was wounder how much memory ( RAM ) it has ?
I thought i had 512.... but its only showing like half that, why ?
Thanks
savvymatthew said:
I thought i had 512.... but its only showing like half that, why ?
Thanks
Click to expand...
Click to collapse
The OS e.g. Android and Touchwiz use up about 100mb RAM for itself leaving only 300-400mb for the user. My HTC Desire S has 768mb but really i can only use 623mb hope this helps.
Rueben_ said:
The OS e.g. Android and Touchwiz use up about 100mb RAM for itself leaving only 300-400mb for the user. My HTC Desire S has 768mb but really i can only use 623mb hope this helps.
Click to expand...
Click to collapse
Is there a way to install a mod to free up some of the RAM the OS uses? Or a lighter android that doesn't use quite as much?
ZaIINN said:
Is there a way to install a mod to free up some of the RAM the OS uses? Or a lighter android that doesn't use quite as much?
Click to expand...
Click to collapse
I would recommend a 3rd party launcher like ADW Launcher on Android market very light weight, also a app like memory booster which frees RAM. Their are no such mods to change the file system usage as changing the amount of RAM the system needs could result in a unstable device. I have a Galaxy wifi 5.0 with 512mb RAM and the 200mb left is enough for me without lag etc. hope this helps
I recommend using Advanced Task Killer. It has a very easy interface, and frees up ram quickly.
What does it say for ram on the player.... I have seen 377... and 345.
I have 345 and Im pretty pissed about it.
I have 342mb of RAM available. But I heard that around 100+ mb are dedicated to the gpu on the galaxy s phone, and the galaxy player has the same hardware so should be the same. So I think it still has 512mb of ram, but just 342 is usable by Android.
Have a look at the output of dmesg (e.g. run the following in a terminal and copy the resultant file to your PC to view: dmesg > dmesg_output.txt) and it tells you how much memory you have and how much has been set aside. Note you will probably want to reboot before you do this as otherwise the interesting messages have scrolled out of the kernel message buffer.
I've been using an app called Fast Reboot Pro. It appears to simply close processes that are running in the background. It then shows you how much memory was was freed. I hit every so often and especially when things appear to lag. Seem to work pretty well.
jlp2d said:
I've been using an app called Fast Reboot Pro. It appears to simply close processes that are running in the background. It then shows you how much memory was was freed. I hit every so often and especially when things appear to lag. Seem to work pretty well.
Click to expand...
Click to collapse
Gingerbread/Samsung has it's own task manager which in turn has it's own widget which does this. No need to install an app for this
I to use fast reboot, find it much more effective than what the player comes with. I also use ram manager pro witch is a very good tool to set different ram profiles, I like "balance (more free memory)" the best. I first select my profile, then I run fast reboot, very effective! The more you run fast reboot, the more memory it frees up, witch is great for big games like asphalt 6. Also, I use zeam launcher, very lightweight, perhaps the lightest, but still a great improvement over touchwiz. Another thing, NO LIVE WALLPAPERS is an absolute necessary! These things eat WAY more ram than they say on taskmanager. THEY CAN EAT 50+ MB OF RAM!! Also, services like widgetlockscreen and such will eat your ram. If you want to play a heavy game, go to running services and kill as many as you can, you can also clear cached apps by hitting the menu button in running services. Hope these tips help you to make the most of our small supply of ram!
Hmm, after more testing, it would appear that wifi burns around 25mb of ram when on! So, if your really short on ram, just turn on airplane mode to kill all antennas. I just played modern combat 3 with 25mb free ram throughout the whole level I had 190mb free originally, that game sure eats the stuff :s The CPU rides at 1000mhz through the whole game, lol, could always use some more of that stuff! That's what oc is for

Low on ram

I'm running dagr8s alpha 2 ics rom. And I know that it has lower ram than the gb roms. But lately I have been running Tasker (amazing app btw) numbers and it keeps notifying me that I have low ram and it might not work properly. I go to applications in settings and check my ram and it says I only have 98mb free. I end all tasks and clear ram and then still I have like 120-130 free. I'm afraid that this is a too low amount. And wanted your opinions on what I should do. Is this enough should I just ignore the warnings will Tasker still run fine? How can I get more ram? Are any of you also experiencing low ram?
Sent from my SAMSUNG-SGH-I717 using xda premium
Taller uses ram also. I run trebuchet launcher on alpha 2 and have no real issues. If it gets slow you can hold home and clear things out. Running a lot of widgets still affect ram also.
Sent from my SAMSUNG-SGH-I717 using XDA
Here's mine
Sent from my SAMSUNG-SGH-I717 using XDA
If you go to developer options in settings at the bottom and select the background processes and set it to 3 processes at most that helps alot...also if u change ur dalvik heap to 64 that also helps a ton...DO NOT and I repeat do not set it below 64 as u will soft brick your phone
Sent from my SAMSUNG-SGH-I717 using xda premium
You must understand how Android uses memory, it loads your frequentlyused programs into ram so when you go to use them, they open much faster than if they would if they had to open "fresh" each time.the lmk (low memory killer) should take care of everything if you ate currently using a process that uses a lot of memory it will kill off apps as it needs to.
Put simply: FREE RAM IS WASTED RAM.
Have a marine navigation program "Navionics USA EAST" that wouldn't open in ICS(leak and Saurom) unless I cleared RAM. No issue onstock GB, and runs fine on sgh-i777 ICS? Tried debloating leak, but didn't help much. Will try limiting running programs when back on ICS.
¢ via SGH-i717
Free Ram is wasted ram. Never thought about it like that. I understand but i would still like some free ram just so its available for other apps i open. I did use the task manager to kill running apps and clear ram and it didnt free up that much ram that is why i was worried.
Ill try limiting background proccess to .
Also how do i set dalvik heap to 64? And what exactly does this accomplish?
Thanks for the replies guys.
Yes set it to 3 processes at most. Task manaher killers r just crap dnt use them
Sent from my SAMSUNG-SGH-I717 using xda premium
Welcome to ICS. This is exactly why I DONT like ICS - the memory footprint is huge just for ICS alone.
Free ram is not entirely wasted ram.
Let me explain.
So, my phone RAM is completely (or nearly) filled and I open a new app. There is now a long delay as Android goes to work closing app(s) down and doing garbage collection to free up memory for the new app I just tried to open but it only frees up enough for the one app I just opened.
And now, every app I go to open is going to have this long delay.
What you really want is about 80% ram usage - enough that there is free ram to open new apps without Android having to scurry around to free up a bunch of memory.
I dont know if there is a way to force a certain amount of ram to be free but imo, thats what youd really want.
I only have 6 user apps on my phone and Im running stock GB so even if I opened everything at once, there would be plenty of ram to have them open all at once (Go Launcher, Blue Skies (paid), Battery Power Widget, System Tuner Pro, BeyondPod, & Audible).
It's called "minfree memory," what you want is an app that will allow you to modify those values. Back when I had a Captivate, I used an app called AutoKiller for that purpose. I haven't needed it on the Note though. You can find it in the Android market.
Is it possible for apps to crash when the phone doesnt have enough free memory (RAM)?
-Once you go NOTE, you'd say 4 inches a Joke
How much RAM do you guys have available when running GB. The phone only sees 767Mb of RAM out of the 1Gb is that normal?
yea i think thats normal because the phone system uses some of that ram to make the phone work. Like if you ever had a sd card or an ipod that was say an 8gb ipod you actually only have like 7.66gb free.
But yeah I would like more ram availabe so the phone can load apps quickly and wont have to waste time closing stuff. I dont think free ram is wasted ram
As said before, Android uses ram differently since it based upon Linux. If the entire ROM runs around 600-800mB and most of it gets loaded into RAM, this will leave you with 400-200mB free RAM but the entire OS is already loaded and ready to go! Once you load a RAM intensive application, Android/Linux kernel will free space for that application.
I believe GPU consumes an excess of RAM to handle this beast's resolution/size.
I have to go back to GB. Delay in apps opening is getting old compared to i777 daily driver.
Sent from my SAMSUNG-SGH-I717 using xda premium
Thanks for the info, guys.

Jusst few questions

After using my phone for a while I noticed the RAM is getting smaller, I've used supercharger but the RAM is still the same, and some of my apps is getting force closed. Why is that?
-sorry for the question if it's very noob. thanks.
You don't get more RAM. You can't get more RAM than hardware allows.
Android itself uses part of the RAM, apps use other part, everything over is free.
Supercharger only changes the minfree amounts, that is when Android starts closing apps to free up RAM.
Someguyfromhell said:
You don't get more RAM. You can't get more RAM than hardware allows.
Android itself uses part of the RAM, apps use other part, everything over is free.
Supercharger only changes the minfree amounts, that is when Android starts closing apps to free up RAM.
Click to expand...
Click to collapse
But the supercharger offers engine flush which frees RAM and cache apps? but my phone still lags after a while.
rerenznz said:
After using my phone for a while I noticed the RAM is getting smaller, I've used supercharger but the RAM is still the same, and some of my apps is getting force closed. Why is that?
-sorry for the question if it's very noob. thanks.
Click to expand...
Click to collapse
You should then bulletproof only the apps that you dont want to be closed by v6, i.e. widgetlocker/sms apps/etc. That way, it'll free up ram w/out closing necessary apps. It does not increase your maximum ram but it manages it efficiently.
Sent from my WT19i using XDA
rerenznz said:
But the supercharger offers engine flush which frees RAM and cache apps? but my phone still lags after a while.
Click to expand...
Click to collapse
Be careful when using mod of that kind, you will surely get a lot of FC's if you are not familiar with it.
Try to un-install or freeze apps you don't frequently use or as mentioned earlier by bulletproofing apps you don't want to FC.

Best way to Optimize 512mb RAM on Xperia Ray

It always happens that crashes and errors in the system and slow performance are the problems occurred because of the full or nearly full memory. Issue of memory overload the Smartphones are not immune. It can be avoided, if you know how to maintain phone’s storage space. If your phone has large memory then it will run very smoothly.
For performance of the phone to improve you can delete the cache from time to time which in turn will lead to the better performance of the phone. It can be done by using an application Apps2SD which clears both your cache and histories which are not necessary after some time. By clearing cache it frees up the internal space which there by leads to improved performance in the phone.
1.Try turn OFF (a)Sync(b)Wifi(c)GPS by this a constant process will be stopped and which will also improve your battery life and there by making it more use able, bcoz apps like gmail, contacts, maps constantly updates.
2.Uninstall apps which u don't prefer using. Further checking apps which eat more ram is to look in setting/apps/running and try freezing them.
3.Install task manager which provide operation of auto killing of apps in between time interval.
My Config ROM: FXP149-CM10
Kernel : flykernel 0.7a
launcher : ilauncher 2.2.1
Hope this Helps.
what task manager are you using?
it may helpful for some beginner
but i dont think it helps a lot......
just try Ram manager.
if it useful u can buy full version with more flexible option.
It's work for me.
Sent from my ST18i
sjondenon said:
what task manager are you using?
Click to expand...
Click to collapse
Advanced Task Manager Pro 2.1.5
1. Enable auto kill
2. Enable Regular set frequency to 10min
3. Startup kill
make sure not enabling system wide apps in the list
Free RAM is nothing but wasted RAM. Oh please, android works totally different from your Windows PC.
You can get performance by removing/freezing Unwanted apps, bloatware etc.
Using a Task Manager/Killer may give you a slow performance while Gaming etc.
You should not use a taskmanager, it juse makes your phone slower.
Sent from my muffin
devstaff said:
You should not use a taskmanager, it juse makes your phone slower.
Sent from my muffin
Click to expand...
Click to collapse
Exactly
devstaff said:
You should not use a taskmanager, it juse makes your phone slower.
Sent from my muffin
Click to expand...
Click to collapse
Ok taskmanager are memory hog when coupled with lot of background services eg: widget on screen, social syncing etc.
But if you have organized set of application install with active task managers, it helps solves unecessary lags.
I have 200mb RAM available most of the time ... Installed 40+ apps packages other the default.
Frequently play games like Asphalt 7, Dead Trigger, ShadowGun DeadZone, Real football, Real Racing, GT Racing, CS Portable.
Governer : Smartassv2 - 364- 1209 mhz when active use [ Powersave - 249 - 576 mhz when in my pocket]
I/O scheduler : deadline
ROM: FXP 149 , kernel Fly kernel 0.7a
fuser1337 said:
Free RAM is nothing but wasted RAM. Oh please, android works totally different from your Windows PC.
You can get performance by removing/freezing Unwanted apps, bloatware etc.
Using a Task Manager/Killer may give you a slow performance while Gaming etc.
Click to expand...
Click to collapse
yes exactly, at the beginning i also tried to use taskmanager, but then i google Android RAM and found guides who say the same. and it seem logic for me. so just let it be. no need to use such apps
and custom roms can drain battery more fast,so dont wonder.
first you should check your mobile and wifi signals and stuff like that.
Use ram expander
Create 1020 mb memori swap
sent from squee spleen and spoon
doesn't that damage your sd card? and if you use it with a class 4 one, won't it slow down the phone?
singh07pradeep said:
Ok taskmanager are memory hog when coupled with lot of background services eg: widget on screen, social syncing etc.
But if you have organized set of application install with active task managers, it helps solves unecessary lags.
I have 200mb RAM available most of the time ... Installed 40+ apps packages other the default.
Frequently play games like Asphalt 7, Dead Trigger, ShadowGun DeadZone, Real football, Real Racing, GT Racing, CS Portable.
Governer : Smartassv2 - 364- 1209 mhz when active use [ Powersave - 249 - 576 mhz when in my pocket]
I/O scheduler : deadline
ROM: FXP 149 , kernel Fly kernel 0.7a
Click to expand...
Click to collapse
Thats not really true, taskmanagers doesn't make your phone faster, and free ram is not necessarily good, android manages the ram in another way than for an example Windows. Android kills or puts processes in a kind of freezed mode instead of leaving them running all the time, and when a app needs more ram, android will automatically kill apps so that you can play games and so on.
If you want more free ram, you should use Supercharger or Ram Manager Pro instead, because their alot better than using a taskmanager.
Read this article about it:
http://lifehacker.com/5650894/andro...ed-what-they-do-and-why-you-shouldnt-use-them
Are you serious? I expected more. This is just a very basic guide you can find on any android forum.
Sent from my Xperia Ray using xda premium
Switching off wifi and gps when not in use is just a godamn basic when you use a smartphone, i don't even see the point of opening a topic to say that. Are there still people keeping everything on all the time ?
Task managers are not required since 4.0 at least, if not 2.3 if i remember right. Free ram is useless on Android, i never got this obsession about having free Ram. Many 4.1 and 4.2 custom roms leave less free ram than the official 4.0 and are still way smoother and fast.
This topic is complete bul****, and i'm not even a developer knowing that.
This thread should be moved to /dev/null , because its nothing new in it, and there is alot better tutorials on how to optimize your Xperia Ray.
dont use task managers or killers. Because there is battery drain.
here is my tweaked rom. i have HUGE RAM in first reboot
no init.d scripts, i have not task manager or task killer.
sjondenon said:
doesn't that damage your sd card? and if you use it with a class 4 one, won't it slow down the phone?
Click to expand...
Click to collapse
Maybe yes
Recomended use with class 6 above..
I have used on my ray
With 16 gb class 10
And its ok i guess
sent from squee spleen and spoon
Startup manager is the best
Just install startup manager and unmark apps from starts automatically during startup... Really works
No need care about number of apps installed:fingers-crossed:
swap ram expander
Adding swap ram (no need for much, 300 to 500 mb is ok) makes such a difference. Since I've started using it, I can multitask and I don't get the big slowdowns I was used to. No blank screen when returing to the launcher or horrible wait times under Chrome. From my experience, Android phones with 512mb of ram generally struggle a lot because they always have to erase and reload ram pages so they don't exceed it. I have a class 10 32gb sd card btw.

only 300MB free RAM available on my new S3. problem?

no application is running on the background
that's plenty (for an s3)...
Sent from my GT-I9300 using Tapatalk 2
At the time of writing this, I have 89MB free and the phone is still wicked fast. No lags or anything.
So, you do not need to worry about memory management in android now. It knows how to take care of itself.
Sent from my GT-I9300 using xda app-developers app
Disable Ripple Effect and then disable Lock Screen. Voila! You gain over 100MB in RAM.
Or leave as is. Not sure why folk get hung up on free RAM. Android is quite grown up now and can look after itself.
You have plenty - go and enjoy your phone.
Yes it is a problem
Hi bro!
Of course it is a problem!
Who tells you otherwise is either ignorant or playing idiot just to convince himself that everything is alright.
I have done quite a scientific comparison with numbers and everything; look here: http://forum.xda-developers.com/showthread.php?t=2141721&highlight=ram+discussion
EDIT: And yes I cannot multitask as I do on an S2!!! Something is seriously utterly dangerously wrong with this damn phone!!!
Zomg more free ram the better
Sent from my GT-I9300 using xda premium
questions go in the questions section
scoffyburito said:
Zomg more free ram the better
Click to expand...
Click to collapse
nope, free RAM = wasted RAM
The multitasking would be better with 2gb of ram but the phone is still perfectly usable with 1gb.
The galaxy s4 will inevitably have 2gb, just wait until it releases if it's that big of a deal to you.
I can send text messages, make calls and look at porn just fine with 1 gb of ram so I don't feel your pain.
Sent from my GT-I9300 using Tapatalk 2
As others have mentioned, this is pretty good for an S3. Still not enough for real multitasking but hey, if you run 1 app, it will run wicked fast!
jinosong said:
Disable Ripple Effect and then disable Lock Screen. Voila! You gain over 100MB in RAM.
Click to expand...
Click to collapse
I had my lockscreen disabled already and had to re enable it to disable ripple effect. Then after disabling lock screen again, sure enough I gained 100 more ram. Nice tip
Sent from my GT-I9300 using xda premium
Glebun said:
questions go in the questions section
nope, free RAM = wasted RAM
Click to expand...
Click to collapse
Please stop misrepresenting a microsoft quote in the same way every idiot does on the internet.
Free ram is ram that can be utilised for standby caching and making app starts faster - This is the way microsoft intended this statement to be taken. This "standby RAM" (Cached in task manager) is ready to be released and fill with application data on demand without making other applications page fault.
Ram being utilised by excessively hungry applications is more paging, more thrashing and less performance.
Ram in use by hungry droid apps falls in the latter category.
Squall-Leonhart said:
Please stop misrepresenting a microsoft quote in the same way every idiot does on the internet.
Free ram is ram that can be utilised for standby caching and making app starts faster - This is the way microsoft intended this statement to be taken. This "standby RAM" (Cached in task manager) is ready to be released and fill with application data on demand without making other applications page fault.
Ram being utilised by excessively hungry applications is more paging, more thrashing and less performance.
Ram in use by hungry droid apps falls in the latter category.
Click to expand...
Click to collapse
And your a fool for thinking Android memory management is like windows memory management.
When RAM starts to fill up in android background processes are cached to the cache partition and because we aren't using a HDD the performance loss is negligible.
Sent from my GT-I9300 using xda premium
Squall-Leonhart said:
Please stop misrepresenting a microsoft quote in the same way every idiot does on the internet.
Free ram is ram that can be utilised for standby caching and making app starts faster - This is the way microsoft intended this statement to be taken. This "standby RAM" (Cached in task manager) is ready to be released and fill with application data on demand without making other applications page fault.
Ram being utilised by excessively hungry applications is more paging, more thrashing and less performance.
Ram in use by hungry droid apps falls in the latter category.
Click to expand...
Click to collapse
Free ram is wasted ram for android and Linux. Only in windoze free ram is good ram.
Sent from my GT-I9300 using Tapatalk 2
It is a real problem.
I think CM10.1 has more free RAM.
Except when apps in Android are cached they often have to reload when you "switch " back to them. Not really multitasking. It's as if when the app is cached it stores a pointer to what it was doing. I notice a huge difference when I have 400mb free ram, if I only load a few apps they don't get cached and I can switch to them without them reloading. When I have less than 100mb free ram even my desktop gets redrawn, tabling chrome reload etc etc
Sent from my GT-I9300 using xda premium
Please read forum rules before posting!
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
currenly running with 499MB ram of usage.
delsus said:
And your a fool for thinking Android memory management is like windows memory management.
When RAM starts to fill up in android background processes are cached to the cache partition and because we aren't using a HDD the performance loss is negligible.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
You sir, are talking out your arse.
When ram fills up on android, processes are either terminated leading to them having to be restarted or pulled from cache, leading to sluggish ui and loading.
OnlinePredator said:
Except when apps in Android are cached they often have to reload when you "switch " back to them. Not really multitasking. It's as if when the app is cached it stores a pointer to what it was doing. I notice a huge difference when I have 400mb free ram, if I only load a few apps they don't get cached and I can switch to them without them reloading. When I have less than 100mb free ram even my desktop gets redrawn, tabling chrome reload etc etc
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Exactly.
Glebun said:
questions go in the questions section
nope, free RAM = wasted RAM
Click to expand...
Click to collapse
Sorry touch of sarcasm on my end
Sent from my GT-I9300 using xda premium

Categories

Resources