On Fri, 15 Jan 2010, Mariano Martinez Peck wrote:
On Fri, Jan 15, 2010 at 10:51 AM, Laval Jannik <jannik.laval@inria.fr>wrote:
Hi,
In some case I need to run my VM with more memory. For now, I use the parameter "-memory" when I run the VM.
Is it possible to define this value in the image ?
IIRC -memory allocates a fixed size memory chuck under unix and keeps it while the vm is running, -mmap is a better approach under unix.
I think you can do something like:
SmalltalkImage current vmParameterAt: 5 put: 100000; vmParameterAt: 6 put: 35000; vmParameterAt: 24 put: 16 * 1024 * 1024; vmParameterAt: 25 put: 8 * 1024 * 1024.
These are parameters for the GC, so are irrelevant here.
But...I am not sure how to know each parameter number what exactly is. Do you know where I can get that information?
See the comment in SmalltalkImage >> #vmParameterAt: Levente
To see your current data I think you can do:
SmalltalkImage current getVMParameters
Cheers
Mariano
Then I can use it in a script.
Cheers
--- Jannik Laval ---
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project