[squeak-dev] What Error should I expect when I fill up the image with objects?

Eliot Miranda eliot.miranda at gmail.com
Wed Oct 27 14:47:22 UTC 2021


Hi Timothy,

> On Oct 27, 2021, at 7:26 AM, gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org> wrote:
> 
> 
> Hi Folks,
> 
> I am doing an experiment to load a bunch of objects into my Squeak6/Spur image.
> 
> 
> What should I expect if it fills up?
> 
> Will it throw a SmallTalk error with a debugger?

Yes, a low space error.  Search for lowspace in a Message Names and you should find the low space process, etc.  look also at the allocation tests.  However…

> Or should I expect it to segfault or something.

Not segfault, but something.  In practice Spur asks for more memory from the OS.  There is an optional limit on old space size.  If set then you should see a low space signal.  If not set the system will simply slow down as the OS continues to provide memory and start to page.

The low space mechanism can work, but only if the vm has a good estimate of how much memory it can ask for.  Unfortunately I’m unaware of APIs the vm can use to derive this estimate.  So one is left with having to set thd limit manually.

> Thank you for your time.

HTH,
Eliot
_,,,^..^,,,_ (phone)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211027/6fb7b459/attachment.html>


More information about the Squeak-dev mailing list