DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: [TECH] Android's Internal Task Killer - and the effect of modifying it (ROOT ONLY)

  1. Master Droid
    DroidxRage's Avatar
    Member #
    5520
    Join Date
    Nov 2009
    Location
    New England - Home of Champions
    Posts
    628
    Phone
    5.0.6.2 Mod-Bekit 1.2LV-Smoked
    #1

    [TECH] Android's Internal Task Killer - and the effect of modifying it (ROOT ONLY)

    I wanted to explain how Android's internal Task Killer works to help people understand how it wokrs. After I stumbled across an app, Auto Memory manager, and posted a thread asking for questions, I was pointed toward another thread with a lot of good technical information about the inner workings of Android's internal Task Killer. (thx JonKyu) Here's what I took from the 20+ pages of that thread, and I'll try to break down what I learned with the high points, and feel free to visit that thread if you want the bits and pages of it.
    How to configure Android's *internal* taskkiller - xda-developers

    And this is meant to be informative, so just as a CYA, please do what you will with this knowledge at your own risk.

    Android has a task killing system in place where it groups processes into 1 of 6 types. The type that is assigned depends on how important that process is to what the phone is actively running. Here are the 6 types that Android uses with definitions, which neatly correspond to the sliders in the Auto Memory Manager application I found.



    FOREGROUND_APP: // This is the process running the current foreground app. We'd really rather not kill it! Value set in system/rootdir/init.rc on startup.

    VISIBLE_APP: // This is a process only hosting activities that are visible to the user, so we'd prefer they don't disappear. Value set in system/rootdir/init.rc on startup.

    SECONDARY_SERVER: // This is a process holding a secondary server -- killing it will not have much of an impact as far as the user is concerned. Value set in system/rootdir/init.rc on startup.

    HIDDEN_APP: // This is a process only hosting activities that are not visible, so it can be killed without any disruption. Value set in system/rootdir/init.rc on startup.

    CONTENT_PROVIDER: // This is a process with a content provider that does not have any clients attached to it. If it did have any clients, its adjustment would be the one for the highest-priority of those processes.

    EMPTY_APP: // This is a process without anything currently running in it. Definitely the first to go! Value set in system/rootdir/init.rc on startup. This value is initalized in the constructor, careful when refering to this static variable externally.



    So what happens is when the free memory (ie: what your taskiller reports) gets below a certain predetermined value, it starts killing the least important processes off, starting with the bottom of that list. (ie: at 20MB free kill empty processes, at 15MB free kill Content Provider processes).

    For people with root, there are applications in the market that let you change the predetermined values that Android starts killing off process types. The one I used and reference in this post is Auto Memory Manager, but MinFree is another one by one of the guys over at XDA. Same idea, just a different look. The reason you might want to modify this, is to force Android to be more strict with it's application policing.

    The consensus over there, is that people are getting generally better performance, battery life, response, etc. by tweaking these values. The upside over a normal task killer, is this is something that is already running in the Android OS, so it's not adding any additional resource usage, just modifying how it already acts.

    So for example, on the app if you wanted to make it so whenever the free memory got below 70MB, it would kill off all the empty processes, in the application, you would simply drag the Empty Applications slider up to 70MB. It's just a matter of fine tuning the right mix. I would recommend not putting the top 2 or 3 values very high, as those processes are things that are actively running, and may have a user impact. Generally speaking, you want to try to play with the bottom 3, if you do touch the top 3 please understand what you're doing.

    Also, it doesn't change the values permanently, as it requires the values be reset on reboot (not built into the application at this time). But you also don't have to worry about permanent changes to the system if you decided to uninstall or anything.


    If anyone has any questions I'm sure we can all help each other out. I'm also interested to see after people start using this, what they're finding good results with as far as settings for our devices. If you find something that works particularly well for you, please feel free to post your numbers for other users to experiment.
  2.  
     
     
     
  3. Premium Member
    hookbill's Avatar
    Member #
    10332
    Join Date
    Nov 2009
    Location
    N.E. Ohio
    Posts
    19,575
    Liked
    17 times
    Phone
    Droid Bionic
    Premium Member
    #2
    Going to give Auto Memory Manager a try. Right now I have hidden applications set to 50mb, content provider, 55 mb and empty application at 70 mb.

    Be interesting to see how this works as far as battery performance goes. I'd like to see other peoples settings as well.
    Please be respectful. Respect is #1 here at DF Please read our Guidelines of Conduct
  4. Beta Team
    JonKyu's Avatar
    Member #
    4977
    Join Date
    Nov 2009
    Location
    Provo, UT
    Posts
    2,398
    Phone
    DROID X
    #3
    Cool you posted a thread! I don't think a lot of people know this, so I think it'll be good exposure to let more people know what these apps do and that we can actually do this lol, instead of the inefficient Taskillers!

    EDIT: Maybe it'd be cool if you posted a link to all three Memory manager so people can choose? Just a suggestion lol I think it might make it more complete?
    Last edited by JonKyu; 03-01-2010 at 01:55 AM.
  5. Master Droid
    DroidxRage's Avatar
    Member #
    5520
    Join Date
    Nov 2009
    Location
    New England - Home of Champions
    Posts
    628
    Phone
    5.0.6.2 Mod-Bekit 1.2LV-Smoked
    #4
    ^^ great idea.

    Here is Auto Memory Manager, the app I referenced in my post:


    Here is MinFree, another choice also written by one of the guys that was working to uncover this information:


    Here is AutoKiller, another option also on the market:


    Enjoy guys!
  6. Beta Team
    JonKyu's Avatar
    Member #
    4977
    Join Date
    Nov 2009
    Location
    Provo, UT
    Posts
    2,398
    Phone
    DROID X
    #5
    It's the one I mentioned in your auto memory manager thread "autokiller"
  7. Master Droid
    DroidxRage's Avatar
    Member #
    5520
    Join Date
    Nov 2009
    Location
    New England - Home of Champions
    Posts
    628
    Phone
    5.0.6.2 Mod-Bekit 1.2LV-Smoked
    #6
    ahhhh, yes.... added to the above post!

    Also, Spare Parts has a setting for this, but it's not nearly as customizable so I chose to leave it off the list.
  8. Beta Team
    JonKyu's Avatar
    Member #
    4977
    Join Date
    Nov 2009
    Location
    Provo, UT
    Posts
    2,398
    Phone
    DROID X
    #7
    Quote Originally Posted by DroidxRage View Post
    ahhhh, yes.... added to the above post!

    Also, Spare Parts has a setting for this, but it's not nearly as customizable so I chose to leave it off the list.
    Yeah I'm little confused with the spare parts one, don't you need root access to modify the file with the settings on it? No where on spare parts does it say it needs root access, at lear I don't think. Also don't make the mistake of using both at the same time because I think my spare parts memory settings were conflicting with auto killer and it was giving me weird readings before lol.
  9. Super Moderator
    Vulcan1600's Avatar
    Member #
    7183
    Join Date
    Nov 2009
    Location
    Pennsylvania
    Posts
    5,569
    Liked
    245 times
    Phone
    Galaxy S3
    Premium Member
    #8
    Well, you caught my attention with this. I'll install it this morning and tonight when I get home from work will give you my initial report. The worst thing in the comments for the app for Auto Memory Manager is apparently the icon is a fish lol.
    Thank you to all who have served or are serving our great country. You're always in my thoughts and prayers.

    Freedom is never more than one generation away from extinction. - Ronald Reagan
    --------

  10. Droid Sensei
    unix.punkx's Avatar
    Member #
    3991
    Join Date
    Nov 2009
    Location
    Bloomington, IN
    Posts
    3,332
    Phone
    Motorola Droid
    #9
    nice, ill also give this a try after classes and report back.
  11. Master Droid
    kaboyd's Avatar
    Member #
    16497
    Join Date
    Dec 2009
    Location
    Southern Indiana
    Posts
    569
    Phone
    SGN
    #10
    Very good post. Thanks for the process explanation, I was unclear on most of that.
Page 1 of 3 123 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. How do you get by without a task killer?
    By qoncept in forum Android General Discussions
    Replies: 66
    Last Post: 02-26-2010, 10:30 AM
  2. Task/GPS Killer
    By LtKen in forum Android Applications
    Replies: 7
    Last Post: 02-13-2010, 07:28 PM
  3. Adv. Task Killer
    By PatrickJ in forum Android General Discussions
    Replies: 13
    Last Post: 01-21-2010, 11:21 AM
  4. Task Killer
    By rayswift in forum Android Applications
    Replies: 1
    Last Post: 12-23-2009, 02:36 PM
  5. Task Management or Task Killer?
    By RSQJEEP in forum Android Applications
    Replies: 1
    Last Post: 11-24-2009, 07:09 PM

Search tags for this page

android internal app killer
,

android internal task killer

,
android internal taskkiller tweaked
,
android root kill
,
android task killer tweak
,

android task priority

,
root for task killer
,
root kill android
,

root task killer

,
task killer effect
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+