[squeak-dev] Low Memory Warning although enough memory is available

Levente Uzonyi leves at elte.hu
Sun Feb 27 03:06:36 UTC 2011


On Sat, 26 Feb 2011, r2ruyu-nana at yahoo.de wrote:

> Hiya!
>
> We encounter problems with low memory warnings ("Space is low", "Warning!
> Squeak is almost out of memory!").
>
> Setup here:
>  * Squeak 3.9 (tested also with 4.2)
>  * Win32
>  * 2GB of memory
>
> We can reproduce the problem here with:
>
> 	bmp1 := Form fromFileNamed: 'hauptabschnitt_lang.bmp'.
> 	bmp2 := Form fromFileNamed: 'hauptabschnitt1.bmp'.
>
> 'hauptabschnitt_lang.bmp' is 24 bit, 273,8MB file.
> 'hauptabschnitt1.bmp' is 24 bit, 95,8MB file.
>
> 'Doing" the first line works, doing the second popups the low memory warning.
> With the task manager we see Squeak using about 412MB after the first line.
> There should be enough memory left for Squeak.
>
> How to make both lines work? As stated in the wiki [1], the "-memory: N"
> argument is out of date. Indeed, Squeak behaves equal with different N (we
> tried 512, 768, 1024, 2048; but it's interesting that this parameter is still
> accepted by Squeak 3.9).
>
> I tried Squeak 4.2 but it's the same (although it needs overall 398MB after
> the first line).

IIRC the Windows VM can't use more than 512MB. According Dave's mail, 
you're trying to allocate 530MB+ memory (1.33 * 398).

>
> (By the way, executing the first line above is quite fast - but doing the same
> with equivalent png-file is about 5x slower - how come?)

It takes a while to decompress the contents.


Levente

>
> Any hints on this?
>
>
> Best regards,
>   r2ruyu-nana ;)
>
>
> [1] http://wiki.squeak.org/squeak/981
>
>



More information about the Squeak-dev mailing list