On Sat, 9 Oct 2010, Max Leske wrote:

Cool! I'll try that, thanks.

I just wonder: It says in the Notes "If `-memory' is not specified then the heap 
will grow dynamically.". As I understand that, the image should not run out of space 
before the OS does (or the address range assigned by the OS).  So can this option reserve 
more memory than the OS would otherwise allow?
I'll try it out and let you know what happened.

-memory allocates the memory when the VM starts. Use -mmap (un un*x) if you want the VM to dinamically grow the heap. AFAIK the windows VM doesn't support more than 512MB.


Levente


Cheers,
Max



On 09.10.2010, at 19:48, Adrian Lienhard wrote:

The unix VM and apparently also the Mac VM has an option -memory that allows 
you to set a heap size:

[adrian:/Applications/Squeak 4.2.3beta1U.app/Contents/MacOS] ./Squeak\ VM\ Opt 
-help
Usage: ./Squeak VM Opt [<option>...] [<imageName> [<argument>...]]
      ./Squeak VM Opt [<option>...] -- [<argument>...]

Common <option>s:
 -help                 print this help message, then exit
 -memory <size>[mk]    use fixed heap size (added to image size)
 -pathenc <enc>        set encoding for pathnames (default: macintosh)
 -headless             run in headless (no window) mode (default: false)

Notes:
 <imageName> defaults to `Squeak.image'.
 If `-memory' is not specified then the heap will grow dynamically.
 <argument>s are ignored, but are processed by the Squeak image.
 The first <argument> normally names a Squeak `script' to execute.
 Precede <arguments> by `--' to use default image.


HTH,
Adrian

On Oct 9, 2010, at 18:01 , Max Leske wrote:

Hi

I'm having trouble with low space warnings in Pharo. Is there a source on how 
much memory the image can get from the OS? Is there maybe a way to up that 
limit? I am loading a lot of data into the image and the limit at the moment 
seems to be around 500 MB.

Thanks for any ideas.

Cheers,
Max
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to