Frequent Garbage Collection in AOSP MM

45 views
Skip to first unread message

ptes...@gmail.com

unread,
May 24, 2016, 10:01:45 AM5/24/16
to android-platform
Hello, Android-Platform Group Users.
I have a question about garbage collection, so please help me.

When I tested AOSP Marshmallow and the test is very simple.
After launch calculator app, finish the app by touching back key.
I repeated that scenario.
At that time, garbage collection log is occured every time as below.
=====================================================================================================================================================
275105-1212:01:21.358I62736273art : Explicit concurrent mark sweep GC freed 12634(862KB) AllocSpace objects, 0(0B) LOS objects, 79% free, 1049KB/5MB, paused 468us total 34.062ms
276805-1212:01:21.378I62736273art : Explicit concurrent mark sweep GC freed 3231(207KB) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 306us total 19.507ms
279205-1212:01:21.396I62736273art : Explicit concurrent mark sweep GC freed 6(208B) AllocSpace objects, 0(0B) LOS objects, 82% free, 841KB/4MB, paused 318us total 16.160ms
428805-1212:01:22.687I62736273art : Explicit concurrent mark sweep GC freed 2505(144KB) AllocSpace objects, 0(0B) LOS objects, 79% free, 1044KB/5MB, paused 143us total 27.607ms
435505-1212:01:22.705I62736273art : Explicit concurrent mark sweep GC freed 3079(202KB) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 366us total 16.321ms
437205-1212:01:22.725I62736273art : Explicit concurrent mark sweep GC freed 6(208B) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 344us total 19.871ms
589005-1212:01:23.856I62736273art : Explicit concurrent mark sweep GC freed 2480(142KB) AllocSpace objects, 0(0B) LOS objects, 79% free, 1042KB/5MB, paused 267us total 23.160ms
595705-1212:01:23.874I62736273art : Explicit concurrent mark sweep GC freed 3057(200KB) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 298us total 16.076ms
597405-1212:01:23.893I62736273art : Explicit concurrent mark sweep GC freed 6(208B) AllocSpace objects, 0(0B) LOS objects, 82% free, 841KB/4MB, paused 284us total 18.807ms
752405-1212:01:25.225I62736273art : Explicit concurrent mark sweep GC freed 2505(144KB) AllocSpace objects, 0(0B) LOS objects, 79% free, 1044KB/5MB, paused 292us total 23.224ms
758705-1212:01:25.242I62736273art : Explicit concurrent mark sweep GC freed 3079(202KB) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 353us total 15.760ms
761705-1212:01:25.260I62736273art : Explicit concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 291us total 17.051ms
914005-1212:01:26.561I62736273art : Explicit concurrent mark sweep GC freed 2480(142KB) AllocSpace objects, 0(0B) LOS objects, 79% free, 1042KB/5MB, paused 310us total 20.125ms
920705-1212:01:26.583I62736273art : Explicit concurrent mark sweep GC freed 3060(200KB) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 1.796ms total 20.473ms
923805-1212:01:26.601I62736273art : Explicit concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 82% free, 842KB/4MB, paused 295us total 17.561ms
=====================================================================================================================================================

Changing dalvik heap property ( dalvik.vm.heaputilization / dalvik.vm.heapminfree / dalvik.vm.heapmaxfree ) I tested, but that log is reduced little.
Even if free memory is enough ( 1.8GB ( Cached + Kernel Cached + Free Mem ) ), I think that garbage collection operation is too much.
Do you know the reason and wouldn't it be better to reduce garbage collection?
If you know anything about that, please let me know.

Thanks and Regards.
Reply all
Reply to author
Forward
0 new messages