[Android Q&A, Help & Troubleshooting] /Romain:
Hi,

I've early version of ICS on my HTC Desire (http://xdaforums.com/showthread.php?t=1355660) and I found too much GC calls on logcat, even with systems apps like "contacts" :

12-30 15:35:43.682: D/dalvikvm(15368): GC_CONCURRENT freed 282K, 5% free 10382K/10823K, paused 5ms+4ms
12-30 15:35:44.043: D/dalvikvm(15368): GC_CONCURRENT freed 319K, 5% free 10507K/10951K, paused 3ms+3ms
12-30 15:35:44.723: D/dalvikvm(15368): GC_CONCURRENT freed 364K, 5% free 10568K/11079K, paused 3ms+4ms
12-30 15:35:44.803: D/dalvikvm(15368): GC_FOR_ALLOC freed 312K, 6% free 10549K/11207K, paused 31ms
12-30 15:35:45.034: D/dalvikvm(15368): GC_FOR_ALLOC freed 316K, 6% free 10542K/11207K, paused 48ms
12-30 15:35:45.074: D/dalvikvm(15368): GC_FOR_ALLOC freed 1K, 6% free 10631K/11207K, paused 43ms
12-30 15:35:45.074: I/dalvikvm-heap(15368): Grow heap (frag case) to 10.651MB for 184336-byte allocation
12-30 15:35:45.124: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 10811K/11399K, paused 44ms
12-30 15:35:45.174: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 10811K/11399K, paused 42ms
12-30 15:35:45.174: I/dalvikvm-heap(15368): Grow heap (frag case) to 10.827MB for 184336-byte allocation
12-30 15:35:45.214: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 10991K/11591K, paused 43ms
12-30 15:35:45.264: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 10991K/11591K, paused 43ms
12-30 15:35:45.264: I/dalvikvm-heap(15368): Grow heap (frag case) to 11.002MB for 184336-byte allocation
12-30 15:35:45.304: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 11171K/11783K, paused 43ms
12-30 15:35:45.354: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 11171K/11783K, paused 39ms
12-30 15:35:45.354: I/dalvikvm-heap(15368): Grow heap (frag case) to 11.178MB for 184336-byte allocation
12-30 15:35:45.374: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 6% free 11351K/11975K, paused 22ms
12-30 15:35:45.404: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 5% free 11442K/11975K, paused 22ms
12-30 15:35:45.404: I/dalvikvm-heap(15368): Grow heap (frag case) to 11.442MB for 184336-byte allocation
12-30 15:35:45.424: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 5% free 11622K/12167K, paused 22ms
12-30 15:35:45.454: D/dalvikvm(15368): GC_FOR_ALLOC freed <1K, 5% free 11622K/12167K, paused 22ms
12-30 15:35:45.454: I/dalvikvm-heap(15368): Grow heap (frag case) to 11.618MB for 184336-byte allocation
12-30 15:35:45.474: D/dalvikvm(15368): GC_FOR_ALLOC freed 0K, 5% free 11802K/12359K, paused 22ms
12-30 15:35:45.554: D/dalvikvm(15368): GC_FOR_ALLOC freed 16K, 5% free 11990K/12551K, paused 21ms
12-30 15:35:46.515: I/WindowManager(164): createSurface Window{4173de78 com.android.launcher/com.android.launcher2.Launcher paused=false}: DRAW NOW PENDING
12-30 15:35:46.585: W/IInputConnectionWrapper(15368): showStatusIcon on inactive InputConnection
12-30 15:35:46.585: W/InputManagerService(164): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@418831a0 (uid=10055 pid=15368)
12-30 15:35:46.655: I/ActivityManager(164): No longer want com.android.vending (pid 15040): hidden #5
12-30 15:36:08.136: D/ComprehensiveCountryDetector(164): onServiceStateChanged
12-30 15:36:10.719: D/ComprehensiveCountryDetector(164): onServiceStateChanged
12-30 15:36:25.033: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:36:25.033: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:36:25.253: D/dalvikvm(9471): GC_CONCURRENT freed 479K, 6% free 10974K/11655K, paused 2ms+14ms
12-30 15:37:00.207: D/dalvikvm(164): GC_CONCURRENT freed 1319K, 27% free 16855K/22855K, paused 9ms+10ms
12-30 15:37:25.071: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:37:25.071: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:37:25.241: D/dalvikvm(14955): GC_EXPLICIT freed 281K, 7% free 10807K/11527K, paused 2ms+3ms
12-30 15:38:25.120: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:38:25.120: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:38:25.350: D/dalvikvm(164): GC_EXPLICIT freed 234K, 27% free 16760K/22855K, paused 3ms+9ms
12-30 15:38:25.430: D/dalvikvm(5684): GC_EXPLICIT freed 240K, 7% free 11737K/12487K, paused 3ms+7ms
12-30 15:38:25.480: D/dalvikvm(9471): GC_CONCURRENT freed 477K, 6% free 10978K/11655K, paused 3ms+2ms
12-30 15:38:25.560: D/dalvikvm(14955): GC_CONCURRENT freed 412K, 6% free 10837K/11527K, paused 2ms+3ms
12-30 15:39:25.138: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:39:25.138: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:40:25.197: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:40:25.197: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:40:25.407: D/dalvikvm(9471): GC_CONCURRENT freed 489K, 6% free 10977K/11655K, paused 3ms+3ms
12-30 15:40:25.467: D/dalvikvm(14955): GC_CONCURRENT freed 435K, 6% free 10855K/11527K, paused 3ms+3ms
12-30 15:41:25.235: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:41:25.235: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:42:25.274: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:42:25.274: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:42:25.484: D/dalvikvm(9471): GC_CONCURRENT freed 481K, 6% free 10977K/11655K, paused 2ms+3ms
12-30 15:42:25.544: D/dalvikvm(14955): GC_CONCURRENT freed 443K, 6% free 10855K/11527K, paused 2ms+2ms
12-30 15:43:25.313: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:43:25.313: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:44:25.351: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:44:25.351: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:44:25.561: D/dalvikvm(9471): GC_CONCURRENT freed 480K, 6% free 10978K/11655K, paused 2ms+3ms
12-30 15:44:25.621: D/dalvikvm(14955): GC_CONCURRENT freed 448K, 6% free 10855K/11527K, paused 2ms+2ms
12-30 15:45:18.243: D/GTalkService/c(5684): [HeartbeatAlarm] sent heartbeat to server
12-30 15:45:25.360: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:45:25.360: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:46:23.967: I/ActivityManager(164): No longer want com.android.mms (pid 15316): hidden #5
12-30 15:46:25.418: D/Tethering(164): interfaceLinkStateChanged eth0, true
12-30 15:46:25.418: D/Tethering(164): interfaceStatusChanged eth0, true
12-30 15:46:25.629: D/dalvikvm(9471): GC_CONCURRENT freed 478K, 6% free 10978K/11655K, paused 3ms+2ms
12-30 15:46:25.689: D/dalvikvm(14955): GC_CONCURRENT freed 455K, 6% free 10839K/11527K, paused 2ms+3ms
12-30 15:47:14.386: I/ActivityManager(164): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=net.naonedbus/.activity.MainActivity bnds=[0,554][120,704]} from pid 22849
12-30 15:47:14.426: I/WindowManager(164): createSurface Window{41a917b8 Starting net.naonedbus paused=false}: DRAW NOW PENDING
12-30 15:47:14.736: D/dalvikvm(14905): GC_FOR_ALLOC freed 256K, 4% free 10296K/10695K, paused 41ms
12-30 15:47:14.736: I/dalvikvm-heap(14905): Grow heap (frag case) to 10.734MB for 614416-byte allocation
12-30 15:47:14.796: D/dalvikvm(14905): GC_CONCURRENT freed 7K, 4% free 10889K/11335K, paused 4ms+2ms
12-30 15:47:15.037: D/dalvikvm(14905): GC_CONCURRENT freed 106K, 3% free 11219K/11463K, paused 2ms+3ms
12-30 15:47:15.207: D/FavorisPaneView(14905): Début de chargement des favoris
12-30 15:47:15.317: I/HoraireManager(14905): Nettoyage du cache horaires
12-30 15:47:15.367: D/FavorisPaneView(14905): Fin de chargement des favoris
12-30 15:47:15.367: D/FavorisPaneView(14905): Début de chargement des horaires
12-30 15:47:15.387: D/dalvikvm(14905): GC_CONCURRENT freed 152K, 3% free 11479K/11783K, paused 3ms+3ms
12-30 15:47:15.387: I/naonedbus(14905): BestProvider : network
12-30 15:47:15.407: I/WindowManager(164): createSurface Window{41872770 net.naonedbus/net.naonedbus.activity.MainActivity paused=false}: DRAW NOW PENDING

I thought that might come from Desire ICS' rom, but i've got the same problem with an ICS 4.0.3 virtual device.

So, is there any problem/change with heap size on Android ICS ?