PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2009, 04:23 PM
kirstein's Avatar
Halfway to VIP Status
Offline
Pocket PC: Epic 4G
Carrier: Sprint Sero Premium 500 Premier Gold!
Location: Colorado
 
Join Date: Feb 2007
Posts: 643
Reputation: 1610
kirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Are we sure it's a bad thing when RAM usage goes up?

I'm reading lots of people trying to figure out how to keep RAM usage down. What I'm wondering is if that's really productive. Seems to me that as long as the OS properly manages it, it should be OK if RAM usage get into the 90% range.

If the OS is using RAM to cache commonly used chunks of code, and if it has a decent routine for freeing up RAM as needed, what's the problem. It could actually slow things down to keep purging RAM.

I'll admit I don't know much about what's going on in the kernel or exactly why RAM usage grows over time. Is there anyone who has dug deep enough into the system to know for sure what's going on in there?
Reply With Quote
  #2 (permalink)  
Old 11-05-2009, 04:52 PM
kern417's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Verizon
Location: Louisville, KY
 
Join Date: Apr 2009
Posts: 446
Reputation: 510
kern417 knows their stuffkern417 knows their stuffkern417 knows their stuffkern417 knows their stuffkern417 knows their stuffkern417 knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

my RAM doesn't go down automatically. what do you mean by freeing up RAM? i have to use a seperate software to do that periodically (cleanRAM)
Reply With Quote
  #3 (permalink)  
Old 11-05-2009, 04:57 PM
Rgamer84's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Apr 2008
Posts: 54
Reputation: 35
Rgamer84 is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

I think where you might start to notice problems is when you are at 90% usage and then you try to load something like opera. It will start spitting out memory errors kind of like you were on a mogul trying to run it. Another reason to keep memory low is if you play any games on the tp2. Games need all of the memory that they can get to run smoothly. That probably isn't the specific answer that you want but its the first few reasons that i can think of to keep the memory clean.
Reply With Quote
This post has been thanked 1 times.
  #4 (permalink)  
Old 11-05-2009, 04:58 PM
Malatesta's Avatar
Moderator/WMExperts Staff
Offline
Pocket PC: Pure, TP2, Snap, Ozone, Intrepid,Treo Pro
Carrier: Sprint
Location: NY
 
Join Date: Jun 2006
Posts: 2,413
Reputation: 3635
Malatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

Quote:
Originally Posted by kern417 View Post
my RAM doesn't go down automatically. what do you mean by freeing up RAM? i have to use a seperate software to do that periodically (cleanRAM)
Sure it does, you just don't let it get low enough.

WM6.x has RAM management built in: when it reaches a certain threshold, it shuts down programs based on a priority system--so things like Outlook are high priority and rarely will be shut down, over say a dialog screen or Settings.

This threshold value and memory level are changeable I believe via the registry.

To the OP: I agree. People put way, way, way too much emphasis on "free RAM".

Fact is, a system with 15mb of free RAM will perform the same as a device with 100mb of free RAM, makes no difference. I've run the Treo Pro with 38mb of free RAM on boot and WM6.5--fast as ever and you don't notice it. Sure, if you run Opera Mobile, Skype, TwitToday, etc. more RAM is better. But even then, the system itself does not perform any faster.

Confession: I don't manage my memory. I don't use "free ram" tools and never look at how much I have. This is non-sense and a waste of users time, imo. Especially with WM6.5 which has more VM and better memory management.

Now on custom ROMs, sometimes it is nice to know, only because you want to know what is running in the background--after all, background programs and processes take up RAM and CPU cycles. But if it is due to physical RAM or what the OS allots and not background apps, then the actual amount is trivial to the user experience.

That's why I jam up my glyphcache and system cache sizes--they eat RAM but make the OS zippier. I can care less about RAM.
__________________

Last edited by Malatesta; 11-05-2009 at 05:03 PM.
Reply With Quote
  #5 (permalink)  
Old 11-05-2009, 05:02 PM
krohnjw's Avatar
Regular 'Geeker
Offline
Pocket PC: Nexus One
Carrier: AT&T
Location: IL
 
Join Date: Jul 2007
Posts: 276
Reputation: 432
krohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

Quote:
Originally Posted by kern417 View Post
my RAM doesn't go down automatically. what do you mean by freeing up RAM? i have to use a seperate software to do that periodically (cleanRAM)
He means that the memory manager will properly expire/dirty unused pages and allow them to be swapped out when those pages are needed.

Proper caching (and even precaching) can be quite helpful in speeding up application loading/performance, but you do need a memory manager that will allow the appropriate amount of memory to be freed when needed, especially for applications with large footprints. If the memory manager doesn't allow this precached memory to be freed when not used or needed or doesn't free enough you'll see OOM errors.

This appears to be what HTC wanted to do with ResProxy - allow the precaching/caching or resources - but people reported that they were getting OOM errors when the memory usage climbed too high.



Quote:
Originally Posted by Malatesta
Fact is, a system with 15mb of free RAM will perform the same as a device with 100mb of free RAM, makes no difference.
Well it will assuming you don't load something that needs > 15 MB of RAM, but the point is 100% correct. Assuming enough memory is free to load the application in question having N free or 10N free makes no difference from a speed perspective. Only when the memory has to become actively managed (pages dirtied and swapped to disk or swapped out and replaced) would you see a slow down.



Quote:
Originally Posted by Malatesta
Confession: I don't manage my memory. I don't use "free ram" tools and never look at how much I have. This is non-sense and a waste of users time, imo.

...snip....

That's why I jam up my glyphcache and system cache sizes--they eat RAM but make the OS zippier. I can care less about RAM.
100% agree here - I'd rather have a snappier performance for day to day use - I also don't run out of memory. I don't know what everyone is loading but it's clearly a lot more than I use - from the above post it appears "games" is the answer. Euchre isn't very taxing on the old memory it seems

Last edited by krohnjw; 11-05-2009 at 05:08 PM.
Reply With Quote
  #6 (permalink)  
Old 11-05-2009, 05:03 PM
Aleki's Avatar
Regular 'Geeker
Offline
Pocket PC: Arrive
Carrier: Sprint
 
Join Date: Mar 2008
Posts: 250
Reputation: 210
Aleki is keeping up the good workAleki is keeping up the good workAleki is keeping up the good work
Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

I have yet to have my TP2 lock up in 6.5. I do reset it out of old habits, but most of the time its because of uninstalling or installing apps that require resets. I notice with 85% usage, the phone is actually snappier than it is originally at bootup

edit: one of the guys from the apple store wanted to see my phone (probably trying to spot an error so he can knock WM). ram usage was at 88% and the phone was moving along very smoothly with everything ready to go. after a few minutes of casual talk, and him playing with it, he handed it back to me with a mildly frustrated expression on his face

Last edited by Aleki; 11-05-2009 at 05:08 PM.
Reply With Quote
  #7 (permalink)  
Old 11-05-2009, 05:24 PM
kirstein's Avatar
Halfway to VIP Status
Offline
Pocket PC: Epic 4G
Carrier: Sprint Sero Premium 500 Premier Gold!
Threadstarter
Location: Colorado
 
Join Date: Feb 2007
Posts: 643
Reputation: 1610
kirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on repkirstein is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

Great discussion, this is exactly what I was thinking. I'd rather be properly using 95% of the memory and have things loaded and ready to go than keep it sitting at 39% and have to constantly reload things every time I open something. Sometimes it seems like it's a competition to get the lowest RAM number.
Reply With Quote
  #8 (permalink)  
Old 11-05-2009, 07:06 PM
i360's Avatar
Regular 'Geeker
Offline
Pocket PC: Evil Evo
Carrier: Sprint
Location: In a house
 
Join Date: Sep 2007
Posts: 414
Reputation: 250
i360 is becoming a PPCGeeks regulari360 is becoming a PPCGeeks regulari360 is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

Quote:
Originally Posted by Rgamer84 View Post
I think where you might start to notice problems is when you are at 90% usage and then you try to load something like opera. It will start spitting out memory errors kind of like you were on a mogul trying to run it. Another reason to keep memory low is if you play any games on the tp2. Games need all of the memory that they can get to run smoothly. That probably isn't the specific answer that you want but its the first few reasons that i can think of to keep the memory clean.
This is correct.

This is why I run RAM Sweeper periodically throughout the day. And also use Task Manager to close programs that are not being used or won't use for awhile. This helps improve battery life to have programs and tasks completely closed and out of memory...

It's an old habit since I'm a PC Gamer and always look for performance overall.
Reply With Quote
  #9 (permalink)  
Old 11-05-2009, 07:17 PM
Malatesta's Avatar
Moderator/WMExperts Staff
Offline
Pocket PC: Pure, TP2, Snap, Ozone, Intrepid,Treo Pro
Carrier: Sprint
Location: NY
 
Join Date: Jun 2006
Posts: 2,413
Reputation: 3635
Malatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIPMalatesta is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

Quote:
Originally Posted by i360 View Post
This is correct.

This is why I run RAM Sweeper periodically throughout the day. And also use Task Manager to close programs that are not being used or won't use for awhile. This helps improve battery life to have programs and tasks completely closed and out of memory...

It's an old habit since I'm a PC Gamer and always look for performance overall.
I've never been convinced of this argument that programs sitting in memory, but not consuming CPU cycles, deplete battery life significantly or even at all.

Anyone care to give a detailed argument from a programming/engineering perspective to actually back this up? Because I think it's crap. Seems to be an old habit carried over from the WM2003 days with little evidence. I also hope for the sake of the OS it is not true because that is just awful to make the consumer manger their devices---the exact opposite reasoning give by Microsoft for having apps minimize and not close.
Quote:
So, on realizing that users shouldn’t have to manage their memory, we set about doing it for them. We made our shell watch how much memory was being used and close apps when more was needed. We made many of our apps remember their state when they were closed so that they could reload it again when they were opened (so users couldn’t really tell that they had ever been shut down). We taught ISVs how to do the same thing. And we removed the close box from all of our apps.
--Windows Mobile Team Blog

It's a sad state that WinMo users feel they have to waste time managing their memory throughout the day. This is the opposite of "smartphone" and I think it is misguided.

Last edited by Malatesta; 11-05-2009 at 07:23 PM.
Reply With Quote
This post has been thanked 2 times.
  #10 (permalink)  
Old 11-05-2009, 07:22 PM
krohnjw's Avatar
Regular 'Geeker
Offline
Pocket PC: Nexus One
Carrier: AT&T
Location: IL
 
Join Date: Jul 2007
Posts: 276
Reputation: 432
krohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regularkrohnjw is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Are we sure it's a bad thing when RAM usage goes up?

Quote:
Originally Posted by Malatesta View Post
I've never been convinced of this argument that programs sitting in memory, but not consuming CPU cycles, deplete battery life significantly or even at all.

Anyone care to give a detailed argument from a programming/engineering perspective to actually back this up? Seems to be an old habit carried over from the WM2003 days with little evidence. I also hope for the sake of the OS it is not true because that is just awful to make the consumer manger their devices---the exact opposite reasoning give by Microsoft for having apps minimize and not close.
Well, if the app is polling on any sort of interval for hardware status or other info then it will use resources (the amount of resources used will obviously depend on the hardware being queried). If it is truly sitting idle and only operating on its own data set or info then it shouldn't be using any additional resources by merely being open.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 04:31 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com