Dima: Thanks for your explanation. It looks reasonable. Would you like to give some more information on the scenarios(applications) that demand large memory in managed heap? I am interested to know. I have tried the maps application got from the emulator and put under resolution of 800x600, and found the managed heap increased not so much as the unmanaged heap. And from my evaluation the managed heap only increases to 3MB or so. While from my similar evaluation on the default emulator, it consumes about 2MB, it also showed large consumption in unmanaged heap. I am guessing mainly it is due to the screen resolution difference. Has the source code of maps application been open sourced or does google plan to do so? Thanks. -- Chen
________________________________ From: android-porting@googlegroups.com [mailto:android-port...@googlegroups.com] On Behalf Of Dima Zavin Sent: Wednesday, December 31, 2008 3:28 AM To: android-porting@googlegroups.com Subject: [android-porting] Re: 128MB runtime heap for Asus eee target The primary reason this was chosen was due to larger screen size on the eeepc compared to HVGA on the dream. The maps application would cache a certain number of tiles, and when the screen got big, it blew REALLY fast through the standard 16mb heap and then the vm crashed because it couldn't gc to free up memory for more objects. The 128 was most certainly a swing towards the other extreme (there was no pressing need for me to find the "best" number, just one that worked). I'm sure a smaller number would work just fine. Feel free to experiment. --Dima On Mon, Dec 29, 2008 at 10:44 AM, Yang, Chen <chen.y...@intel.com<mailto:chen.y...@intel.com>> wrote: I noticed that the maxium heap size for Asus eee was set to be 128MB, would some one give some hints on the rationale behind? Thanks. -- Chen --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---