[android-developers] Re: Is it possible to set minimum heap size for each application.?
@mycall #1. The below code mean that every applications on VM start with 2Mb heap size. correct.? =Yes And If I want to change initial heap size for every application, I can do it directly. correct.? =Yes And according to comment, we can pass argument for heap size but in fact there is no way to pass the parameter because the VM is embedded in the Android runtime, not launched on the command line. correct.? =AFAIK, Yes. #2. I searched for CUSTOM_RUNTIME_HEAP_MAX in frameworks/base/core/jni/ AndroidRuntime.cpp but I can't find at all. ( My platform code is ecliar. ) Now I just found below code and then I think it means max heap size, 16MB. correct.? =Yes 16m - mega byte or mega bit .?? =B means byte property_get(dalvik.vm.heapsize, heapsizeOptsBuf+4, 16m); In my project, I also found below code in android make( *.mk ) file. ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.heapsize=32m Two codes cause same action.correct.? and 32m - mega byte or mega bit .? =Yes #3. ( last ) Actually, I don't understand below sentence. Is it possible to resize heap size in which case there is only one tread running.? The less-easy but better approach would be to resize the various heap structures, which is a bit awkward but probably doable since there's only thread running at that point where the zygote forks. = I do not believe heap size has something to do with thread number. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to set minimum heap size for each application.?
Please read https://groups.google.com/group/android-porting/browse_thread/thread/a22a9bf2d67013ac/6ffc46ab049a45a4?lnk=gstq=heap+limit#6ffc46ab049a45a4 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to set minimum heap size for each application.?
Thanks for your help. It is very useful for me. But I am beginner so I don't know that my understanding is correct even after reading several times. Please help me guide as a correct way. In my understanding. #1. The below code mean that every applications on VM start with 2Mb heap size. correct.? And If I want to change initial heap size for every application, I can do it directly. correct.? And according to comment, we can pass argument for heap size but in fact there is no way to pass the parameter because the VM is embedded in the Android runtime, not launched on the command line. correct.? gDvm.heapSizeStart = 2 * 1024 * 1024; // Spec says 16MB; too big for us. gDvm.heapSizeMax = 16 * 1024 * 1024;// Spec says 75% physical mem #2. I searched for CUSTOM_RUNTIME_HEAP_MAX in frameworks/base/core/jni/ AndroidRuntime.cpp but I can't find at all. ( My platform code is ecliar. ) Now I just found below code and then I think it means max heap size, 16MB. correct.? 16m - mega byte or mega bit .?? property_get(dalvik.vm.heapsize, heapsizeOptsBuf+4, 16m); In my project, I also found below code in android make( *.mk ) file. ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.heapsize=32m Two codes cause same action.correct.? and 32m - mega byte or mega bit .? #3. ( last ) Actually, I don't understand below sentence. Is it possible to resize heap size in which case there is only one tread running.? The less-easy but better approach would be to resize the various heap structures, which is a bit awkward but probably doable since there's only thread running at that point where the zygote forks. Thanks Mycall On 3월4일, 오후7시56분, James Wang jameswangc...@gmail.com wrote: Please readhttps://groups.google.com/group/android-porting/browse_thread/thread/... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to set minimum heap size for each application.?
check out the Launcher in Android source tree pay special attention to LauncherApplication.java and how it was mentioned in the manifest.xml On Mar 4, 2:34 pm, mycall ahndr...@naver.com wrote: Thanks for your help. It is very useful for me. But I am beginner so I don't know that my understanding is correct even after reading several times. Please help me guide as a correct way. In my understanding. #1. The below code mean that every applications on VM start with 2Mb heap size. correct.? And If I want to change initial heap size for every application, I can do it directly. correct.? And according to comment, we can pass argument for heap size but in fact there is no way to pass the parameter because the VM is embedded in the Android runtime, not launched on the command line. correct.? gDvm.heapSizeStart = 2 * 1024 * 1024; // Spec says 16MB; too big for us. gDvm.heapSizeMax = 16 * 1024 * 1024;// Spec says 75% physical mem #2. I searched for CUSTOM_RUNTIME_HEAP_MAX in frameworks/base/core/jni/ AndroidRuntime.cpp but I can't find at all. ( My platform code is ecliar. ) Now I just found below code and then I think it means max heap size, 16MB. correct.? 16m - mega byte or mega bit .?? property_get(dalvik.vm.heapsize, heapsizeOptsBuf+4, 16m); In my project, I also found below code in android make( *.mk ) file. ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.heapsize=32m Two codes cause same action.correct.? and 32m - mega byte or mega bit .? #3. ( last ) Actually, I don't understand below sentence. Is it possible to resize heap size in which case there is only one tread running.? The less-easy but better approach would be to resize the various heap structures, which is a bit awkward but probably doable since there's only thread running at that point where the zygote forks. Thanks Mycall On 3월4일, 오후7시56분, James Wang jameswangc...@gmail.com wrote: Please readhttps://groups.google.com/group/android-porting/browse_thread/thread/... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to set minimum heap size for each application.?
What r u going to do? To limit your app's heap size? if so, I think you can not get it done without building android source. You can find what you want on android-porting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to set minimum heap size for each application.?
Actuall UI ( user interface) of my device is very slow. So I think if I extend heap size for application it will be fixed. I don't konw exactly whether my understanding is correct or not. Anyway, If I want to start some appliation with more enough heap size than needed, what I have to do.? On 3월3일, 오후8시32분, James Wang jameswangc...@gmail.com wrote: What r u going to do? To limit your app's heap size? if so, I think you can not get it done without building android source. You can find what you want on android-porting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en