<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CE memory division between "storage" &amp; "program" memory</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx</link><description>Somehow I've been involved in a bunch of discussions on this subject lately, so I figured I might as well lay out some of the issues. Q: What are the ways to set the way memory splits between storage &amp;amp; program memory? Or in other words, how do I set</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: CE memory division between "storage" &amp; "program" memory</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#227886</link><pubDate>Fri, 10 Sep 2004 18:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:227886</guid><dc:creator>Zmaddi@matrox.com</dc:creator><description>Thank you Sue for all the info in this site, it is for sure very helpful!&lt;br&gt;&lt;br&gt;Related to the answer of question &amp;quot;What is the minimum size for the program memory?  How do I guarantee that my device can boot?&amp;quot;&lt;br&gt;&lt;br&gt;Could you please tell me what kind of Win32 functions to use to have the minFree pages and total pages? Is OEMInit () a good place in the OAL to return the minimum RAM size to let the OS boot safely? &lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks again&lt;br&gt;&lt;br&gt; &lt;br&gt;</description></item><item><title>re: CE memory division between "storage" &amp; "program" memory</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#227910</link><pubDate>Fri, 10 Sep 2004 18:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:227910</guid><dc:creator>Sue Loh</dc:creator><description>From an application you can use the read-only values UserKInfo[KINX_NUMPAGES] and UserKInfo[KINX_MINPAGEFREE] to find out the total number of pages and number of free pages.  Inside the OAL you'd have to refer to them differently, I think KData.aInfo[].  I don't know what you mean about &amp;quot;returning&amp;quot; the size.  Wait until you've gone all the way through boot -- long after OEMInit() -- before measuring the low-water mark.&lt;br&gt;</description></item><item><title>re: CE memory division between "storage" &amp; "program" memory</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#229651</link><pubDate>Wed, 15 Sep 2004 01:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:229651</guid><dc:creator>Zmaddi@matrox.com</dc:creator><description>Hi Sue,&lt;br&gt;&lt;br&gt;I tried to use the KData.aInfo[] to get total number of pages &amp;amp; free pages inside the OAL but without sucess. I am only able to use the UserKInfo in application mode.&lt;br&gt;&lt;br&gt;IN OAL: Since I am using pOEMCalcFSPages to recalculate the size of object store, can I use the value of dwMemPages (memory reported to kernel) as (minfree pages) + (min OS RAM) + (safety margin)?&lt;br&gt;So, that means my formula is:&lt;br&gt;(Object store ram) = (Total ram)- dwMemPages &lt;br&gt;&lt;br&gt;thanks&lt;br&gt;</description></item><item><title>How about auto adjust</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#232661</link><pubDate>Wed, 22 Sep 2004 05:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:232661</guid><dc:creator>Gordon</dc:creator><description>Thank you! Its very clear and helpful.&lt;br&gt;I found that while copy files to RAM file system and if there is no enough storage memeory, system will auto increase the size of storage memeory. But if there is no enough program memroy, no one to adjust. &lt;br&gt;Is it right?&lt;br&gt;Could you explain the auto adjustment?&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;Gordon</description></item><item><title>re: Zmaddi's question</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#233926</link><pubDate>Fri, 24 Sep 2004 19:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:233926</guid><dc:creator>Sue Loh</dc:creator><description>Zmaddi: The numbers I was suggesting were for figuring out, manually, what a good ballpark number might be.  Not for figuring out programmatically during boot.  For one thing, pOEMCalcFSPages is called far too early in boot for you to get a realistic approximation for how much memory is GOING to be used during boot.  Reading the &amp;quot;minfree pages&amp;quot; value during pOEMCalcFSPages will almost certainly give you a bad representation of how much memory is going to be used during boot AFTER the pOEMCalcFSPages call.&lt;br&gt;&lt;br&gt;My procedures were for if you wanted to choose a hard-coded size for the object store.  If you want to calculate it programmatically during boot then the best I can suggest is: pick a hard-coded minimum, then if you want it to be more dynamic based on how much ram exists on the device, pick a percentage to use beyond the minimum.&lt;br&gt;</description></item><item><title>re: Gordon's question</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#233929</link><pubDate>Fri, 24 Sep 2004 19:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:233929</guid><dc:creator>Sue Loh</dc:creator><description>Gordon: as I mention in the very last Q&amp;amp;A on the list, PocketPC is a completely different animal entirely because of the auto-adjust.&lt;br&gt;&lt;br&gt;As I understand the PocketPC auto-adjust algorithm, it tries to keep the memory division such that the amount of unused object store matches the amount of unused program memory.&lt;br&gt;&lt;br&gt;So, if there is no free storage available to convert to program memory, or if there is no free program memory available to convert to storage, then it cannot adjust to give you more.&lt;br&gt;</description></item><item><title>Memory Problems FAQ</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#350958</link><pubDate>Wed, 12 Jan 2005 01:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:350958</guid><dc:creator>Daniel Moth</dc:creator><description>Memory Problems FAQ</description></item><item><title>Want to increase RAM space for DOTNETCF Application | keyongtech</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#9338404</link><pubDate>Sun, 18 Jan 2009 20:28:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9338404</guid><dc:creator>Want to increase RAM space for DOTNETCF Application | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/3101846-want-to-increase-ram-space"&gt;http://www.keyongtech.com/3101846-want-to-increase-ram-space&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Sue Loh s blog CE memory division between storage amp program memory | Paid Surveys</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#9656886</link><pubDate>Fri, 29 May 2009 22:58:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9656886</guid><dc:creator> Sue Loh s blog CE memory division between storage amp program memory | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=sue-loh-s-blog-ce-memory-division-between-storage-amp-program-memory"&gt;http://paidsurveyshub.info/story.php?title=sue-loh-s-blog-ce-memory-division-between-storage-amp-program-memory&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Sue Loh s blog CE memory division between storage amp program memory | Uniform Stores</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#9677831</link><pubDate>Mon, 01 Jun 2009 16:47:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9677831</guid><dc:creator> Sue Loh s blog CE memory division between storage amp program memory | Uniform Stores</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://uniformstores.info/story.php?id=14469"&gt;http://uniformstores.info/story.php?id=14469&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Sue Loh s blog CE memory division between storage amp program memory | storage bench</title><link>http://blogs.msdn.com/sloh/archive/2004/09/09/227599.aspx#9749442</link><pubDate>Sun, 14 Jun 2009 13:04:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9749442</guid><dc:creator> Sue Loh s blog CE memory division between storage amp program memory | storage bench</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://thestoragebench.info/story.php?id=652"&gt;http://thestoragebench.info/story.php?id=652&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>