What are the "paused" values in GC_CONCURRENT log messages?
Asked Answered
G

2

8

I'm trying to explore the behavior of the new concurrent garbage collector in GingerBread (2.3).

Could someone please explain these example log lines in details (especially the "paused" parts of GC_CONCURRENT and GC_FOR_MALLOC)?

12-24 10:20:54.912 D/dalvikvm(  414): GC_CONCURRENT freed 510K, 57% free 2529K/5831K, external 716K/1038K, paused 8ms+5ms

12-24 10:20:54.963 D/dalvikvm(  414): GC_FOR_MALLOC freed 510K, 57% free 2529K/5831K, external 716K/1038K, paused 47ms
Goddard answered 24/12, 2010 at 10:31 Comment(0)
J
18
  • GC_CONCURRENT Heap is (almost) full. Therefore concurrent GC kicks in

  • freed 510K - Amount of memory freed

  • 57% free - Memory after freeing %
  • 2529K/5831K - Actual mem in heap
  • external 716K/1038K - Externally allocated memory (memory that is not in dvm)
  • paused 8ms+5ms - time taken for GC

especially the "paused" parts

For concurrent collections there are two pause times. One is at the beginning of the collection and other towards the end. For non-concurrent collection there will be only one pause time.

Juli answered 6/7, 2011 at 8:42 Comment(0)
T
5

if you haven't yet, check out this video: http://www.google.com/events/io/2011/sessions/memory-management-for-android-apps.html

Tuantuareg answered 1/6, 2011 at 14:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.