Q: incremental garbage collection overhead

John M McIntosh johnmci at smalltalkconsulting.com
Wed Nov 21 20:44:24 UTC 2007

You need to use a VM that supports setGCBiasToGrowGCLimit
Which VM are you using?

Also to turn it on you need to do
Smalltalk setGCBiasToGrow: 1.

Other GC tuning values are below. The values given below have no  
meaning for your application and may make it better, may make it worse.

Smalltalk vmParameterAt: 5 put: 8000.  "do an  incremental GC after  
this many allocations"
Smalltalk vmParameterAt: 6 put: 4000.  "tenure when more  than this  
many objects survive the GC"

Smalltalk vmParameterAt: 25 put: 24*1024*1024. "grow headroom"
Smalltalk vmParameterAt: 24 put: 48*1024*1024.  "shrink threshold"

> setGCBiasToGrowGCLimit in SystemDictionnary (Smalltalk
> setGCBiasToGrowGCLimit: 16*1024*1024). but it doesn't work and popup  
> a "a
> primitive has failed" error. Is it the right method ?

John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com

More information about the Squeak-dev mailing list