Smartphone Thoughts - Daily News, Views, Rants and Raves

Be sure to register in our forums! Share your opinions, help others, and enter our contests.





Go Back   Thoughts Media Forums > SMARTPHONE THOUGHTS > Smartphone Hardware > Motorola-based Smartphones

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2005, 06:21 AM
Intellectual
John Cody's Avatar
Join Date: Aug 2006
Posts: 246
Default Apps unloading prematurely?

I started to get worried when I noticed my new MPX-220 would not allow me to have more then one app running in memory at a time.

For example, I would run PIE, then run WMP, and if I tried to switch back to PIE, it wasn't in memory and need to be reloaded!

Then I found a post in HowardForums.com that shed some light on this issue...

There is a registry location:

HKLM\SOFTWARE\Microsoft\Shell\LoMem

With a key name of: ProgramMem

I am thinking that this setting is a "Trigger" percentage of how much memory usage is allowed before the OS starts to close down apps to free more memory up.

When I checked this setting of my out-of-the box mpx-220, it was set to "18"!, which my guess would mean that as soon as my memory usage went above 18% (which any app would probably use that much when it loads), the OS starting killing all/any background apps. So, I set this to 80% and now multiple apps stay running in memory.

It is so ridiculous that the default setting was 18% :?
__________________
- John Cody
Windows Mobile Developer
www.OMNISOFT.com
 
Reply With Quote
  #2 (permalink)  
Old 06-18-2005, 11:52 AM
Editor Emeritus
Mike Temporale's Avatar
Join Date: Aug 2006
Posts: 11,179

Nice find John!

That's crazy that it would be set to such a low number. On my C500 it's set to 96. That's a pretty big difference from 18 to 96. :?

Anyone have an original MPx220 that can check to see what this value is set at??
__________________
"I have no special talents, I am only passionately curious" - Albert Einstein
 
Reply With Quote
  #3 (permalink)  
Old 06-19-2005, 10:34 PM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

That is a great find. My Cingular 5600 was set to 96 also. I dropped to 75. We'll see how that works. Mine was called "LowMem"
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #4 (permalink)  
Old 06-26-2005, 02:22 AM
Intellectual
John Cody's Avatar
Join Date: Aug 2006
Posts: 246

I just flashed my mpx220 to the newest 1.43 ROM and now the default is 70.
__________________
- John Cody
Windows Mobile Developer
www.OMNISOFT.com
 
Reply With Quote
  #5 (permalink)  
Old 06-26-2005, 02:49 AM
Editor Emeritus
Mike Temporale's Avatar
Join Date: Aug 2006
Posts: 11,179

That's a huge jump! What ROM version was on the phone before? (when it was set to 18)
__________________
"I have no special talents, I am only passionately curious" - Albert Einstein
 
Reply With Quote
  #6 (permalink)  
Old 06-26-2005, 02:53 AM
Intellectual
John Cody's Avatar
Join Date: Aug 2006
Posts: 246

The previous rom version was 1.30
__________________
- John Cody
Windows Mobile Developer
www.OMNISOFT.com
 
Reply With Quote
  #7 (permalink)  
Old 06-26-2005, 03:38 AM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

I haven't noticed that this setting has any affect. My task manager shows all programs still open no matter what I set it to. Have you seen this also?
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #8 (permalink)  
Old 06-26-2005, 03:46 AM
Intellectual
John Cody's Avatar
Join Date: Aug 2006
Posts: 246

Quote:
Originally Posted by Jerry Raia
I haven't noticed that this setting has any affect. My task manager shows all programs still open no matter what I set it to. Have you seen this also?
It may require a reboot after changing this setting, but I bet if you set that setting to "16" (and reboot), you probably won't be able to run more then one [average sized] app at a time...
__________________
- John Cody
Windows Mobile Developer
www.OMNISOFT.com
 
Reply With Quote
  #9 (permalink)  
Old 06-26-2005, 04:53 AM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

Hmmm, well I have tried that, I even lowered it to "10" the only effect i noticed was that shortcuts came up missing in BattPro. Other wise all the programs show as running in the task manager no matter how many I start.
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #10 (permalink)  
Old 06-26-2005, 05:03 AM
Intellectual
John Cody's Avatar
Join Date: Aug 2006
Posts: 246

Quote:
Originally Posted by Jerry Raia
Hmmm, well I have tried that, I even lowered it to "10" the only effect i noticed was that shortcuts came up missing in BattPro. Other wise all the programs show as running in the task manager no matter how many I start.
It may be that eVB and .net app use up a minimum of 2MB each, and since my mpx-220 has a maximum of 9MB free after a reboot, 2MB per pop is a significant chunck, so 16% of 9MB = 1.44, so it would equate to only being able to run one evb (i.e. my Alerts app) or a .net app (like tweaks2k2.net).

If you are running very small apps (like ones written in eVC), that use only 300k, then you probably can run quite a few of them even with a low setting.

Another possible reason you are not seeing any difference is that maybe your phone (if you don't have an mpx-220) may have more free RAM memory after a reboot, so your percentage setting will have a less effect then the same setting on my reduced free RAM memory.

For example, my i600 after the 2003 OS upgrade had 12MB of free memory after a reboot. Both my mpx-220 and i600 had a total of 24MB of RAM, so I have no idea why the 2003 OS in my i600 used up only 12MB, but the 2003SE OS on my mpx-220 uses up 15MB???
__________________
- John Cody
Windows Mobile Developer
www.OMNISOFT.com
 
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 07:18 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7