Understanding loss of Program memory - 8525, TyTN, MDA Vario II, JasJam ROM Development

I have built a ROM using Pandora kitchen. When I start I have 20MB of free memory.
I was getting problems with programs not starting due to lack of memory. When i checked the free program memory it was down to 2MB.
I had no programs running and use 'x' button to clsoe all programs not minimize them. On a soft reset I am back to 20MB.
Where is all the memory being used and is there a way to stop it?

No surprise there... It's windows!
I think it is because of WM6 not releasing memory properly or in a timely manner. I use Pandora 9.5/3.62.3 and I still see it myself. What I do is that I run Oxios Hibernate or Oxios CloseApps every now and then. Best that I could get back is up to around 15-18mb after a full day's usage. Just do a reboot every now and then.
Oxios is quite good. It allows me to reboot less often now. I've included the cab file below. Hope this helps!
Quakie
lochindaal said:
I have built a ROM using Pandora kitchen. When I start I have 20MB of free memory.
I was getting problems with programs not starting due to lack of memory. When i checked the free program memory it was down to 2MB.
I had no programs running and use 'x' button to clsoe all programs not minimize them. On a soft reset I am back to 20MB.
Where is all the memory being used and is there a way to stop it?
Click to expand...
Click to collapse

Addendum...
By the way, Hibernate frees memory without closing applications or disturbing the internal state of running programs. CloseApps frees memory by closing applications that can be closed and by GCing as much as possible.
Quakie
Quakie said:
I think it is because of WM6 not releasing memory properly or in a timely manner. I use Pandora 9.5/3.62.3 and I still see it myself. What I do is that I run Oxios Hibernate or Oxios CloseApps every now and then. Best that I could get back is up to around 15-18mb after a full day's usage. Just do a reboot every now and then.
Oxios is quite good. It allows me to reboot less often now. I've included the cab file below. Hope this helps!
Quakie
Click to expand...
Click to collapse

More on Memory leak here.

I tried Oxios and it isn't helping.
I get such fast memory leakage I get about 1/2 day use before a reboot.
Is this caused by the base ROM or by one of the apps I'm loading with Pandora.
By doing a trial and error install with various programs on the same ROM could I find an app causing me the problem?

I think its because of the ROM, maybe do a hard reset or try other ROMs. I have never used pandora, but the ROMS I have used and using now, has about 28 on cold boot. It usually stays around 23 - 24 with limited use.
Also, check the page pool size. I prefer 4MB as I run GPS program which needs a lot of free mem.

memleak
lochindaal said:
I get such fast memory leakage I get about 1/2 day use before a reboot.
Click to expand...
Click to collapse
when applications does not free malloc'd memory and terminates, WM does not do any clean up (at least not immideately).
so if you have a badly written application you are using quite often, free memory drains fast.
to simulate this behaviour you can execute the attached applicaton.
it allocates 1mb of memory displays a senseless messagebox ad then it terminates (it does not free the malloced memory). when you started the application ~20times your memory is no longer available and you have to restart your phone.

Related

RAM usage

When I reset my XDA Orbit it stars at about 20MB RAM available.
If I open and immediately close say 3 programs it sinks to around 10MB RAM. No programs are open and i've run memmaid and pocketmechanic pro, RAM reclaim etc... but nothing seems to be able to free RAM. I have to soft reset again.
Any ideas??
remove un-needed programs (memmaid and pocketmechanic pro, RAM reclaim etc... ) lol
and any others you dont use, or could do without. Try and keep it as clean as possible!
lol I wish,
but being serious I only installed memmaid and procketmechanic to try and solve this RAM issue.
I could undertand if apps were running but after closing all it just seems unable to free the RAM back up
Try Oxios Hibernate
Thanks I've just tried Oxois Hibernate/close apps and it makes a small improvement maybe 0.5MB max but still nothing like the 21MB I start with. I understand some will just get swallowed up in the main system files but its seems ridiculous to lose 10-15MB???

Tilt 2 Memory usage

I recently upgraded from a Fuze to a Tilt 2 (AT&T). I am running the stock AT&T Tilt 2 Rom. I have applied the hot fixes on their site though.
It is the same processor as the Fuze yet it is much more responsive, I love that. But I have a question. Even when I am not running anything (other then the TouchFlo interface) it is hovering around 80% of program memory usage, and there is only ~40mb free.
The fuze had the same amount of memory, and in the stock rom it was only using ~40% of program memory.
I am monitoring this after reset, so I am not looking at memory leak.
Is this normal for everybody? Any idea what is running in the background to waste so much memory? The task manager (windows default) does not show anything else running.
HKLM\Software\HTC\ResProxy
"ShareMemSize"
Change this value to zero
I found this in this link if you want more info on it.
http://forum.xda-developers.com/showthread.php?t=588764
enahs_ said:
I recently upgraded from a Fuze to a Tilt 2 (AT&T). I am running the stock AT&T Tilt 2 Rom. I have applied the hot fixes on their site though.
It is the same processor as the Fuze yet it is much more responsive, I love that. But I have a question. Even when I am not running anything (other then the TouchFlo interface) it is hovering around 80% of program memory usage, and there is only ~40mb free.
The fuze had the same amount of memory, and in the stock rom it was only using ~40% of program memory.
I am monitoring this after reset, so I am not looking at memory leak.
Is this normal for everybody? Any idea what is running in the background to waste so much memory? The task manager (windows default) does not show anything else running.
Click to expand...
Click to collapse
There's a couple of settings common to all models of the TouchPro2/Rhodium (which the Tilt2 is one of) that help to reduce the base memory footprint of running WM and Sense (aka TouchFLO3D). Cabs for them are attached below (SSK TP2 Dynamic Resource Proxy and NoPushInternet).
There's also a number of resident apps/programs that AT&T packs into their stock rom that are unnecessary and can be cleaned out. They won't make much difference in your available RAM (unless any of them get started and are running in the background), but cleaning them out can free up a significant amount of storage memory. There's a utility that's been built to help you clear them off, here's the link with info on it:
http://forum.xda-developers.com/showthread.php?t=587637&highlight=crud+scraper
EDIT: The first cab I attached does the same thing as the registry entry vnb28 mentions above
The biggest memory saver is disabling Opera from running in the background on start up. This uses 8-10 megs or so it appears on my phone. There are lots or registry edits and cabs out there that will do this.
InRBigness said:
The biggest memory saver is disabling Opera from running in the background on start up. This uses 8-10 megs or so it appears on my phone. There are lots or registry edits and cabs out there that will do this.
Click to expand...
Click to collapse
I was under the impression that was the net effect of the NoPushInternet cab I've been using (attached in my previous post)...I haven't used any other cabs for that purpose, and it doesn't load for me anymore.
Thanks guys! You are brilliant! That free'd up a bunch of memory (Share Memory trick). I am going to leave Opera running in BG for now because I use it a lot, but will remove it if need be later. I am staying around 50% usage right now, which should be plenty of free program memory.
And thanks sirphunkee, I was wanting to remove some of that crap (like stupid game demos) but could not. I tried to deleting the large exes but that was not allowed either.
My system is running great now thanks to help from these forums!
If there was only a way to get weather (no fancy animation) on home screen of Touchflo 2.1 !
enahs_ said:
Thanks guys! You are brilliant! That free'd up a bunch of memory (Share Memory trick). I am going to leave Opera running in BG for now because I use it a lot, but will remove it if need be later. I am staying around 50% usage right now, which should be plenty of free program memory.
And thanks sirphunkee, I was wanting to remove some of that crap (like stupid game demos) but could not. I tried to deleting the large exes but that was not allowed either.
My system is running great now thanks to help from these forums!
If there was only a way to get weather (no fancy animation) on home screen of Touchflo 2.1 !
Click to expand...
Click to collapse
Glad to help You might want to also throw a thanks over to pyromosh who created crud scraper: http://forum.xda-developers.com/showthread.php?t=587637&highlight=crud+scraper

Program Memory reducing, even not in use

so im running Jackos OldSchool WM 6.1 ROM for the sake of RAM, running 120mb on fresh start but what i noticed is after listening to music for about 2 hours and leaving the phone sit for an hour its at 109mb without any programs running....whats the cause of this?
i noticed with 6.5 ROMs as well
unsure of the reason. but.
why not try cleanRAM app?
free. and cleans up ram space.
Hey XERO, just to be sure, you're saying that over that time the amount of available memory drops by about 11MB, correct?
It sounds to me like the music you're listening to was loaded in RAM but didn't get unloaded when you closed the player maybe? I know that music eats RAM in that way...might just be best to try the cleanram sweep like sh4d0w suggested
Clean ram like like the other responses say. you can schedule it to run at a schedule or you can run it when you feel you need to. you can get it here>http://forum.xda-developers.com/showthread.php?t=514333
thats still decent memory left. clean ram will wrk, but its always going to fluctuate. even when not in use. as long as it dont drop below 50mb, u good..lol ull be clean ramming all day trying to get it to stay at the startup ram mem left...lol some other ones that might help is Clear temp or advanced task manager. advanced task manager will show u every process running. u might be able to find the culprit there.
Sent from my AOSP on XDANDROID MSM using the XDA mobile application powered by Tapatalk

[Q] Ram decreasing throughout the day Normal?

Hey, I'm running the stock rom on a At&T Tilt 2, most of the time I am using TouchFlo3D, once in awhile I'll switch to SPB Pocket Plus (Demo Version).
I notice when using TouchFlo3D I start with ~70MB of Ram after a soft-reset, but as I go throughout the day this takes a Very Fast dive, just using the program for messaging, etc.
When using SPB Pocket Plus (Demo version) I start with ~90MB and it keeps it up for much longer throughout the day...no need to soft-reset all day to bring it back up.
I know this would happen with my Samsung Epix running WM 6.1...but never to the extent of the Tilt 2, barely anything would fall off, I would never need to soft-reset just to get my Ram back throughout my day.
I always check my task manager too, making sure nothing stays running in the background.
Is this normal with the TouchFlo3D interface?
Anyway to free up more?
Thanks
it's a common issue with windows mobile phone to have these leaky ram. The stock rom seems to have more issue in my opinion. I think mail and also windows media will never fully close themself after you launch them.
Stock rom uses a bit more memory because of some bloatware that often got loaded. Though the latest rom (not officially out on att or htc site) seems to have less issue with slownees but still has leaky ram.
My opinion is that if you are concerned about hte ram leaky or slowness, try one of the custom roms, they often works better, faster, and took out most of the bloatware.
I had the tilt2 for about 6 months, I noticed some memory leak, but no concern, since I never had an issue with it, but since a few days ago I noticed that after turning the phone ON I have 35mb storage ram and 80mb program ram free but I can see the program memory going slowly down to 40mb and sometimes to 24mb in 20-30 min. Without ruinning any app!
What's running there? that I can't see.
I have stock At&t ROM and the 8gb MicroSD with as much I as can, pictures, videos google, bing, music, recordings etc. QUESTIONS
How I delete some of the at&t garbage with out using a custum ROM? (I don't know too much to do that)
Is there an app to manage the stolen ram?
I have over 1000 contacts, and gmail,live, hotmail and msn emails, can I move that to the microSD? how?
I would appreciate your help.
Pinguino1 said:
I had the tilt2 for about 6 months, I noticed some memory leak, but no concern, since I never had an issue with it, but since a few days ago I noticed that after turning the phone ON I have 35mb storage ram and 80mb program ram free but I can see the program memory going slowly down to 40mb and sometimes to 24mb in 20-30 min. Without ruinning any app!
What's running there? that I can't see.
I have stock At&t ROM and the 8gb MicroSD with as much I as can, pictures, videos google, bing, music, recordings etc. QUESTIONS
How I delete some of the at&t garbage with out using a custum ROM? (I don't know too much to do that)
Is there an app to manage the stolen ram?
I have over 1000 contacts, and gmail,live, hotmail and msn emails, can I move that to the microSD? how?
I would appreciate your help.
Click to expand...
Click to collapse
I have a lot of contacts...but keep them all on the sim memory, I only copy over my main ppl that I talk with daily, so I can have their pics and set ringtones for them individually...a start to help with memory.
I have an 8GB card too...my memory isn't that low...the ram goes down throughout the day...faster than my last windows phone....try installing apps on the storage card verses the main memory...what I do when I can...have about 120mb of memory left on the device.
Download Crudscraper to remove nearly all traces of bloat AT&T added.
See my sig for results.
Consider investing in Mem Maid to keep on top of maintanence.
No program can remove things stored in ROM (including CrudScraper, which basically only deletes the shortcuts from the Start menu). The only way to actually get rid of the bloatware is with a custom ROM.
TF3D is a known memory hog with a lot of leakage. The new OEM ROM's version of Sense is just as bad. That's the price you pay for pretty home screens. The free CleanRAM is a good way to reclaim RAM during the day, but soft resetting is still the best way.
Miami_Son said:
TF3D is a known memory hog with a lot of leakage.
Click to expand...
Click to collapse
Not true.
Miami_Son said:
No program can remove things stored in ROM (including CrudScraper, which basically only deletes the shortcuts from the Start menu). The only way to actually get rid of the bloatware is with a custom ROM.
Click to expand...
Click to collapse
There's 226.05 MB of RAM used for Storage and 187.07 MB RAM used for Programs. ANYTHING within either CAN be deleted to free up space. Some badly decided removals (most) will cripple Windows, some sit taking up huge amounts of RAM. Games and music preloaded in particular.
Removing anything via Crudscraper (nothing vital) IS GONE. Watch the Storage RAM available increases to validate.
ONLY a hard reset will make Crudscraped items reappear. Otherwise they ARE erased from current OS.
Use freeware Treesize to breakout every RAM MB into tree-view directory. The "bloat" IS in user's control done carefully or just auto-magically running Crudscraper.
ROM is NOT same as RAM.
bmhome1 said:
ROM is NOT same as RAM.
Click to expand...
Click to collapse
If you know this, then why are you so wrong about everything else? Nothing in ROM can be deleted manually. It may disappear (as in the case of Manila mods that overwrite files, for instance), but it isn't actually deleted. The OS and some of the carrier addons are in ROM. Crud Scraper does not delete anything in ROM. All it does is delete the shortcuts (*.lnk files) and any parts of the program that are in Storage Memory, but the parts that are in ROM remain taking up space. The only way to remove something from ROM is to install a custom ROM that has had those items removed. Much of the stuff users want to get rid of, like the AT$T crap, is in ROM and can't be deleted.
RAM! RAM! RAM! is the topic. NOT ROM (READ-ONLY)! One CAN increase available RAM deleting what's been previously written to it. Period.
Crudscraper reclaims 40-50MB if you actually read ANYTHING about it.

[Q] Why no ones talk about the lag cause by Insufficient memory

I notice the phone start lagging when there are less than 100Meg of available RAM on both 2.1 or 2.2 SGS.
Questions....
1. How do i make sure there will always be min 130 available when not in use?
I'm currently using Froyo Task Manager, ATK and SystemPanel together to make that happen manually. A better suggestion or use of them will be appreciated.
I also tried MemoryPlus and Taskkiller (The red android logo)
2. There are so many background service running some of them start with com.samsung.... (what are these?) do we need them?
3. Why some Apps always run without us telling them to run, or ask us to give them to permission to run on background at will?
ATK
In ATK in settings you have auto kill level, which is disabled on default.
jakaka said:
In ATK in settings you have auto kill level, which is disabled on default.
Click to expand...
Click to collapse
I'm using JPC, ATK autokill will not able to kill at a system level like SystemPanel, so after a day of active use, the memory will still continue to reduce as some of the background service start consuming more and more memory or run more background process. E.g. Touchwiz from 17 Meg to 25 Meg.
So at the start with ATK, i will have 130Meg, after a day of active use i left with 80Meg. With Apps killed.
I use autokiller set to aggressive. memory left 152mb
ivanchin99 said:
I use autokiller set to aggressive. memory left 152mb
Click to expand...
Click to collapse
Cool, does that remain for few days? How often do you restart your phone?
free memory is bad memory!
why don't let android do it's job?! this ist linux with a clever memory management, not windows 95!!! deinstall all auto task killer android is handling the memory very well. it uses all it can get and if it's not enough it kills old uses apps from it. why have free memory, there is absolutely no reson for that! ram is fast, let the often used apps be there not on slow sd or nand!
Mykron said:
free memory is bad memory!
why don't let android do it's job?! this ist linux with a clever memory management, not windows 95!!! deinstall all auto task killer android is handling the memory very well. it uses all it can get and if it's not enough it kills old uses apps from it. why have free memory, there is absolutely no reson for that! ram is fast, let the often used apps be there not on slow sd or nand!
Click to expand...
Click to collapse
QFT!
What is the point of having memory if it is constantly empty?
Think about it this way...If you had five friends at your house and you have five chairs, do you make 2 or 3 of your friends stand so there is always empty space or do you let everyone sit down and worry about something worthwhile?
Finguz said:
QFT!
What is the point of having memory if it is constantly empty?
Think about it this way...If you had five friends at your house and you have five chairs, do you make 2 or 3 of your friends stand so there is always empty space or do you let everyone sit down and worry about something worthwhile?
Click to expand...
Click to collapse
True, upto a certain point... I don't think you need to have at least 100 or 150 mb free but it DOES seem to help to not let it get down to like 30mb...
For me:
-JM7
-animations off
-voodoo lag fix
-minfree manager set to preset agressive.
minfree manager customizes the android memory management system.
I love it this way, No lags when starting the Phone (DIALER) or anything else. The dialer annoys me the must, this must be lag free, if i want to dial i want to dial right away.
Btw, I think you have made some wrong assumptions about the Android memory management system, as mentioned, unused ram is wasted ram.
dagrim1 said:
True, upto a certain point... I don't think you need to have at least 100 or 150 mb free but it DOES seem to help to not let it get down to like 30mb...
Click to expand...
Click to collapse
Agreed but I have never seen my Galaxy with free memory that low and I don't use a task killer. Of course I don't often have more than 3 or 4 apps running at the same time
This is not about letting ram do nothing.you surely don't wasn't your ram get used up by programs you don't want while you had no hand in this.All those services running I don't want.badly written programs that are hanging out in memory instead of closing.at least in symbian an app closed when you exited.
Why would you have 100MB free ? Do you have any application that needs 100MB to run ?! The android system already has enough memory to run so even if you could have 200MB of free memory you phone wouldn't run any faster you would just be able to lauch around 20 apps at the same time.
Read this:
http://geekfor.me/faq/you-shouldnt-be-using-a-task-killer-with-android/
Linux however isn’t generally affected by this. While I admit that I don’t know the architecture and reason for this… linux will run the same regardless of if you have 20mb free memory or 200mb.
Click to expand...
Click to collapse
Finguz said:
Agreed but I have never seen my Galaxy with free memory that low and I don't use a task killer. Of course I don't often have more than 3 or 4 apps running at the same time
Click to expand...
Click to collapse
Dunno, I just noticed that one time my phone was VERY sluggish and memory free was around 20mb or so. Cleaning it up did seem to help (unless one of the programs killed was causing the lag of course).
Ah well... Whatever people choose right?
You guys can argue all you want that free RAM is a waste of RAM....
But it is a fact that the SGS runs much slower when the free RAM is low. This is the experience of all the SGS'es I have tried and my own as well. At least this is the case when running 2.1. I have not tested anyone with 2.2 yet.
It s starts to lag when memory is below 40 mb. So when it s low and you start an application it starts to lag. I set it to 50-55-60 and got hardly any lag. No need to keep so much free ram
Sent from my GT-I9000 using XDA App
matty___ said:
It s starts to lag when memory is below 40 mb. So when it s low and you start an application it starts to lag. I set it to 50-55-60 and got hardly any lag. No need to keep so much free ram
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Which ROM are you using? as the low memory killer level for background apps is set at 40M which means you should have 40M free all the time or it will start killing background apps. This is also why task killers are useless, free ram is wasted ram for android.
I never had the experience that more free RAM is faster, perhaps with the stock rom but JC and upwards are all good by default. Animations off + Oneclick lagfix (or another) and the phone stays totally lag free.
Being an android user for 1,5 years now i'm very confident Taskkillers are useless except when an app is stuck. I've had periods where I used them allot but the phone only gets slower as the killed apps have to be loaded into the memory again.
Finguz said:
QFT!
What is the point of having memory if it is constantly empty?
Think about it this way...If you had five friends at your house and you have five chairs, do you make 2 or 3 of your friends stand so there is always empty space or do you let everyone sit down and worry about something worthwhile?
Click to expand...
Click to collapse
Provided you are not expecting anymore friends. The problem happens if all your 5 friends are happily seated and along comes 2 more friends a-visiting. So you have to now move 2 inactive (for want of a better word) friends out of the seats so that you can accommodate the 2 new ones. This takes time. So why not move these friends out as soon as they become inactive so that the space is readily available when someone comes calling?
Try to have a read about garbage collector before argueing about free memory.
The more you try to have a large amount of memory, the more you will need major GC (and during major GC all activity is frozen).
If you let the system manage memory, it does minor GC as needed when it reaches min memory waterline (seems to be 50Mo on SGS).
Let the system do its job.
Get rid of task killer.
Mykron said:
free memory is bad memory!
why don't let android do it's job?! this ist linux with a clever memory management, not windows 95!!! deinstall all auto task killer android is handling the memory very well. it uses all it can get and if it's not enough it kills old uses apps from it. why have free memory, there is absolutely no reason for that! ram is fast, let the often used apps be there not on slow sd or nand!
Click to expand...
Click to collapse
I completely disagree. OK, it is better to use memory, but the android memory management is extremely inefficient since it does not know which foreground and background processes are important to the user and which are not, even though it tries to figure that out. Since the Galaxy S does not allow the system to use the full 512MB of memory, this can be a critical factor. And the Galaxy S definitely lags massively when less then 70 or so MB of free RAM is available this is definitely a fact.
The biggest problem is that you cannot manually close apps and only have multitasking access to the last 6 apps used. If you use 7 apps simultaneously, the 1st app still consumes memory but you cannot even switch back to it. And there are so many useless background processes, starting up over and over again and consuming hundreds of MB memory if they are not killed in regular fashion.
Who needs gesture search, amazon mp3, layar, and all the samsung crap running in the background all the time. If you only have 10 such applications and each of them only consumes 15MB of ram, 150MB are wasted for nothing.
Every second market application registers itself as autostart on every boot, so to use a autostart manager is also mandatory.
Since everybody can easily develop for Android the application quality and resource efficiency is not always perfect. So in my opinion Android needs a task manager, this is why even Samsung integrates such a application.
Using a well configured ATK (set to ignore system applications, widgets and apps frequently used for multitasking and killing every else on screen off) and autokiller (strict setting) in addition to Autostart Manager (had to remove 40!!! useless apps from automatic startup) and lagfix, the SGS runs perfectly smooth.

Categories

Resources