Where's all the memory going? - EVO 4G General

With no apps running there is only about 120MB of RAM free out of the 512MB the device has.
Where's it all going? Does Android OS and HTC Sense really use 392MB of RAM?

Grims said:
With no apps running there is only about 120MB of RAM free out of the 512MB the device has.
Where's it all going? Does Android OS and HTC Sense really use 392MB of RAM?
Click to expand...
Click to collapse
sense uses some, other programs do too, use tas killer to kill everything then check before it restarts stuff

mrono said:
sense uses some, other programs do too, use tas killer to kill everything then check before it restarts stuff
Click to expand...
Click to collapse
As i said, no programs were running. That's the number I get after a fresh boot with all tasks killed.

It's very likely that the "missing" memory is being used as cache by the system. If need be the cached memory can be freed up with no performance hit. This is actually the efficient way to use memory and most if not all modern OS's work this way.

Do a cat /proc/meminfo in terminal emulator.

sk63 said:
It's very likely that the "missing" memory is being used as cache by the system. If need be the cached memory can be freed up with no performance hit. This is actually the efficient way to use memory and most if not all modern OS's work this way.
Click to expand...
Click to collapse
That is what I'm hoping it's doing with it.

Yeah one of the reasons I switched away from winmo was Android was suppose to be so much better at handling memory. Frankly I am not seeing it. It seems to use a bell of a lot of memory.
-------------------------------------
Sent via my EVO using XDA Tapatalk

coolbho3000 said:
Do a cat /proc/meminfo in terminal emulator.
Click to expand...
Click to collapse
Permission Denied.
Do I need root?

Related

Why auto-killer will NOT speed up your phone

This is for all those people that think auto-killer is the be all and end all of android.
Auto-Killer Does:
Kill Apps to free up RAM
Auto-Killer Does NOT:
Speed up your phone
Here is why!
The way RAM works is - it temporarily stores the files needed to run an application so that the CPU can access them quicker than from ROM/SD-Card.
RAM does NOT slow down when it has more information stored within it, therefore having 20 MB of free ram or 120 MB will make NO difference to the speed of your phone.
Ironically, having more free RAM may even slow down your app loading times because:
If you wish to launch an app and you have 120 MB of free ram with no apps loaded it will have to load the app from your ROM/SD into the RAM and then access it from there.
On the other hand if you have the app already loaded into the RAM, with only 20 MB of free ram, it will load quicker because it doesn't have to check the ROM/SD first!
Therefore, having less RAM free means that more apps will load quicker. In addition to that, Android already has a built in task killer which is designed to kills apps which haven't been used in a long time when you get to a very low ram figure.
btdag said:
This is for all those people that think auto-killer is the be all and end all of android.
Auto-Killer Does:
Kill Apps to free up RAM
Auto-Killer Does NOT:
Speed up your phone
Here is why!
The way RAM works is - it temporarily stores the files needed to run an application so that the CPU can access them quicker than from ROM/SD-Card.
RAM does NOT slow down when it has more information stored within it, therefore having 20 MB of free ram or 120 MB will make NO difference to the speed of your phone.
Ironically, having more free RAM may even slow down your app loading times because:
If you wish to launch an app and you have 120 MB of free ram with no apps loaded it will have to load the app from your ROM/SD into the RAM and then access it from there.
On the other hand if you have the app already loaded into the RAM, with only 20 MB of free ram, it will load quicker because it doesn't have to check the ROM/SD first!
Therefore, having less RAM free means that more apps will load quicker. In addition to that, Android already has a built in task killer which is designed to kills apps which haven't been used in a long time when you get to a very low ram figure.
Click to expand...
Click to collapse
Dude, you're talking to deaf ears.
n00bs doesn't care about memory management and schedulers and such stuff... so they do what they always did on their WinMo devices...
I can only hope some listen.
what about task killer is that the same ?
LOL JK
Hmm at about 26 meg left, my phone gets buggy, and slow moving.
'I dont believe appkiller makes my phone is faster, BUT It does´nt get slow...(26meg and lower)
So Autokiller will help my phone having more ram, and the phone is running fine
About the 120 meg free ram, I agree, just use a lower setting
BR.
MKrogh
btdag said:
having 20 MB of free ram or 120 MB will make NO difference to the speed of your phone.
Click to expand...
Click to collapse
I'm sorry but experience says it does.
case0 said:
I'm sorry but experience says it does.
Click to expand...
Click to collapse
I love the way peoples minds work. Tricks of the mind buddy, tricks of the mind...
Sure, task killers will not speed up your phone, but they will end apps that drain your battery (i.e. facebook, etc.).
I hear what you say and understand what you mean but if that is the case can you explain to me why, after a day or so my phone slows to a crawl and clearing out the memory speeds it up again?
Betty_Swallocks said:
I hear what you say and understand what you mean but if that is the case can you explain to me why, after a day or so my phone slows to a crawl and clearing out the memory speeds it up again?
Click to expand...
Click to collapse
Buggy apps wich leaks memory?
I know technically you are right but my Hero get s laggy once the RAM gets low probably due to to many background tasks running at the same time so `freeing up memory`ie killing background tasks definitely removes the lag and speeds things up again
I have to agree with kilsally here. What you have to think its that the more tasks that is open in the background in memory or not the phone will slow down due to the amount of processors running. Just like a PC the more running the slow that gets. One way to improve this is to increase system memory. In the phones case memory is not upgradable (but would be great if it could be!).
When you end tasks using task killer, it's like ending tasks on a computer and WILL speed it back up again (as there is no/very little processors running to slow it down).
Catch my drift?
its great that theres information out there stating how task killers and android shouldnt play together, but when it comes down to it, advanced task killer pro realllllllyyyyy helps keep my phone speedy. around 20 mb is where my phone gets clammy, around 65 mb is where it grows wings. at the end of the day, if i works for you do it. if not dont. THAT'S the beauty of open source <3
Well thats not really true. Although having 20mb or 120mb RAM free itself will not speed up the phone, when using a task killer to clean up running apps you see the speed increase through the lesser toll on the CPU.
When you close and app in android it very rarely closes (the developer will have to force the phone to close the process thread - its very messy), it goes to 'sleep' this often a good thing as it makes opening the app up again much quicker. however most apps leave background processes running all eating away at a chunk of CPU. using a task killer should providing there are a fair amount of apps running to start with boost the phones performance generally
</rant>
Wez.
Wezternator said:
Well thats not really true. Although having 20mb or 120mb RAM free itself will not speed up the phone, when using a task killer to clean up running apps you see the speed increase through the lesser toll on the CPU.
When you close and app in android it very rarely closes (the developer will have to force the phone to close the process thread - its very messy), it goes to 'sleep' this often a good thing as it makes opening the app up again much quicker. however most apps leave background processes running all eating away at a chunk of CPU. using a task killer should providing there are a fair amount of apps running to start with boost the phones performance generally
</rant>
Wez.
Click to expand...
Click to collapse
exactly! background apps doesn't only use your ram. many apps uses the cpu aswell and there for slowing down the phone
Wezternator said:
Well thats not really true. Although having 20mb or 120mb RAM free itself will not speed up the phone, when using a task killer to clean up running apps you see the speed increase through the lesser toll on the CPU.
When you close and app in android it very rarely closes (the developer will have to force the phone to close the process thread - its very messy), it goes to 'sleep' this often a good thing as it makes opening the app up again much quicker. however most apps leave background processes running all eating away at a chunk of CPU. using a task killer should providing there are a fair amount of apps running to start with boost the phones performance generally
</rant>
Wez.
Click to expand...
Click to collapse
which is exactly why when i have around 20mbs of ram left, killing apps makes my phone faster. people are thinking tooooooo technical about it. its not about memory being used, but whats in the memory (app) isnt slowing things down, but the fact that that app is causing cpu strain is!
It depends what you information you want to have 'pushed' to your phone. If you require it to be 'pushed' the app must run in memory to allow this to happen. Task Killer can kill apps that you don't require 'push' information.
I thought android paused cpu threads that wernt in use?
Also, doesnt matter if you have 20MB of free ram or 2TeraByte of free ram.
I've tried with and without task killers,far less problems without, and i felt it was faster without.
this kinda smells like RAM / registry cleaners for Windows, bull**** aimed at non-technical noobies.
SherlockHolmz said:
this kinda smells like RAM / registry cleaners for Windows, bull**** aimed at non-technical noobies.
Click to expand...
Click to collapse
Exactly my thoughts.
tierra said:
Sure, task killers will not speed up your phone, but they will end apps that drain your battery (i.e. facebook, etc.).
Click to expand...
Click to collapse
How does facebook drain your battery? I run the app from time to time, never changes bettery life. Also the people talking about CPU hogs - most apps go to sleep in the background and do not take up cpu to continue to run (or at least a minimal amount) - if you're running apps which have memory leaks etc then i think you should choose a different app to use instead of relying on a task killer to kill the task every time it goes wrong.
SherlockHolmz said:
I thought android paused cpu threads that wernt in use?
this kinda smells like RAM / registry cleaners for Windows, bull**** aimed at non-technical noobies.
Click to expand...
Click to collapse
Programs that aren't in use do get 'paused' however nearly any program running needs to maintain some CPU activity to stop it from crashing, and some register services that run in the background aiding the program doing what ever it does, these often don't get stopped.
Reg cleaners on PC's are incredibly useful for older PC's, ones what have had a lot of stuff installed and un-installed, and ones with slower HDD's. Because programs don't always remove any reg entries they put in when installed the registry can become massive, with slower/older PC's that can reduce performance quite a lot because it takes longer to find the things that are required, obviously this won't be a problem on newish PC's (ones with sata or solid state, or even fairly new IDE etc) but ones with old 5400rpm IDE (old laptop drives) drives may struggle a little.
again, </rant>
Wez

Available Memory

So when im not running anything, when i open Advanced Task Killer it has like 125M is this right???
So what the other 387MB doing?
what I see
when I 1st start I have about 230MB, after a few minutes it goes down to about 90mb...without opening anything...seems many programs on the Samsung "open" by themselves...also, I see that the CPU goes down to about 100Mhz so I keep it at 1000Mhz with setcpu....plus deleted many Samsung apps(about 30MB)...helps with the lag...
Don't worry so much about it. This isn't windows, you don't need to worry about free RAM. Android will kill tasks as needed to free ram when it needs to. Some of that is likely used for disk cache as well. That will also be released as needed. Let the OS do its job, it's quite good at it..
Killing some of the bloatware will help as well, but you need root.
I also think that this phone, like the G1, has some of the speced 512M ram dedicated to the camera, GPU, and other stuff. In the terminal, free shows about 388M as total ram.
is it a good to create a swap partition on the SD card?
Why on earth would you want swap with this much ram? You likely can, with root and swapper, but why? This phone doesn't need it like the G1 did. Swap could help keep more apps open in the background, but there are already a lot of them there. I don't see any benefit to swap right now. What isn't working for you that you think is related to low ram?
ttabbal said:
Why on earth would you want swap with this much ram? You likely can, with root and swapper, but why? This phone doesn't need it like the G1 did. Swap could help keep more apps open in the background, but there are already a lot of them there. I don't see any benefit to swap right now. What isn't working for you that you think is related to low ram?
Click to expand...
Click to collapse
Yeah...what he said ^
Sent from my Samsung Vibrant using XDA App
As with the nexus one, not all 512mb can be addressed by the system right off the bat; we may need to wait until a newer kernel comes out
Sent from my SGH-T959 using XDA App

RAM

I have rooted my Asus TF, Put on the H 3.1 os, used Clemsyn Blades kernel, running very nicely. I have rooted it, and uninstalled crap like facebook, books, splashtop etc...lot of useless bloatware is out...However here is the problem........LOW MEMORY....This machine has ram of 1GB, and only 800mb shows, so almost 200 for the GI, and out of that 800, about 400mb is always used, despite using various app killers, I think we should be able to get it to about 200mb used? anyone know where so much of ram is bieng eaten
My question to you great knowledgeable friends is;
1) how to get rid of more useless apps eating memory
2) does using a different launcher reduce ram eating?
3) is it possible to achieve about 200-300mb consistent ram?
This is an awsome machine, I think more tweks we can make is super. I have a Samsung GS2, I have removed most of the stock stuff on it and set up my ownlauncher etc. It runs with amazing memory, 500mb free, and awsome graphics interface. Less nonsense.
MasterfullDON said:
I have rooted my Asus TF, Put on the H 3.1 os, used Clemsyn Blades kernel, running very nicely. I have rooted it, and uninstalled crap like facebook, books, splashtop etc...lot of useless bloatware is out...However here is the problem........LOW MEMORY....This machine has ram of 1GB, and only 800mb shows, so almost 200 for the GI, and out of that 800, about 400mb is always used, despite using various app killers, I think we should be able to get it to about 200mb used? anyone know where so much of ram is bieng eaten
My question to you great knowledgeable friends is;
1) how to get rid of more useless apps eating memory
2) does using a different launcher reduce ram eating?
3) is it possible to achieve about 200-300mb consistent ram?
This is an awsome machine, I think more tweks we can make is super. I have a Samsung GS2, I have removed most of the stock stuff on it and set up my ownlauncher etc. It runs with amazing memory, 500mb free, and awsome graphics interface. Less nonsense.
Click to expand...
Click to collapse
If you haven't done so already you could use Titanium Backup to remove more stuff (including system apps) since you're rooted. I would advise caution however in case you remove the wrong thing. Perhaps someone else can post regarding which particular system apps are safe to remove, as I haven't expreimented with this myself.
jonitfcfan said:
If you haven't done so already you could use Titanium Backup to remove more stuff (including system apps) since you're rooted. I would advise caution however in case you remove the wrong thing. Perhaps someone else can post regarding which particular system apps are safe to remove, as I haven't expreimented with this myself.
Click to expand...
Click to collapse
Ive done that and removed about 10 items. Its running well at 1.4GHz but only problem too much ram usage.
jonitfcfan said:
If you haven't done so already you could use Titanium Backup to remove more stuff (including system apps) since you're rooted. I would advise caution however in case you remove the wrong thing. Perhaps someone else can post regarding which particular system apps are safe to remove, as I haven't expreimented with this myself.
Click to expand...
Click to collapse
He could just freeze them first and play with the tf a couple of days and if there are no problems, delete them.
Removing junk isn't a bad thing to do, but in my experience, app killers do more bad than good in android. Other than in windows, you don't need tons of free ram to run apps smoothly. Android has a great ram management that fills your ram with apps for fast access, and closes the least used/needed when another app requests more ram. So if you use an app killer, your tf will have more to do with restarting the apps you just closed and your performance will actually decrease. Google it and you'll know what I mean.
Regards
Qwer23
Sent from my rooted X10i using awesome custom roms
MasterfullDON said:
Ive done that and removed about 10 items. Its running well at 1.4GHz but only problem too much ram usage.
Click to expand...
Click to collapse
As i said before, much ram usage isn't necessarily a bad thing. It only eats performance if a running app is badly coded and doesn't give its ram free when required. Then you better kill this specific app instead of autokilling stuff. Well coded apps won't eat your performance, no matter how much ram is used.
Sent from my rooted X10i using awesome custom roms
300Mb oof ram are dedicated to Nvidia Tegra 2. For this reason you read "only" 700Mb. Maybe in near future we will able to allocate more memory than 256Mb to our Tegra 2
memory usage doesn't mean too much now if the app/programe is properly coded, when needed, android should be able to release them on the fly......
same goes to my windows 7 machine, it's got 8 gig memory but the free memory always remains under 500M because the system is using them to cache most recently used applications.
Constantly clearing memory will not help too much, and believe or not, it worsens both the performance and the battery life..
but again, android is not as robust as windows in the terms of memory management, so it's not a bad idea to occasionally take a look at the actual memory usage but just don't go too excessive...
Screwing around with app-killers is never a good idea. Are you actually experiencing issues due to insufficient RAM? I've never had an issue with RAM on my Transformer. Android is much better at handling its memory than people are, let it do its thing.
And for the record, RAM is there to be used. It's the fastest memory a device has, so the more it makes use of, the better. If something else needs more RAM, Android will flush out something that doesn't need it.
I think app-killers are one of the biggest issues with Android, in that people seem to think they're necessary. Unless you actually have some app that's misbehaving or has a memory-leak or something, you shouldn't ever really need to manage your running applications. Just leave it all alone for a while and see how you go.
Midda said:
And for the record, RAM is there to be used. It's the fastest memory a device has, so the more it makes use of, the better. If something else needs more RAM, Android will flush out something that doesn't need it.
Click to expand...
Click to collapse
Perfectly said. Don't mess your Transformer around with "Task Manager"-type apps.
Midda said:
Are you actually experiencing issues due to insufficient RAM? go.
Click to expand...
Click to collapse
not at all. The machine is fast, its very quick and loads things quickly. The only time I had problem is using logmein, it crashed and said out of memory...I was a bit perplexed. I cleared a lot on my SGS2, and it was much faster.
Let me know any ideas, otherwise, as suggested, I will see how it goes
From my previous experience with Android devices, it's nearly impossible to increase the amount of free ram. I've tried, and only found one solution that I'll talk about later.
This isn't a bad thing. Ram is not CPU usage, and ram is going to use roughly the same amount of electricity regardless.
What android does is fill up the ram with programs that you will potentially use. That way when you want to use the program, it's already loaded in memory. When you load another program into memory, say a game, it will close apps to make room for the new app.
If you really want more memory, the closest thing is a swap file or partition. I use one on my phone, and it helps a good bit. Don't know if it would help the TF101, since it already has 1GB ram.
If you are still set on more free ram, try a program like auto memory manager (there is also another program very similar, has a blue fish for a logo but I forget the name). This doesn't kill apps in memory. Instead it changes the the when android closes programs in memory based on how much free memory is available and the priority of the program. I used it before on my phone with pretty good success, but now I use a swap file instead.
Right now I don't use a swap file or memory manager on my tf101, sine it runs great without it.
Thanks for all your responses.
I think this article should explain how Android 2.x operates. Even though the article is not about Honeycomb (Android 3.x), I doubt Google has changed how it manages memory in Honeycomb.
Article here: h**p://lifehacker.com/5650894/android-task-killers-explained-what-they-do-and-why-you-shouldnt-use-them
(Sorry, can't link due to XDA's 8+ post policy...)
I only have 55xMB memory shown in the application though.
154MB Used 398MB Free

[Q] RAM manager

Hi,
I looked at my free ram and on daily use I have 1 GB of free ram.
So is there any sens to use ram manger to allow android use more ram (mean to not kill app and has less free ram)?
Unused RAM is wasted RAM (just before anyone else says it )
I have 1.3GB of RAM free on my N4. I wouldn't recommend a 3rd-party RAM manager, and just trust Android to handle it
Unrelated, but I have some weird memory leak issue on my N10 that basically causes all RAM to be taken up by something eventually, and all apps end up Restarting. Quite annoying, but the only thing I can do in this situation is reboot the tablet. Can't say I've seen or heard of this on the N4.
espionage724 said:
Unused RAM is wasted RAM (just before anyone else says it )
I have 1.3GB of RAM free on my N4. I wouldn't recommend a 3rd-party RAM manager, and just trust Android to handle it
Unrelated, but I have some weird memory leak issue on my N10 that basically causes all RAM to be taken up by something eventually, and all apps end up Restarting. Quite annoying, but the only thing I can do in this situation is reboot the tablet. Can't say I've seen or heard of this on the N4.
Click to expand...
Click to collapse
i cant say i like the way android does it, even though it does do it. i use greenify, and autostarts to prevent apps from starting in the background. also, i change the numbers to androids ram management. now im happy
But greenify make some apps start slower, yes? (because they have to start again)
How you change the number of free ram?
atomic339 said:
But greenify make some apps start slower, yes? (because they have to start again)
How you change the number of free ram?
Click to expand...
Click to collapse
ive never noticed that its slowed.
atomic339 said:
But greenify make some apps start slower, yes? (because they have to start again)
How you change the number of free ram?
Click to expand...
Click to collapse
If you have widgets on your lock screen or on your home screen they will use up ram. Uninstall any apps you rarely use to free up ram.
Don't see why you're worried. You have as much FREE ram as an s3 does on the box
On a more serious note, I doubt you'll see any difference by freeing up ram. 500-600 mb of free ram = smooth experience generally
Sent from my Nexus 4 using xda premium
I'm no expert, but what I've read on these forums, it's best to just let Android take care of it. Android has come pretty far with memory management, and third-party apps might just end up taking more RAM/battery.
You're wasting your time worrying about it.
Sent from my Nexus 7 using Tapatalk HD
Johmama said:
I'm no expert, but what I've read on these forums, it's best to just let Android take care of it. Android has come pretty far with memory management, and third-party apps might just end up taking more RAM/battery.
Click to expand...
Click to collapse
This is true, forget about ram manager and dont be paranoid about the free/used ram amout
Thanks for help, I will not use any ram manager etc.

Possible excessive ram usage with no apps running?

Just curious, but is anyone else experiencing 1gig+ worth of ram usage with no apps running? Just seemed a bit excessive to me for the system to take up over half the total ram in the device.. thanks in advance.
Sent from my LG-D800 using Tapatalk
Ghstudent said:
Just curious, but is anyone else experiencing 1gig+ worth of ram usage with no apps running? Just seemed a bit excessive to me for the system to take up over half the total ram in the device.. thanks in advance.
Sent from my LG-D800 using Tapatalk
Click to expand...
Click to collapse
What is your concern here? Do you run out of RAM when you start up all your favorite apps?
No, it's not an issue for it to use half the RAM for the system. Keep yourself from looking at it. It's fine.
People need to learn how android manages RAM, it uses parts for system and the rest is only freed from older running apps when needed, high ram usage is not a ISSUE! as a great dev on the xperia play section stated @CosmicDan "Free ram is wasted Ram"
Ghstudent said:
Just curious, but is anyone else experiencing 1gig+ worth of ram usage with no apps running? Just seemed a bit excessive to me for the system to take up over half the total ram in the device.. thanks in advance.
Sent from my LG-D800 using Tapatalk
Click to expand...
Click to collapse
I would think that if it works anything like a PC, then the more code you can get into RAM the faster it will execute as compared to having it pull/swap it from disk, or chip sets.
Ghstudent said:
Just curious, but is anyone else experiencing 1gig+ worth of ram usage with no apps running? Just seemed a bit excessive to me for the system to take up over half the total ram in the device.. thanks in advance.
Sent from my LG-D800 using Tapatalk
Click to expand...
Click to collapse
Mine eats a lot of RAM Too
fma965 said:
People need to learn how android manages RAM, it uses parts for system and the rest is only freed from older running apps when needed, high ram usage is not a ISSUE! as a great dev on the xperia play section stated @CosmicDan "Free ram is wasted Ram"
Click to expand...
Click to collapse
True, but if you're using a custom ROM it could be a memory leak. I recently learned that *many* builds of CM10 for many devices (mostly Mali GPU ones) have serious memory leaks with hardware acceleration.
You can free 120-200 MB by disabling LG MIT
Type 3845#*802# (if you have the international version) in order to access the hidden menu. Scroll down to LG MIT and disable it
search how android uses ram, and you notice, theoretically (pun intended), why low free ram is not an issue(supposedly)
Sent from my LG-D802 using xda app-developers app
CosmicDan said:
True, but if you're using a custom ROM it could be a memory leak. I recently learned that *many* builds of CM10 for many devices (mostly Mali GPU ones) have serious memory leaks with hardware acceleration.
Click to expand...
Click to collapse
Yeah well this is obvious, But usually this is not the case, And Hello CosmicDan!
it's always around 850 - 950 when nothing is open on rayglobe 3.2
just wanna say something to reach 10 post for development access !
Instead of checking for low RAM, check the Running Apps list and find the offending app/service that is eating RAM. Then see if you can disable or remove it. It could be a memory leak from a bloat ROM app or one you installed. Right now I have 100MB free on my 1GB phone but its perfectly normal, because there are so many apps in background that I use. In fresh boot its about 300MB free, because apps like Facebook and Tapatalk run a service all the time.
Sent from my Q using Tapatalk

Categories

Resources