Memory management - Xiaomi Mi A2 / 6X Questions & Answers

First off, I know that there is a similarly named thread, but that one is regarding the eMMC. I'm talking about RAM here.
I have some questions about memory management of this phone. I list FB quite a lot and the thing that I notice is that every time I open an external link, the app reloads upon closing the internal web browser and just sends me back to the first post like the app reloaded. The same thing happens in Youtube very often. I would play a video, and after closing it, I would end up back at the top of my subscription feed. It's like these apps aren't kept in memory at all.
Now these aren't the only examples of such behavior, but they are the most obvious.
I'm not a heavy multitasker. I jump between 2-3 apps usually so I don't know what could be (if anything) hogging my system memory and if this is maybe a kernel "bug". If so, can I tweak it somehow to keep the apps in memory?
Also, has anyone else noticed such behavior?
I have a 64GB/4GB version and I've experienced this in both the August and September update...

Found what was causing such a behavior.
Under the developer options "Don't keep activities" was turned on. Disabled it and now everything is working as expected.
Just to note, I haven't fiddled with this option so it was out of the box like that and that might (and surely is one of) the reason we are seeing such low multitasking performance even compared to the 6X

It's not ticked here

It's not ticked on stock default, I have stock from last night.

Related

Auto Memory Mangager

Not sure if you all are familiar with this app, I haven't seen anyone speak upon it on XDA yet, so just thought I'd share my experience with it.
http://www.androlib.com/android.application.com-lim-android-automemman-wBjq.aspx
IMO, this app is pretty cool. Very simple and easy to use, although it doesn't come with detailed instructions on how to use, so I felt the need to explain a little bit about it:
Tired of lags to and from Dialer/Contacts/Call Log?
Have you ever pressed the call button to dial a number/contact and nothing happens for 10 to 15 seconds then finally the call goes through and starts to ring?
Ever went back to home screen after fooling around with an app, or web surfing the browser only to find that a widget or two is missing or is not loading/refreshing properly?
Gmail not syncing daily as it usually does?
Market taking forever to load up the downloads page or lagging connection with G-talk to promptly start the download/updates you started?
Well these are the memory/background/content provider situations that need to stay snappy if nothing else does, agree?
Then this app may or may not be the answer to all of your problems.
For me it was. First and foremost, it is a FREE app, yay! (at least to my current knowledge, unless developer has changed it)
*FYI* This app does require root permissions, so if you are not rooted this will be of no use to you.
After installing, when first opening the app, super permissions should pop up, just check the always box and press allow for root access. Close the app, then re-open.
Now, there are 4 options you may choose, DEFAULT< CUSTOM< MILD< AGGRESSIVE
Default settings will be what you see on first use, those are the default Android memory settings for your G1
Custom- self explanatory, you move the bars of each memory category according to how you prefer- *Note* the amount shown is not exact memory, it is a threshold, basically a set amount not to exceed, Your phone will automatically choose how much to use according to how much it needs, but its limitations will be set by the threshold you choose. Go ahead and make your adjustments, then click the custom button, this will save these settings. So the next time you want to re-enter those settings, just hit the custom button, and it will restore.
Mild- Simply a preset application setting
Aggressive- Another preset app setting
You choose what works best for you, I would suggest playing around with different settings until you have achieved a memory usage that gives you the most improvement, *Note* Do note mistake this as a speed app, it only controls memory, so don't expect some super fast change, but if you set it up properly, and memory is being managed to the best case scenario of your usage, speed will increase, believe me.
Start with the presets, see how they work throughout the day, if you notice no difference, or worst than it already was, change it to something else.
Personally, my best experience has been with the Aggressive preset. Its been the most effective for my phone, however; this won't be the case for everyone. Aggressive basically raises the threshold for background data(widgets,home, cache, etc.) And content provider (google apps, settings, G-talk and stuff) And Empty application- this means, IMO, the amount of free memory sitting around available, for soon to come data or apps that you might open later, I.E.- multi-tasking, Call screen, new mms or sms
It also lowers the threshold of the foreground and running apps, so that they don't suck up so much memory the phone lags before it can open other things in memory. Get it? But as I stated, different people will have different preferences.
If you haven't already, try it out! If you don't like it, or don't need it...maybe results won't change things enough for you to have any use for it, you can always uninstall, and it won't harm any memory or data on your phone.
Also, regardless of threshold settings, if you open or use more memory than threshold limits, it will not break or crash you phone causing reboots or anything like that. So don't worry. The app does not prevent you from doing anything on your phone, it simply manages it according to your use.
I hope this comes in handy for someone, as it has been more than useful for me on a daily basis. You can find more information via market or the link above.
Don't take offence to this, but any "speedup" you think you are getting from it is entirely a function of the placebo effect.
There is no advantage to forcing memory to remain "free", and in fact, doing something like this will actually make the phone SLOWER than it would otherwise be.
Android has a VERY well thought out memory management system. It keeps a record of processes running and their priorities. In the event that more memory is required for a higher priority application, it will automatically select some other application to kill off in order to get that.
What this does is it ensures that you ALWAYS have the memory FULLY utilized, which means optimal performance under every circumstance.
An unfortunate trap that you are falling into is the traditional view of memory -- for example on a DESKTOP system, you don't have anything killing off unused processes, which means that every program you open will use up more memory, so the more FREE memory you have, the more new programs you can open before it starts swapping, and therefore you aim to always have a big chunk of free memory because more free memory means more applications can be open.
Android doesn't work like this!!!
What you are doing is forcing a memory utilization threshold on the thing. This has the same effect as simply reducing the total memory available on the device. That means that important applications are *MORE LIKELY TO GET KILLED OFF*.... which has exactly the OPPOSITE effect from what you seem to be after, which is to ensure that these important applications are NOT killed off.
I could be wrong, but I believe the intent of this is to allow the Android internal memory manager to be tweaked so that certain applications/processes have a higher priority and remain in memory and those that you deem as "less important" are removed first.
Here is a thread on the Hero forum about it:
http://forum.xda-developers.com/showthread.php?t=622666
Also, here is another App that does the same thing... only it will allow the settings to persist through a reboot...
http://www.androlib.com/android.application.com-rs-autokiller-wEwp.aspx
With this App, I do not notice an increase in free (meaning useless) memory... I do notice that key processes that I deem important are still running on CM 4.2.14.1... Even after running many of the ~160 apps I have, including games...
Individual results may vary... Nobody runs the same exact configuration and apps on their G1...
L8r
@Ibcoder
That means that important applications are *MORE LIKELY TO GET KILLED OFF*.... which has exactly the OPPOSITE effect from what you seem to be after, which is to ensure that these important applications are NOT killed off.
Click to expand...
Click to collapse
But it doesn't do that, the threshold simply states a measurable amount of reserve...but not a limitation. Theres a difference. Limits and thresholds are not the same, So what you are saying is not how the app works. All apps open in memory remain in memory, of course you still have to use kill switches and task managers to control unwanted memory hogs, but the app basically controls the memory in use, thats all Im saying, so if that memory is being divided properly, responsive times will increase, I know android had its own setting of doing this, hence the word *DEFAULT*...that is what the app is for, if you don't want to let Android control your memory usage, the app gives you the option to customize it
Also, here is another App that does the same thing... only it will allow the settings to persist through a reboot...
http://www.androlib.com/android.application.com-rs-autokiller-wEwp.aspx
Click to expand...
Click to collapse
Cool app! Thanks for the link, never seen this one.
But wouldn't auto kill be the same as all the other task managers and explorer apps? Its made to kill off unwanted apps, processes, and background services to free memory right? Well, I have plenty of those, and they all work quite fine.
The app I am discussing above is not a killer, its only a manager, it just gives the proper amount of memory to the category you specify to be more important memory users, thus for saving wasted memory. It doesn't specifically kill off or make memory, just manages it.
thanx though, I will try that out.
I recently saw this new app in the Market, but was unsure what advantage it will have on performance, if any. I'll pay attention to this thread to see where the discussion leads on it's usefulness (or potential lack thereof).
TeeJay3800 said:
I recently saw this new app in the Market, but was unsure what advantage it will have on performance, if any. I'll pay attention to this thread to see where the discussion leads on it's usefulness (or potential lack thereof).
Click to expand...
Click to collapse
Ok, and I don't blame ya, that's how I test everything on xda, roms,apps, hacks, you name it....but only after I review enough good responses (preferably 3)
But on the contrary, there have been times that something was reviewed poorly, but after my own experience turned out to be great! You'll see that a lot in the android market as well, great apps with two star/3 star ratings all because some asshole didn't know how to use it, LoL
Try it dude, you got nothing to lose...won't break ya phone, but if ya want to play safe nandroid your current stuff first.
Klyentel said:
Cool app! Thanks for the link, never seen this one.
But wouldn't auto kill be the same as all the other task managers and explorer apps? Its made to kill off unwanted apps, processes, and background services to free memory right? Well, I have plenty of those, and they all work quite fine.
The app I am discussing above is not a killer, its only a manager, it just gives the proper amount of memory to the category you specify to be more important memory users, thus for saving wasted memory. It doesn't specifically kill off or make memory, just manages it.
thanx though, I will try that out.
Click to expand...
Click to collapse
As far as I know, they are pretty much the same... The XDA thread I mentioned above has both the Dev of the App you posted and the Dev of the App I posted... They both created one at around the same time... One with sliders and one with fields... The only difference I think is that AutoKiller uses a service to write the settings on a reboot...
Still playing with this to see if it makes any real difference... I know if I set the values too aggressive, then the browser reloads every time I come back to it...
I know if I set the values too aggressive, then the browser reloads every time I come back to it
Click to expand...
Click to collapse
yeah that has happened to me too.
The linux kernel keeps a buffer cache of recently used files in RAM. So whenever an application wants to access something on the flash, instead of going to the flash file system, it can just get it from the file buffer cache in RAM, a significant speed increase.
If the RAM is currently being taken up by unused android apps, then that leaves less room for the buffer cache, so in theory, by killing off unused android apps more quickly, that will allow the linux kernel to allocate more space for the buffer cache and thus speeding up the system.
Am I way off here?
Dave
lbcoder said:
Don't take offence to this, but any "speedup" you think you are getting from it is entirely a function of the placebo effect.
There is no advantage to forcing memory to remain "free", and in fact, doing something like this will actually make the phone SLOWER than it would otherwise be.
Android has a VERY well thought out memory management system. It keeps a record of processes running and their priorities. In the event that more memory is required for a higher priority application, it will automatically select some other application to kill off in order to get that.
What this does is it ensures that you ALWAYS have the memory FULLY utilized, which means optimal performance under every circumstance.
An unfortunate trap that you are falling into is the traditional view of memory -- for example on a DESKTOP system, you don't have anything killing off unused processes, which means that every program you open will use up more memory, so the more FREE memory you have, the more new programs you can open before it starts swapping, and therefore you aim to always have a big chunk of free memory because more free memory means more applications can be open.
Android doesn't work like this!!!
What you are doing is forcing a memory utilization threshold on the thing. This has the same effect as simply reducing the total memory available on the device. That means that important applications are *MORE LIKELY TO GET KILLED OFF*.... which has exactly the OPPOSITE effect from what you seem to be after, which is to ensure that these important applications are NOT killed off.
Click to expand...
Click to collapse
@dwang-agreed, as I stated @lbcoder, what he is saying is that the app holds everything in memory which slows down system, but it does not do that, and he implied that I stated it limited use of apps, which is incorrect, it does not operate as a limiter, or a kill switch, only a manager. Sort of like, organizing processes by priority based upon setting of threshold tolerance. Of course killing off unwanted apps and processes have to be done manually, via kill widgets or file explorers, When I first posted about this app I assumed that concept to be in mind of the reader....sadly I was wrong. I guess everything around here has to be put in perspective as if the reader knows nothing...sort of like an "101 handbook for Dummies" type thing.
What you are suggesting is incorrect, contrary to the product description, and quite frankly, impossible.
And you can't read.
There is no "I" in lbcoder.
Klyentel said:
@Ibcoder
But it doesn't do that, the threshold simply states a measurable amount of reserve...but not a limitation. Theres a difference. Limits and thresholds are not the same, So what you are saying is not how the app works. All apps open in memory remain in memory, of course you still have to use kill switches and task managers to control unwanted memory hogs, but the app basically controls the memory in use, thats all Im saying, so if that memory is being divided properly, responsive times will increase, I know android had its own setting of doing this, hence the word *DEFAULT*...that is what the app is for, if you don't want to let Android control your memory usage, the app gives you the option to customize it
Click to expand...
Click to collapse
lbcoder said:
What you are suggesting is incorrect, contrary to the product description, and quite frankly, impossible.
And you can't read.
There is no "I" in lbcoder.
Click to expand...
Click to collapse
First and foremost buddy, I quite frankly don't give a dam how you spell your name with an "I" or an "L"
Secondly, what I am stating is not incorrect, and is possible, because I have the app, use it everyday, and does exactly what I said it does via OP. Thank you very much. If you disagree, then don't download the app. Simple as that.
or heres a better idea create one of your own. I will be more than happy to try it if you feel you can do better, but don't downsize the quality of this one, straying other users away from trying it, as it may be as useful to them as it is me. Got it?
Now get ya DREAM on...(with android that is )
and leave me alone.

2.2 OS changes with cached apps and multitasking?

Anyone who uses system panel knows its the best task manager and the ONLY one that shows the device true multitasking. It's shows 3 categories, active running apps, cached inactive apps, and system processes. All 3 of this group shows up in 2.1. But in 2.2 froyo there is no longer cached apps group. It skips from active apps to system processes.
I asked the developer and he responded with the following:
http://androidforums.com/android-ap...eople-who-hate-task-killers-2.html#post882019
To Roger: sorry for delay in getting back to you as well, as far as I can tell the N1 with Froyo does not have any inactive/cached apps. I'm running the leaked Froyo version as well. On the other test phones (an Incredible, a Droid, and a G1) as well as in (non-Froyo) emulators I do see inactive processes as before.
Click to expand...
Click to collapse
Does anyone know what this means exactly? Has android 2.2 been changed where in no longer pre-loads apps? My observations on froyo using system panel shows that my running app list is now much larger than eclare with no cached apps at all, ever. Has Google changed this and removed cached apps? Or perhaps view are just now hiding it somehow so task managers cannot see this info?
If true then system panel would need an update. But that response from the developer seemed to not indicate that.
bump. so not ONE person noticed that froyo doesnt cache apps anymore?
RogerPodacter said:
bump. so not ONE person noticed that froyo doesnt cache apps anymore?
Click to expand...
Click to collapse
this may only be an issue with the pre-released Froyo.
harolds said:
this may only be an issue with the pre-released Froyo.
Click to expand...
Click to collapse
perhaps, but that seems like a pretty significant change to the OS. i'm wondering if they either changed the way the OS works completely, or if its just a bug that is being fixed for the final release of 2.2.
The 2.2 leak has a lot of missing code in it.
alot.
JCopernicus said:
The 2.2 leak has a lot of missing code in it.
alot.
Click to expand...
Click to collapse
i hope your right
RogerPodacter said:
bump. so not ONE person noticed that froyo doesnt cache apps anymore?
Click to expand...
Click to collapse
I don't have an N1 so can't answer your question, but I did notice that the developer you spoke to, TESTED FROYO ON A G1!!!
Seems logical to me to keep out until ready for final release testing, because you can test a lot faster if things aren't being swapped out and in.
cigar3tte said:
I don't have an N1 so can't answer your question, but I did notice that the developer you spoke to, TESTED FROYO ON A G1!!!
Click to expand...
Click to collapse
He's probably not a developer working on Android, probably just a application dev. Why would he be running a leaked version if he worked at Google.. Also, I think maybe he just doesn't know how to properly form a legible sentence since it would seem he meant other phones he has, not specifically that they are running 2.2, though I could see how you might think that reading what he said.
I would just hold off on questions like this until a final release is out, it's pretty pointless to worry about until Google drops an official OTA update.
Ok so now that the official froyo is released, and the multitasking STILL works differently, where do we find out what and how things have changed? Cached apps no longer exist, instead all apps show as running in system panel. I'm surprised there's not more mention of this since it seems a fundamental change in OS has occurred. Anyone have any insight?
On the technical side I can't speak, but for the end user experience, Froyo's multitasking has been the same or better than before. I experience less "jittery" lag and it seems like more programs are not unloaded (ie: run immediately, no load time at all) vs before if you used say Facebook, then browser, K9 mail, few other things, then back to Facebook it was ~1s to reload.. Maybe Facebook is a bad example here, as it seems to ALWAYS load fast, but you get the gist..
It of course could be the extra ram available now... 512M total vs the 256M before?
Well, if they did significantly change something, it was really for the better. Things just fly now switching back and forth.
Of course, I was only stock before and only had access to half the memory. So it could just be keeping a lot more of my apps in memory now that it has access to the full 512mb.
khaytsus said:
On the technical side I can't speak, but for the end user experience, Froyo's multitasking has been the same or better than before. I experience less "jittery" lag and it seems like more programs are not unloaded (ie: run immediately, no load time at all) vs before if you used say Facebook, then browser, K9 mail, few other things, then back to Facebook it was ~1s to reload.. Maybe Facebook is a bad example here, as it seems to ALWAYS load fast, but you get the gist..
It of course could be the extra ram available now... 512M total vs the 256M before?
Click to expand...
Click to collapse
Well using system panel shows that in froyo there is an entire group of missing app now, inactive cached apps, are just flat out gone in froyo. It doesn't seem to be related to the new available RAM in 2.2.
I noticed this on first day on 2.2
I think the possible reason is 2.2 support more than 256M RAM. So the 16MB free RAM threshold is hard to reach now.That's way we didn't see Inactive process. maybe we can try run alot of apps backgroud untill reach 16MB free RAM threshold. Then use systemplane to check if there is any inactive process.
luojs said:
I noticed this on first day on 2.2
I think the possible reason is 2.2 support more than 256M RAM. So the 16MB free RAM threshold is hard to reach now.That's way we didn't see Inactive process. maybe we can try run alot of apps backgroud untill reach 16MB free RAM threshold. Then use systemplane to check if there is any inactive process.
Click to expand...
Click to collapse
I've already tried that, gone down to 14 mb but they do not appear. They are completely gone from the OS, and system panel developer already confirmed that they are gone from 2.2 and It's just the way the OS is now. Check the link I posted earlier in the thread. What we need to find out is WHAT and WHY Google made these changes. Why isn't anything mentioned in the changelog etc?
Are you just interested in knowing why? Or is it affecting you in a bad way? Whatever reason they have, it has improved performance a lot. I just assume they are categorizing them differently now. Because the apps 'running' in the background still aren't really running, they are just waiting in memory in case you need them again.
Clarkster said:
Are you just interested in knowing why? Or is it affecting you in a bad way? Whatever reason they have, it has improved performance a lot. I just assume they are categorizing them differently now. Because the apps 'running' in the background still aren't really running, they are just waiting in memory in case you need them again.
Click to expand...
Click to collapse
I'm just wondering why, and what exactly the changed. My phone runs great with no issues.
Previously system panel showed 3 groups of apps, the first was running apps, and these are the ones actually using some type of resources typically. While the second group was inactive, "frozen" not using any resources.
But now in 2.2 everything goes into the first group. And the OS no longer starts a bunch of apps pre loaded upon boot up. It only loads apps you use now. So still I'm wondering if now these 2 groups are combined into the one active list, can we tell the difference? Or is there no difference anymore, and only running apps are now shown?
Ok, so the frozen category would be ones that were FCed to release their memory. Which could kind of imply that the OS would remember their state.
Android doesn't remember the state for you if it is no longer in memory. It is up to the app to save its state when it is told it is going into the inactive state.
So it could be that the frozen category wasn't actually anything special, just apps that were forced out of memory, and now they don't even mention them anymore.
You said that you couldn't force anything out of the list though, right? If you can't get anything automatically removed form the list, I would say they just combined the two categories.
Clarkster said:
Ok, so the frozen category would be ones that were FCed to release their memory. Which could kind of imply that the OS would remember their state.
Android doesn't remember the state for you if it is no longer in memory. It is up to the app to save its state when it is told it is going into the inactive state.
So it could be that the frozen category wasn't actually anything special, just apps that were forced out of memory, and now they don't even mention them anymore.
You said that you couldn't force anything out of the list though, right? If you can't get anything automatically removed form the list, I would say they just combined the two categories.
Click to expand...
Click to collapse
Another thing that changed is that its not possible to kill most apps. Browser and some others can be killed. But for. If most part if you kill something it just stays there running, or immediately pops back up.
But yes the frozen apps list is just plain gone. It was a useless list anyway. But I wonder what exactly they changed and what it means and how it works.

[Q] Apps kept coming back after autokill -> memory leak -> lag

Hi all,
1. I've got these applications (Smartone-Vodophone SV app, 5 days weather, google map, social hub and such) that would keep coming back, relaunching themselves even after I put them onto my task manager's autokill list. Seems like they would wait around for me to enable the wifi/3G connection and then launch themselves. I even installed other apps to disable autolaunch and they would still launch themselves in the background every now and then. I had to kill them every time I unlocked my screen and these "launching and killing" cycles eventually depleted my memory down to below 100MB, making the lag situation even worse. Does anyone know how I can stop them from launching, without having to uninstall these apps?
2. I haven't installed the lagfix and I understand that the fix has to do with reformatting the apps' partition with a faster file system to reduce the lag (probably by giving it faster I/O access to the program's binaries?) I'm still waiting for Froyo, which should be out in a couple of weeks in my country. Does anyone know if Froyo would take care of this file system problem? Even with the Froyo or one-click lag fix, it still would not solve the apps launching and memory leak problem, right?
3. I notice that after I've installed more apps, the lag situation got worse. I was playing some songs on the external SD cards and it choked once in a while. I made sure I killed all the other apps and that I still got 100+MB to run just this one song player app and yet it would still choke. This tells me that the lag has nothing to do with available memory. And the player app was stock that came with the phone so there shouldn't be any fragmentation issue (apps installed later might have?) that makes it run slow. And if its the bad file system, this app, running all by itself, should have all the I/O bandwidth to itself so the access to the app's binaries should not have any lag... and neither should the access to the songs on the external SD card. So what exactly is causing the lag then? I don't see how the lagfix would solve this problem either. I actually have read that the lags would come back after a period of usage even with the lagfix. Anyone got an insight to this problem? What exactly is causing the lag? and why installing more apps seem to make it worse? and would Froyo be able to fix all these problems?
Thanks a lot.
@boarder838
I think you really need to read a lot more about just how Android works as you seem to have some strange ideas about how it works.
To start with you need to realise that having 200mb or 100mb of free Ram makes zero difference to performance only when you have no free Ram is it a problem and even then the system will sort it out for you by closing the least used program. Free Ram is just wasted Ram as it's not doing anything and will not make your device respond or work faster using a Auto Task Killer is wasting your battery and slowing down your device not speeding it up and saving battery as you seem to think. As i have pointed out above stop obsessing over your free Ram amount as unless you have none its not a problem stop using a Task Killer and you will most probably see your device responds faster as its not constantly killing things and just leaves them open doing nothing in the back ground which doesn't use Ram or Battery so just leave them be.
Yes Froyo will bring many improvements to our devices but won't fix a problem that doesn't exist re memory leaks and apps launching that you seem to think you have. I don't know but some of those apps may be system apps that need to run all the time which is why they keep relaunching. As for a lag fix well that's what we are all hoping for but if not I'm pretty sure the great people of this forum will come up with an easy to apply fix to it.
I have absolutely no problem playing Music or even streaming it over Bluetooth no lag stutters or break ups at all although my Music is on the Internal SD card. Maybe you should look at the quality that you have encoded your Music in as that may be causing problem. maybe some of the apps you have installed are also causing a problem but its impossible to know as we all install different apps and have different set ups.
I don't know how much experience you have with Android devices or flashing Roms but if you read enough and understand it you have the possibility to flash custom Rom's and various tweaks and fixes to make your device how you want it. That's part of the beauty of Android but don't rush into anything you are not sure about as you can end up with an expensive brick so read things many times and make sure you understand step by step what you are doing if you are going to attempt any of these things.
If you look at my signature you will see i am running a Custom Rom that includes a lag fix and various other tweaks it also allowed me to remove some of the programs in the official Rom that i didn't want or need. For me my device runs nice and smooth and fast of course I'm looking forward to Froyo and all the improvements that will bring but I'm quite happy with my Galaxy S the way it is now. Oh and this is my second Android device and I've never used a Task Killer never mind an Auto Task Killer and have never seen an out of Ram message either.
Marc
exactly what he said ^
Hi Marc,
Thanks for spending time to read through my long post and reply to it. I probably didn't explain my problem clearly in my post.
There were a couple of reasons I wanted to kill/stop the apps from starting:
1. Even before I installed any of those apps killer, I noticed that the available memory kept going down after a couple days of usage and it went down to below 100M. I figured some of the apps would need 10's of MB to run so I thought I should at least keep 100MB around so that it wouldn't run out of memory and start swapping when I start those apps. I don't know enough about Android but I assume its just like linux or other OS, when it runs out of physical memory, it would start swapping and slow things down. Even after I started using task killer and killed all the other tasks, the memory level would still not recover. That seems to point to a memory leak problem but using "Memory Booster" to do garbage collection seems to help. Still, it would be nice to be able to stop them from launching in the first place. <-- my first question.
2. I do not want any jobs/processes/apps that I don't need to run in the background to drain my battery. I don't think I can say for sure that those apps are all just idling and not using much CPU/battery. There are quite a few of them so if each of them use some CPU time/battery, it will add up eventually. Note that these are not system processes (or daemons as in unix's init.d). They are crappy apps from the cellular provider so I'm pretty sure they don't have to be running (they're probably just collecting my personal data or smth). I just thought there would be a way to stop them from launching without uninstalling them.
Thanks for answering my question regarding Froyo. If they would do the filesystem lagfix then I'll just wait for that update.
As for the music stuttering problem, my songs are on the external SD card but my old Nokia E85 phone has no problem playing with those songs on the same SD card. As I have pointed out in my last question, I was only running one app and with plenty of memory so it had nothing to do with available memory. I also suggested that however bad the filesystem was, the I/O bandwidth should still be enough to run this one music player app (access the program binary/libraries?) and to retrieve data from external SD card to play the music smoothly. So applying the lagfix probably won't help this problem though I still haven't tried the lagfix. Now I'm thinking that one of the task killer might be killing some system processes which were needed by the music player. I probably should uninstall all these task killers and see if it would help.
I have gotten the phone for only a couple of weeks so I haven't gotten around to try flashing different roms or rooting my phone. There's so much info scattered around on the web and I can't seem to find a source that really has the authority or complete information. I'll see if I have time later to look into all the tweaks and such but for now its just a phone to me and I just want it to run smoothly without having to spend too much effort to tune it.
Don't get me wrong. I still love the flexibility and customization opportunities provided by the Android platform and I just love to show off my "Beautiful Weather Widget", "Live Aquarium Wall Paper" and my cool 3D scrolling "Launcher Pro" to my iphone4 buddies and make them drool.
Thanks for you comment and let's hope Froyo will bring us a smooth running and stable platform.
Dogmann said:
@boarder838
I think you really need to read a lot more about just how Android works as you seem to have some strange ideas about how it works.
To start with you need to realise that having 200mb or 100mb of free Ram makes zero difference to performance only when you have no free Ram is it a problem and even then the system will sort it out for you by closing the least used program. Free Ram is just wasted Ram as it's not doing anything and will not make your device respond or work faster using a Auto Task Killer is wasting your battery and slowing down your device not speeding it up and saving battery as you seem to think. As i have pointed out above stop obsessing over your free Ram amount as unless you have none its not a problem stop using a Task Killer and you will most probably see your device responds faster as its not constantly killing things and just leaves them open doing nothing in the back ground which doesn't use Ram or Battery so just leave them be.
Yes Froyo will bring many improvements to our devices but won't fix a problem that doesn't exist re memory leaks and apps launching that you seem to think you have. I don't know but some of those apps may be system apps that need to run all the time which is why they keep relaunching. As for a lag fix well that's what we are all hoping for but if not I'm pretty sure the great people of this forum will come up with an easy to apply fix to it.
I have absolutely no problem playing Music or even streaming it over Bluetooth no lag stutters or break ups at all although my Music is on the Internal SD card. Maybe you should look at the quality that you have encoded your Music in as that may be causing problem. maybe some of the apps you have installed are also causing a problem but its impossible to know as we all install different apps and have different set ups.
I don't know how much experience you have with Android devices or flashing Roms but if you read enough and understand it you have the possibility to flash custom Rom's and various tweaks and fixes to make your device how you want it. That's part of the beauty of Android but don't rush into anything you are not sure about as you can end up with an expensive brick so read things many times and make sure you understand step by step what you are doing if you are going to attempt any of these things.
If you look at my signature you will see i am running a Custom Rom that includes a lag fix and various other tweaks it also allowed me to remove some of the programs in the official Rom that i didn't want or need. For me my device runs nice and smooth and fast of course I'm looking forward to Froyo and all the improvements that will bring but I'm quite happy with my Galaxy S the way it is now. Oh and this is my second Android device and I've never used a Task Killer never mind an Auto Task Killer and have never seen an out of Ram message either.
Marc
Click to expand...
Click to collapse
Oh I found the problem with stuttering music. It was the "beautiful weather widget"! I tried removing all the task killers and aquarium etc and it still wouldn't work. As soon as I removed the weather widget there was no problem with music playback anymore. Anyone has the same problem that pretty weather widget?? I've already set the refresh period to every 3 hours but it still wouldn't help?!

How much of a difference does closing apps make?

Hi, i'm thinking of buying an HTC one and i can't wait for it and i wonder how much of a difference does closing apps make in terms of battery life because it is obvious that having apps running in the background makes the OS feel a lot faster and if it's a minor downside than i'd rather have the upside of having those running in the background.
Hahaahahahahahahahahaahaha. Closing them neither increases battery nor makes the system feel faster... Have you come from an iPhone? (It doesn't make a difference on iPhones either)
nope im coning from glaxy nexus and it does make a difference in it though
According to what I've read, the newer android systems freeze the apps while in the background. I don't know what apps you'd keep open in the background, though. The only one I have keep running is my browser.
Im asking that if im surfing on net and then have to go somewhere, do i have to close apps and then put the phone in my pocket or is just locking your phone and putting it in your pocket is fine.
battle1 said:
Im asking that if im surfing on net and then have to go somewhere, do i have to close apps and then put the phone in my pocket or is just locking your phone and putting it in your pocket is fine.
Click to expand...
Click to collapse
I just lock the phone and put it in my pocket. Does fine for me. I get awesome battery life. Usually your screen is what eats up your battery anyways, again I say usually ;p (always an exception somewhere). Out of all the android phones I've had, this one has the best battery life. Not saying there aren't better, but I can go a whole day with moderate use and still have a little juice at the end of the day. Now granted, if you were playing music, you may want to stop that first, but I figured that was common sense...
battle1 said:
Im asking that if im surfing on net and then have to go somewhere, do i have to close apps and then put the phone in my pocket or is just locking your phone and putting it in your pocket is fine.
Click to expand...
Click to collapse
Just minimize it to the recent apps tray, you can just restore the app where you left off ... Android manages apps extremely efficiently so you don't need to close them, force stop them in settings, use a task manager or any of the above. It actually drains your battery more to kill apps and have them start again, especially system apps that constantly run, than it does to just leave them running.
when you pause an activity (hit the home button, rather than the back button - or venture off to a different activity)
The app does not continue running, however it does preserve the application state (as long as dalvik doesn't kill it, due to higher priority memory allocation requests)
Apps can launch background services, which are NOT paused in the same way (depending on how they are created, of course). In order to force kill all services associated with an app, you'll have to use the app manager.
---
As far as performance/battery impact:
- You'd think "Oh, if i pause 50 apps then i'm going to run out of memory?" NO - the dalvik will kill them in the order it deems necessary to ensure a certain amount of memory is always free.
- This also means you cannot count on a paused app ALWAYS being where you left it off. In the middle of writing an important email? pause the app, go look something up in chrome, and come back to the email it MAY or MAY NOT BE where you left it off. (The dalvik could have killed it)
- Paused apps do not account for any CPU time, therefore there is no battery impact.
Services MAY account for cpu time depending on what they're doing - and they will run even when the app is killed depending on how they were registered.
So even in my Galaxy Nexus it's actually better if i don't swipe all the recent apps?

[Q] Trouble with RAM management?

I got my Xperia Z1 about a month ago, and I've noticed some issues with RAM management (or possibly under-optimized third-party apps). Although I haven't had much luck in replicating the problem, I noticed it happen a few times after a Firefox internet session, or after playing a graphically intensive game like Dead Trigger 2. The app would either close by itself (not crash, as in, there were no error messages), or, after I'd close it, I'd notice my launcher (Nova Launcher Prime) go into a restart loop. A quick glance at the running apps section in settings shows 50-100 MB of free ram, and all "constantly running" apps (launcher, viber, zooper widget, k9-mail, swiftkey, tasker, etc.) stuck, for want of a better phrase, in a restarting loop (due to lack of ram I guess).
I tried running Fast Reboot (a task killer) to see if I could regain stability of the system, but it kills only a few system tasks, freeing up to a measly 50 MB of RAM, which makes me wonder (in aggravation) just where the RAM is being used. The only way the running apps would stop closing and restarting (and I need the launcher stable) is to reboot. I'm not sure if the system would stabilize after x minutes, as I only waited for a minute or two before rebooting so that I could open another app/game.
I'm not trying to start yet another debate on necessity of used RAM on Android and efficiency/futility of task managers/killers, but what I described above really seems like poor RAM management to me. I've had a few android devices in the past, and experienced various problems /errors, but never something like this.
Has anybody had a similar issue, or have any tips?
My Xperia Z1 C6903 is currently running on rooted stock 14.2.A.0.290
Although i dont get force closes, but ive noticed most of the ram is taken by the phone itself, right now for me it says i have 1.1gb in use, when i close everything i have just a slight (barely even noticeable) increase in free ram, when i click on cached processes and close all one by one ive seen it increases the ram use instead of decreasing it?
But, do you use apps like setcpu? You can keep it on performance and keep the min slider to the lowest and the max slider to max, it runs stable and gives you performance when you need it, and no performance when you dont need it.
If all fails, try deleting system apps that you barely even use or need... Becareful what you delete tho!
mobzw995 said:
Although i dont get force closes, but ive noticed most of the ram is taken by the phone itself, right now for me it says i have 1.1gb in use, when i close everything i have just a slight (barely even noticeable) increase in free ram, when i click on cached processes and close all one by one ive seen it increases the ram use instead of decreasing it?
But, do you use apps like setcpu? You can keep it on performance and keep the min slider to the lowest and the max slider to max, it runs stable and gives you performance when you need it, and no performance when you dont need it.
If all fails, try deleting system apps that you barely even use or need... Becareful what you delete tho!
Click to expand...
Click to collapse
Thanks for the reply. No, I've used apps like that in the past, but haven't installed anything similar on the Z1, because I noticed in BetterBatteryStats that the CPU speed goes down often when the screen is off, and up when, I suppose, it's required, such as in intensive games...
What apps do you use? For example facebook, YouTube, browser etc
Ive checked again on my cached apps and to my surprise, AOSP browser takes up 208mb!
Facebook takes up 48mb, and youtube takes up 22mb.
It just depends on the apps you have installed, some use the ram even while the phone is asleep.
Ive stopped those and a huge difference was made on freeing up my ram!
What i dont get is tho why sony advertises 2.2ghz quadcore if the phone itself takes most of it?
Just delete the apps you dont need from "all apps".

Categories

Resources