How to multitasking as Much as possible? - Nexus One Q&A, Help & Troubleshooting

Hi everyone~
I'm the sort of person who loves multitasking, opposite to those people who use task killers every moment
I always find that my Nexus One has more than 200MB of free memory, and internal task killer keeps killing background applications, actually I've never seen my free memory drops below 180MB.
So i was trying to figure out how to let internal task killer Not to kill background apps, and discovered "Autokiller" which can tweak internal task killer parameters.
but unfortunately, even I set every parameter to 0, still internal task killer kills as much as before my apps still are killed and I constantly get over 180MB of free memory.
so could anyone please suggest how to *really* stop internal task killer from killing apps?
Thanks a lot

You can't do anything about it. One of the changes in Froyo was to autokill processes with OOM_ADJ=12 rather than 16 it used to be in Eclair - which essentially leaves only background processes spawned by services, and no "empty" processes anymore.
Autokiller is completely useless in Froyo, and doesn't do a thing - because of the reason I wrote above.
And you can't do anything to keep those processes, except rewriting the OOM manager in the OS code.

Ask this guy, he rolls like a boss.

houzuoguo said:
Hi everyone~
I'm the sort of person who loves multitasking, opposite to those people who use task killers every moment
I always find that my Nexus One has more than 200MB of free memory, and internal task killer keeps killing background applications, actually I've never seen my free memory drops below 180MB.
So i was trying to figure out how to let internal task killer Not to kill background apps, and discovered "Autokiller" which can tweak internal task killer parameters.
but unfortunately, even I set every parameter to 0, still internal task killer kills as much as before my apps still are killed and I constantly get over 180MB of free memory.
so could anyone please suggest how to *really* stop internal task killer from killing apps?
Thanks a lot
Click to expand...
Click to collapse
So what's the actual problem here?

thanks everyone
ok so probably I have to modify OOM_ADJ value in order to not let internal task killer to kill my background applications.
I applogize for my poor English, my question was, how to stop internal task killer from killing background applications.

You can't modify it, it's hard-coded in the OS (kernel?). You need to recompile the OS for that.

thanks a lot guys

Related

Android slows down over time

Just after I boot, android is fast and responsive. But over time android slows down and keyboard have delay.
What to do to prevent or at least reduce this "effect"? I have some Automatic Task Killer and free RAM is constantly above 100MB which means that task killer is doing something. Should I install better one or do something else?
Sent from my X1 via Android app. Sorry for typos.
Do you have GPS active? it doesnt work and android trying to find satellites may be slowing down your device. I dont have this issue and i dont use automatic task killer so free ram is always lesser than yours
Nope, all is off except wifi and phone.
Most annoying thing is that keyboard gets delay. So when you press key there is about 1 second delay between key press and letters show up on the screen. It don't sounds much but when you type something in you have too wait then few seconds for letters to appear on the screen.
have you tried not using the task killer app?
I have deleted all my widgets and shortcuts (my homescreens are now empty) and it's working great. It seems that one of the widgets was causing problems.
Can you tell me how many of the free memory you have?
I have the same thing, after some time Android has only 80-90 of free memory.
After booting, it has 120-130 of free memory.
Maybe i have to do with my wallpaper and widgets too ?
I had always around 100MB, but keep in mind that my task cleaner was automatically cleaning unused apps. But never 130MB
so i have the same :/
i have to check this out. if cleaning shortcuts and widgets will do something i will post it here.
It seems that task killers do more harm than good. I'm using android without task killers and it looks like to be at least as fast as before if not faster. Android System info shows 59MB of memory, but i don't care much because android closes apps automatically when memory is low.
So to smooth up android: have as clean homescreen as possible and don't use task killers.

Riddle me this

Every time I start my phone and run the task killer it usually has about 155-160 free mb of ram. As the day goes on and I run task killer every 2-3 hours the total ram available keeps dropping and by the end of my work day my phone is left with about 60-70 mb free, even tho all I do is text and email. Shouldn't my free ram be staying about the same through out the day if all I do is text and email? My phone is rooted with Unleash the Beast, found on this forum.
Sent from my SAMSUNG-SGH-I897 using XDA App
Actually, you do not need the task killer. Android has a task killer built in. You are most likely doing more harm than good. How Android works is that it sets a value to apps and processes closes them on its own when more RAM is needed based on that number. So, all those things you killed off with your task killer have to restart. This uses more CPU and battery every time your task killer kills them. . A lot of new Android users have a Windows mindset and want to kill off programs because they are hogging memory and resources. This is not the case with Linux and Android. Just because it is "running" does not mean it is using CPU or resources. Besides, your phone has plenty of RAM to run all those things. I want to smack ATT and Verizon reps for telling Android users to install them. Do yourself a favor and uninstall. Are you rooted? If so, download AutoKiller app from the market and set it to the preset Extreme and it will change Android's internal memory manager to kill off apps faster. For more info and more details on this visit a website by a great developer named Flipz. I hope this helped you. Spread the word to the others that don't know.
http://geekfor.me/faq/you-shouldnt-be-using-a-task-killer-with-android/
-Ken
Sent from my iPhone with the bigger Gee Bees.
I see, thanks for the reply, Ill check that app out.
No program. Task killers have great short term benefits but it is best to just let Android do what it does.
Sent from my iPhone with the bigger Gee Bees.

[Q] How to have more free memory

Hi guys thanks for your time, so this is my doubt
When i turn on my phone i have 170 MB available memory but after a while down to 70 MB sometimes to 40 MB, what should i install to have more than 100 MB free?? i already have [email protected] 256Hz #97 Kernel and 2.2.1 XXJPY firmware.
thanks
regards
Usually this won't matter because with the Android OS, it will usually keep all the stuff you close (internet, contacts, recently accessed menus etc) cached in it's RAM as a non active application until you happen to tab into it again, thus instantly loading.
Android is also smart enough to know since the application is inactive, if it's eating your memory, it will force-close these applications to free up memory for the new applications. ie, I'm running internet, close it, and my memory is up to 280mb, then try to run AngryBirds and it will close the Internet app + others if it has to.
So... usually not an issue, but if it does become an issue you can run a service/task killer app that will handle all nonactive apps and terminate them. Or you can just clear level 1+2 ram periodically and it will reset it back to default until it starts filling with crap again.
Ok i have advanced task killer but i was reading in some topics in this forum that some guys have more than 150 MB free without using a task killer
Advanced task killer eats your battery
android doesn't need a task killer, as it kills tasks itself.. i don't know why there are so many out there they just eat up battery..
one app I would suggest is 'auto-killer' its free and I have mine set to aggressive. that's all you need to do then forget about it.. it keeps your memory from getting bogged down.
ok thanks for the tips

[Q] RAM

Can anybody explain to me something about how the RAM works? So the phone has 512 mb of RAM, and only 330 available (I guess the OS takes the rest to 330). From those 330, around 100 are always used by something hidden. What is that?
Also if I stop some of the running services, sometimes that memory remains used.
What does eat my memory over time? I mean after some hours following a reboot my memory slowly starts to become used.
In the Running services tab there is a list of cached services and if I close any of them it eats more memory. How does that work?
I know, these questions are annoying.
128mb for tegra. that's why you have only 300mb+ for available memory
But why if I stop some processes such as the music player the RAM doesn't clear?
And why if I stop something from the Cached Processes tab it eats my RAM? (I can't find out what those cached processes are actually)
as far as i understand the system keeps it in memory in case you open something again and then it doesnt have to load everything over. and if there isnt enough for new apps it clears some ram.
this is not windows and the ram is supposed to be full. if im wrong about that someone correct me...
Sent from my Optimus 2X using XDA App
Yes you're right but the way Android kills processes when needed can be optimized, as sometimes the system is slow to free ram. In fact there are threshold values for different situations, that say to the system to free ram.
So the solution is not a standard task killer, but an optimization of values that triggers memory clean up. It's done for example by scripts like the one I use, see in my signature.

How to stop "running" and "cashed processes"?

I know that android is very good at handling background processes and ram but I have so many apps that I don't use at all. They consume big amount of ram and for instance, sometimes browser loads pages again when I get back to it from another app. I assume this is because of ram. So I guess, if I can shut down some running apps in the background, available ram would be more.
I can see them at settings-apps-running(or cached processes).
For example, right now in "running" section I have 9 processes and 3 of them are poweramp, awesome beats, accuweather.com and in "cached processes" I have 10 processes and 6 of them are beautiful widgets,calendar storage,google account manager, google search, calendar, google play store. Other processes are system services that I have no problem with. When I go to developer settings-background process limit and block them, there are no cached processes anymore but that probably has a side effect. I wish I could choose which apps I want in the background.
I can shut down these apps manually but every time I restart the phone, they are there again. How can I stop them?
if you rooted, you can use Autostarts or ROM toolbox from the playstore. it can change the receivers of the apps not to start at boot
CooLasFcuK said:
I know that android is very good at handling background processes and ram but I have so many apps that I don't use at all. They consume big amount of ram and for instance, sometimes browser loads pages again when I get back to it from another app. I assume this is because of ram. So I guess, if I can shut down some running apps in the background, available ram would be more.
I can see them at settings-apps-running(or cached processes).
For example, right now in "running" section I have 9 processes and 3 of them are poweramp, awesome beats, accuweather.com and in "cached processes" I have 10 processes and 6 of them are beautiful widgets,calendar storage,google account manager, google search, calendar, google play store. Other processes are system services that I have no problem with. When I go to developer settings-background process limit and block them, there are no cached processes anymore but that probably has a side effect. I wish I could choose which apps I want in the background.
I can shut down these apps manually but every time I restart the phone, they are there again. How can I stop them?
Click to expand...
Click to collapse
The simple answer is that you don't need to stop them!
As you say, Android is already very good at keeping track of background processes, to the extent that if a new program needs more RAM, Android itself will kill a background process that hasn't been used for a while to free up RAM for the new program.
The Cached processes screen SHOULD be full of recently used programs; it shows that Android is doing what it is supposed to do and is shifting inactive processes out of active RAM in case you want to load it again, without completely dumping the process memory.
Now, as for the side effect you mentioned, that would be a significant hit on battery life. By holding programs in RAM as it is supposed to do, the OS can load the program quickly and cleanly and more efficiently by simply reading the RAM rather than reading flash, writing to RAM, then reading from RAM. The general mantra for UNIX based systems is that unused RAM is wasted RAM.
Another thing to note is that if you do not close tabs when switching active programs (including going to homescreen) then the Browser is designed to hold that tab in memory. Even if you close the Browser (excluding closing the tab specifically with the "little x"). Even if you reboot the damn phone, it will still load the tabs/pages you had open last. The pages are not held in memory as such, just what was open and what tab order, so if you do open the browser after a while, it will load the last page from scratch.
TL;DR version: The running and the cached processes will remain exactly where they are until a new program needs more RAM than is available, at which point Android will kill something to make room. You do not need to do this manually. It will cause more power drain by making very inefficient use of RAM/Flash memory. Empty RAM is wasted RAM.
whilst Chaos is right, I notice severe performance drops when ram is filled, despite Androids theoretical advantage. It doesnt work...
Best to prevent from loading altogheter.
Root, lose warranty, backup apps, uninstall or freeze apps so the bloatware is removed.
For others, change autostart settings in Romtoolbox. So they wont start on boot.
Search for safe stuff to delete. There are lists for that
Sent from my GT-N7000 using Tapatalk 2
Or just dont install the apps that you dont really need.
Via GtN7000
LoVeRice said:
Or just dont install the apps that you dont really need.
Via GtN7000
Click to expand...
Click to collapse
Lol, even then you might still need to remove bloatware lol
Sent from my GT-N7000 using Tapatalk 2
Thanks so much for detailed answers.

Categories

Resources