Page 1 of 2 12 LastLast
Results 1 to 25 of 26
Like Tree6Likes
  1. Thread Author  Thread Author    #1  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default OK, Phil and Jerry, then explain this to me . . .

    Phil and Jerry keep saying that low RAM has no effect on performance, that if you have RAM not being used, it is "wasted" RAM in any case. And, as a general principle, I agree and never bother with trying to manage my RAM, never use a "task killer", etc. In short, I do not obsess over my RAM or memory management. I don't even think about it unless there is a problem.

    BUT, this issue keeps coming back. Every once in a while my Nexus will really slow down, it will get choppy, a lot of redraws, some apps will even crash or time out. Whenever this happens I will go check my RAM and find that it is very low. And, until I kill off a few things (or reboot, which does the same thing), the performance will stay bad. Once I kill off some stuff, and regain some free RAM, everything is fine and back to normal.

    It seems clear to me that if you have low RAM, and then you engage in some heavy-duty activity, you will actually hit the wall, run out of RAM and your performance will be hit. I know that the OS itself is supposed to automatically start killing off stuff to keep enough RAM to keep this from happening, but obviously it doesn't always get it right.

    Now, this problem was DRAMATICALLY worse with my RAM-challenged OG Droid, and it happened less often with my Thunderbolt, and even less often with my Nexus. Each step up has generally had more free RAM available as a buffer to handle heavy use, and my theory is that this extra free RAM is a Good Thing, not a waste, since Android doesn't always handle it right. The more free RAM, the less you have to rely on Android to get it right, and the less often you will have problems.

    So, why is my theory wrong? Why is it NOT better to have that extra RAM to avoid these problems? If the extra RAM is not useful, why is the performance of my phones better with more extra RAM and worse with less?
  2. #2  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    I think that because our phones now have way more RAM than older phones, the issue just comes up less. The Android OS is supposed to not allow the phone's RAM to fall below the threshold for good operation. If yours still does then your circumstances may be unusual. My phones never slowed down, nor have I ever used a so-called "task killer". I used to battery pull my Blackberries and watch the "free memory" stats go up and down, but my wife never pulled the battery on her Curve and it was fine.
  3. #3  
    Poseign's Avatar
    Mobile Enthusiast

    Posts
    585 Posts
    Global Posts
    601 Global Posts
    ROM
    AOKP JB B1/Franco M5

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    This is only true if you dont have 1000 apps running and updating at the same time. Yeah, Android has that nifty RAM saver feature built in, but it will only clear programs from ram that were maybe opened but no longer being used. This is why many people say that this phone doesnt actually "Multitask" well, because it closes apps you have opened after a certain amount of inactivity and with the GNex (or ics) that amount of time before it kills an inactive app is relatively short.

    If you open a few apps that stream music, video, or maybe u are transferring files to the cloud, running remote desktop, emails with push notifications, IM clients with push notifications... all of these things will slow down your phone if opened together because Android will not clean them from RAM because they are technically being "used". Antivirus apps and battery saver apps are huge culprits of this too as they are ALWAYS running and some can eat a lot of RAM to do so.

    Now Im not saying that you run many apps like this all at once on your phone because I dont know your situation, but from my own experiences and from witnessing some of my friends' random android slowness, this is the best conclusion I can come up with.
  4. Thread Author  Thread Author    #4  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default

    I agree with that entirely, which is why I think having the extra ram is useful to avoid problems in those situations.

    Sent from my Galaxy Nexus using Tapatalk 2
  5. #5  
    turdbogls's Avatar

    Posts
    363 Posts
    Global Posts
    364 Global Posts
    ROM
    changes all the time

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    i dont think anyone said more RAM is a bad thing. obviously we would all LOVE to have 2gb ram.
    when they say unused RAM is wasted RAM they are referring to task killers. having 1gb ram but only using 250 MB through the day is wasting RAM simply because the phone can handle more than that, and killing off tasks to have tons of RAM is just a waste.

    but yes, i notice the slowdowns, not NEARLY as much as my OG droid, Droid X, or my thunderbolt, but it does happen...but usually if i just let it sit for a few seconds it speeds back up.

    still confused why these lowdowns happen when there is still 100mb of RAM left. obviously i just dont know how that all works, but still.
  6. #6  
    Mooem's Avatar

    Posts
    858 Posts
    ROM
    CM10

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    I always thought their beef was with third party "auto task killers" and this misconception that less apps in RAM = better battery life, not so much in terms of just performance (of which will vary since, you know, my experience is not your experience necessarily). Essentially, your device is using the same amount of energy to keep things in memory as it does to power it unused.

    Performance degradation WILL happen if Android is not properly handling memory efficiently, however. This is especially prevalent with badly coded apps, in which case it may not necessarily be a core Android issue but with specific apps. In other cases, as Poseign indicated, if someone is forcing Android to run numerous services and apps at the same time, it will most definitely struggle to keep things running smoothly.
  7. #7  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    I disagree that anti-virus apps are resource hogs. They only run when you download an app, tell it to run a scan, or it runs a scheduled scan. Other than they they are sitting idle (using memory but not CPU) just like every other app.
    Proof of this can be seen by having your AV app running, go to the command line and run the top command. You will see the AV app at the bottom of the list with regard to CPU usage.
  8. Thread Author  Thread Author    #8  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    I agree that RAM that is not being used is, by definition, "wasted" at that particular moment. But, without enough of that extra RAM, it is very possible to simply "run out" when you get very task intensive and Android doesn't manage it well.

    What I have found is that when I have 150 mb or less of free RAM, I am very likely to run into actual performance issues at some point. If I have more than 200 mb free, I never have such problems. So, that extra free RAM I have over 100 mb or so is not wasted at all, but is essential to good performance since it will be there when I need it.

    This came up as an issue in the last podcast when someone wrote in about not having enough free RAM and being uptight about it. Again, I never sit around worried about how much RAM I have . . . until I have a problem. And when I do have a problem, running out of RAM is almost always the cause, and freeing up some RAM is almost always the solution.
    techgeek32#WN likes this.
  9. #9  
    KoukiFC3S's Avatar
    Android Connaisseur

    Posts
    1,349 Posts
    Global Posts
    2,431 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    I see that some custom roms let you change the minimum ram free amount.

    I guess stock is 79MB. Has anyone messed with this and see any improvements?
  10. #10  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Honestly, they still try and sell you those "battery saver" apps? I thought those died with the cassette. Antivirus scanners, really? Man that's hard up stuff right there.
  11. Thread Author  Thread Author    #11  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    The reason this is an issue is that I HATE redraws with a passion. Coming from the OG Droid, I have developed an irrational abhorrence to a blank homescreen waiting to be repopulated. When this happens, I know that the Android OS has somehow failed me, and not killed off enough other processes to keep my icons locked and loaded. And, possibly this is because it DID kill off all the processes that it could, and there STILL was not enough free RAM to keep the homescreens intact. In either case, a ton of free RAM would have solved that problem and there would be no redraws.
  12. #12  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Seems to me this is (like many other phone "issues") operator dependant, not a phone problem. You may need to bone up on stuff to fix it instead of hoping that the phone would fix it.
  13. Thread Author  Thread Author    #13  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Quote Originally Posted by thebignewt View Post
    Seems to me this is (like many other phone "issues") operator dependant, not a phone problem. You may need to bone up on stuff to fix it instead of hoping that the phone would fix it.
    No, this post is not about "how do I fix this problem", but simply discussing whether or not having free RAM is important in the smooth operation of the phone. When I run into problems, I know what to do about it.
  14. #14  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    ...so really all you want is to force the android launcher to stay in memory. root and get at it!
  15. #15  
    Jerry Hildenbrand's Avatar
    AC Cowboy

    Posts
    5,419 Posts
    Global Posts
    5,897 Global Posts
    ROM
    Homebrewed

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    RAM is used in many different ways. You see a slowdown when too many things are trying to stay in the foreground. Foreground apps will try to close background processes and sleeping tasks (basically anything that's not a required service) if they need more memory.

    If I write an app like Instagram --

    I can code the processes and threads in different ways with different priorities. The correct way would be to have the threads and processes needed to run the app in the foreground while the user has it open and looking, and when the user no longer has my app on the screen a main thread goes to sleep, a thread runs as a service to accept push notifications or check for updates, and the rest of the threads are "ghosted" -- marked as dead, not running, and OK to kill when more space is needed. The service (that checks for updates or push messages) would be very small and only used to wake up other processes when updates are received, the main app would be asleep (ok to close if it has to be closed), and the other misc threads are dead, and ready to be killed. There's no need to flush them unless they are needed, because there's a chance the next app that gets opened is my app.

    Now if I did it the wrong way, my misc threads and routines would just get backgrounded, and the system will think they should stay alive if at all possible. Or I could bundle everything up in the service that runs always. Or if I really wanted to foul things up, I could code the main app to stay awake even if not displayed to the user. Don't laugh -- apps like that are out there.

    TouchWiz 4 is a great real-world example. Prior versions of TW were pretty roughly coded in relation to proper memory management. But when TW 4 came out on the SGSII, people were amazed at how well it worked. Word is HTC has done the same thing with Sense 4. As developers get better at coding for Android (both big guns like Samsung and HTC, and small independent devs) apps will get better and better at managing their memory space.

    For now, the only way to fix the issue is to root and edit the minfree settings, or go a step further and edit the kernel minfree settings before building , or just not use apps that cause your phone to crawl. Flushing the RAM is just a temporary fix, because the next time you use an app that behaves poorly it's going to do the same thing again.

    One last thing to consider -- next time things get slow, check the CPU speed. Many (as in many, many) times we blame RAM when the CPU is pegged and the system is CPU bound. An that's a whole other mess.
    ಠ_ಠ
    Thanked by 4:
    dcvanderbush, f150fan and greyhd like this.
  16. #16  
    Phil Nickinson's Avatar
    Android Central Editor in Chief

    Posts
    3,355 Posts
    Global Posts
    3,461 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Quote Originally Posted by Jerry Hildenbrand View Post
    RAM is used in many different ways. You see a slowdown when too many things are trying to stay in the foreground. Foreground apps will try to close background processes and sleeping tasks (basically anything that's not a required service) if they need more memory.

    If I write an app like Instagram --

    I can code the processes and threads in different ways with different priorities. The correct way would be to have the threads and processes needed to run the app in the foreground while the user has it open and looking, and when the user no longer has my app on the screen a main thread goes to sleep, a thread runs as a service to accept push notifications or check for updates, and the rest of the threads are "ghosted" -- marked as dead, not running, and OK to kill when more space is needed. The service (that checks for updates or push messages) would be very small and only used to wake up other processes when updates are received, the main app would be asleep (ok to close if it has to be closed), and the other misc threads are dead, and ready to be killed. There's no need to flush them unless they are needed, because there's a chance the next app that gets opened is my app.

    Now if I did it the wrong way, my misc threads and routines would just get backgrounded, and the system will think they should stay alive if at all possible. Or I could bundle everything up in the service that runs always. Or if I really wanted to foul things up, I could code the main app to stay awake even if not displayed to the user. Don't laugh -- apps like that are out there.

    TouchWiz 4 is a great real-world example. Prior versions of TW were pretty roughly coded in relation to proper memory management. But when TW 4 came out on the SGSII, people were amazed at how well it worked. Word is HTC has done the same thing with Sense 4. As developers get better at coding for Android (both big guns like Samsung and HTC, and small independent devs) apps will get better and better at managing their memory space.

    For now, the only way to fix the issue is to root and edit the minfree settings, or go a step further and edit the kernel minfree settings before building , or just not use apps that cause your phone to crawl. Flushing the RAM is just a temporary fix, because the next time you use an app that behaves poorly it's going to do the same thing again.

    One last thing to consider -- next time things get slow, check the CPU speed. Many (as in many, many) times we blame RAM when the CPU is pegged and the system is CPU bound. An that's a whole other mess.
    What he said ...
    Thanked by 3:
    dcvanderbush and f150fan like this.
  17. Thread Author  Thread Author    #17  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default

    Phil, I knew you we're going to say that. :-)

    Jerry, that is awesome information, it explains a lot (assuming I understand it all!). But, setting aside the cpu issue for the moment, would I be correct in saying that if we DID have a massive amount of RAM (hypothetically unlimited for discussion purposes) this would compensate for these design and development issues and keep the phone from ever running out of RAM and the problems that come with that?

    Sent from my Galaxy Nexus using Tapatalk 2
  18. #18  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    When my phone runs low on memory, and I click the Home button, I notice my launcher has been exited and all my widgets have to reopen.. this happens when my ram gets below about 100MB..

    That's the most annoying thing about running low on ram, launcher/widgets restart.
    Possible Errors Between Keyboard And Chair.
  19. Thread Author  Thread Author    #19  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Sniffs, that is my experience as well. This never, ever happens when I have more than 200mb of free memory.

    When I was on the OG Droid, this was so bad, the rooted phones had a special code you could put in to lock your homescreens in memory so that they are the last thing (or nearly the last thing) that gets dumped overboard as memory gets low. I don't think this is needed in the Nexus because it is only an occasional problem, but I really did think those days were gone with so much existing RAM on the phones. But, as they added more RAM, I just added more apps that run in the background!! :0)
  20. #20  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Quote Originally Posted by Vance View Post
    Sniffs, that is my experience as well. This never, ever happens when I have more than 200mb of free memory.

    When I was on the OG Droid, this was so bad, the rooted phones had a special code you could put in to lock your homescreens in memory so that they are the last thing (or nearly the last thing) that gets dumped overboard as memory gets low. I don't think this is needed in the Nexus because it is only an occasional problem, but I really did think those days were gone with so much existing RAM on the phones. But, as they added more RAM, I just added more apps that run in the background!! :0)
    Never heard of a code, but the 3rd party launchers had the ability to lock in memory prior to GB 2.3, now it seems the feature is useless?

    Between all the apps I use and Webtop(I use it daily with my lapdock), I'm usually hovering around 360MB of ram
    Possible Errors Between Keyboard And Chair.
  21. Thread Author  Thread Author    #21  
    Vance14's Avatar

    Posts
    631 Posts
    Global Posts
    634 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    I just checked, and mine is around 220, and I am not running anything in the foreground, that is just with background stuff going on. When I crank up Beyondpod to listen to a podcast, then open a game to play while I listen, my guess is that I am using up most of the rest of it. Whenever I do that, I get a complete redraw when I close the game. Other times, it is just stuttering and choppy performance, and I will go in and check and find that I have around 75mb free.
  22. #22  

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Hey, if you don't pirate apps you probably won't need antivirus software, and you can scratch that off your list.
    HTH.
  23. #23  
    trivor's Avatar

    Posts
    212 Posts
    Global Posts
    283 Global Posts

    Default Re: OK, Phil and Jerry, then explain this to me . . .

    Quote Originally Posted by Jerry Hildenbrand View Post
    RAM is used in many different ways. You see a slowdown when too many things are trying to stay in the foreground. Foreground apps will try to close background processes and sleeping tasks (basically anything that's not a required service) if they need more memory.

    If I write an app like Instagram --

    I can code the processes and threads in different ways with different priorities. The correct way would be to have the threads and processes needed to run the app in the foreground while the user has it open and looking, and when the user no longer has my app on the screen a main thread goes to sleep, a thread runs as a service to accept push notifications or check for updates, and the rest of the threads are "ghosted" -- marked as dead, not running, and OK to kill when more space is needed. The service (that checks for updates or push messages) would be very small and only used to wake up other processes when updates are received, the main app would be asleep (ok to close if it has to be closed), and the other misc threads are dead, and ready to be killed. There's no need to flush them unless they are needed, because there's a chance the next app that gets opened is my app.

    Now if I did it the wrong way, my misc threads and routines would just get backgrounded, and the system will think they should stay alive if at all possible. Or I could bundle everything up in the service that runs always. Or if I really wanted to foul things up, I could code the main app to stay awake even if not displayed to the user. Don't laugh -- apps like that are out there.

    TouchWiz 4 is a great real-world example. Prior versions of TW were pretty roughly coded in relation to proper memory management. But when TW 4 came out on the SGSII, people were amazed at how well it worked. Word is HTC has done the same thing with Sense 4. As developers get better at coding for Android (both big guns like Samsung and HTC, and small independent devs) apps will get better and better at managing their memory space.

    For now, the only way to fix the issue is to root and edit the minfree settings, or go a step further and edit the kernel minfree settings before building , or just not use apps that cause your phone to crawl. Flushing the RAM is just a temporary fix, because the next time you use an app that behaves poorly it's going to do the same thing again.

    One last thing to consider -- next time things get slow, check the CPU speed. Many (as in many, many) times we blame RAM when the CPU is pegged and the system is CPU bound. An that's a whole other mess.
    Jerry (oh most awesome pinnacle of Android knowledge )

    Question on Apps and RAM.

    I know that 3rd party task killers can really mess up your phone BUT is it OK to kill tasks from the OS itself (settings/manage application/running apps)? The reason I ask is it seems like there are a few apps (especially Sports) that don't seem to close themselves when you exit and you can see them running in the background and very often using data to update scores/notifications?

    Love all you guys on the shows and the forums (best Android podcast - can't necessarily say best podcast period because I do have other interests)
  24. #24  
    moosc's Avatar
    Grand Master Moosc

    Posts
    2,953 Posts
    Global Posts
    5,027 Global Posts
    ROM
    AKOP M4 old geezer theme

    Default

    If your rooted try this app. I've been using since od days.
    Quote Originally Posted by trivor View Post
    Jerry (oh most awesome pinnacle of Android knowledge )

    Question on Apps and RAM.

    I know that 3rd party task killers can really mess up your phone BUT is it OK to kill tasks from the OS itself (settings/manage application/running apps)? The reason I ask is it seems like there are a few apps (especially Sports) that don't seem to close themselves when you exit and you can see them running in the background and very often using data to update scores/notifications?

    Love all you guys on the shows and the forums (best Android podcast - can't necessarily say best podcast period because I do have other interests)


    Sent from my Galaxy Nexus using Xparent Cyan Tapatalk 2
    Google Nexus Class Devices (Nexus7, Nexus4, Galaxy Nexus lte VZW)...@moosc on twitter ...
  25. #25  
    bed269's Avatar

    Posts
    81 Posts
    Global Posts
    89 Global Posts

    Default

    I just want to say I'm impressed with the knowledge of this community. I do good to take widgets on and off the screen.

    Sent from my DROID RAZR using Tapatalk 2
Page 1 of 2 12 LastLast

Posting Permissions