unused-method removal vs. Spur compaction

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

unused-method removal vs. Spur compaction

Craig Latta
 

Hi--

     I've got the mass unused-method removal from Spoon working in Spur
in Squeak 5.1. But now I have a juicy 12-megabyte chunk of free space in
the middle of the 35-megabyte image that won't go away. There's just one
Spur segment (I was expecting several?), with no pinned objects.

     Is there a known Squeak image with multiple segments? Is there some
way to split a segment? Am I just supposed to play with the grow
overhead and shrink threshold in the VM simulator, until the compaction
I want is triggered?


     thanks!

-C

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)

Reply | Threaded
Open this post in threaded view
|

Re: unused-method removal vs. Spur compaction

timrowledge

Eliot mentioned using the vmaker sim to load the image and then save it after removing the empty space. Ah, found it -

> Build a VMMaker image with image/buildspurtrunkvmmaker.sh and you can now use Spur32BitPreen to rewrite the image to be more compact.  We can use this as part of the release process until ClĂ©ment and I have fixed Spur compaction.  e.g.
>
> Spur32BitPreen new preenImage: '../oscogvm/image/trunk50'
> Looking for module  ... loaded...computing accessor depths...done
> Looking for module  ... loaded...computing accessor depths...done::::.............................................done.
> old heap size: 41,897,472 initial new heap size: 26,818,472
> change: -35.99%
> final new heap size: 26,818,472 change: -35.99%
>
> Done!
>
tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: MD: Move and Drop bits


Reply | Threaded
Open this post in threaded view
|

re: unused-method removal vs. Spur compaction

Craig Latta
 

> ...Spur32BitPreen...

     Thanks! That does the trick.


-C

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)