Hello...
I have noticed that after installing packages (say for example starting with a dev image and loading everything else you need), my image will swell considerably (as noticed both on the disk after saving, and with MemoryUsage). Garbage collection and saving doesn't seem to fix it, but if I re-run the level playing field script, it seems to clean things up.
I'm not sure what it's doing, but I thought it worth passing on...
However, if you do this a lot (because you mess things up so badly that you have to unload and re-load packages to get things straightened out, which I can confess to on the Beginners List), make sure you do a Smalltalk condenseChanges every now and then, or it will come back to bite you too!
Rob
On Sun, Jul 06, 2008 at 04:25:37PM -0400, Rob Rothwell wrote:
I have noticed that after installing packages (say for example starting with a dev image and loading everything else you need), my image will swell considerably (as noticed both on the disk after saving, and with MemoryUsage). Garbage collection and saving doesn't seem to fix it, but if I re-run the level playing field script, it seems to clean things up.
It's probably because of this line in http://installer.pbwiki.com/LevelPlayingField-Monticello15 :
SmalltalkImage current fixObsoleteReferences
Try running that and see if it helps.
Sorry for bringing this up again, but nothing works so well for getting an image back down to size after installing additional packages (especially big ones, like Aida or Magma) like running LPF. The fixObsoleteReferences does nothing...any other ideas? Whatever it is is present in the pharo script as well, and does something in a way that doing a garbage collect after the end of the script immediately shrinks the image--in this case from 50Mb to 25Mb! Take care,
Rob
On Mon, Jul 7, 2008 at 5:55 PM, Matthew Fulmer tapplek@gmail.com wrote:
On Sun, Jul 06, 2008 at 04:25:37PM -0400, Rob Rothwell wrote:
I have noticed that after installing packages (say for example
starting
with a dev image and loading everything else you need), my image will swell considerably (as noticed both on the disk after saving, and with MemoryUsage). Garbage collection and saving doesn't seem to fix it,
but
if I re-run the level playing field script, it seems to clean things
up.
It's probably because of this line in http://installer.pbwiki.com/LevelPlayingField-Monticello15 :
SmalltalkImage current fixObsoleteReferences
Try running that and see if it helps.
-- Matthew Fulmer -- http://mtfulmer.wordpress.com/ _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Rob Rothwell wrote:
Sorry for bringing this up again, but nothing works so well for getting an image back down to size after installing additional packages (especially big ones, like Aida or Magma) like running LPF. The fixObsoleteReferences does nothing...any other ideas? Whatever it is is present in the pharo script as well, and does something in a way that doing a garbage collect after the end of the script immediately shrinks the image--in this case from 50Mb to 25Mb!
Take care,
Rob
LPF is running SmalltalkImage current cleanUpAll.
We recently started a convention that all classes that can free up some memory prior to saving an image implement #freeSomeSpace, or #cleanUp.
One of the biggest offenders is Monticello, it caches quite a lot of stuff when loading packages. There is a menu item for cleaning Monticello caches manually.
regards
Keith
Thank you for the explanation! Take care,
Rob
On Tue, Sep 30, 2008 at 11:28 AM, Keith Hodges keith_hodges@yahoo.co.ukwrote:
Rob Rothwell wrote:
Sorry for bringing this up again, but nothing works so well for getting an image back down to size after installing additional packages (especially big ones, like Aida or Magma) like running LPF. The fixObsoleteReferences does nothing...any other ideas? Whatever it is is present in the pharo script as well, and does something in a way that doing a garbage collect after the end of the script immediately shrinks the image--in this case from 50Mb to 25Mb!
Take care,
Rob
LPF is running SmalltalkImage current cleanUpAll.
We recently started a convention that all classes that can free up some memory prior to saving an image implement #freeSomeSpace, or #cleanUp.
One of the biggest offenders is Monticello, it caches quite a lot of stuff when loading packages. There is a menu item for cleaning Monticello caches manually.
regards
Keith _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org