help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to increase 256 Mb Memory Limit? (Windows 2000)


From: Richard Thomas
Subject: Re: Possible to increase 256 Mb Memory Limit? (Windows 2000)
Date: Thu, 18 Nov 2004 10:27:10 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02

I've finally managed to achieve increased memory (using the combined Cygwin/Octave 2.1.42 p4atlas build under Windows 2000)! Hopefully this might help Robert too. The main change was that Cygwin/Octave seems to be ignore the "heap_chunk_in_mb" registry setting for the "local machine", but does spot the one for the "current user".

In a Command Prompt (DOS) window, to set then check the registry setting
"C:\Program Files\GNU Octave\bin\regtool" -i set "/HKCU/Software/GNU Octave/Cygwin/heap_chunk_in_mb" 1216 "C:\Program Files\GNU Octave\bin\regtool" -v list "/HKCU/Software/GNU Octave/Cygwin"

In theory, you should be able to set it for all users with:
"C:\Program Files\GNU Octave\bin\regtool" -i set "/HKLM/Software/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb" 1216

but this does not seem to get picked up by Octave. Also, with my Windows2000 paging size set to 1536 Mb, if I try to set the heap size to a larger value, Octave fails immediately. Not sure why happens, but I've got rather more memory to play with now so I'm happy: "C:\Program Files\GNU Octave\bin\regtool" -i set "/HKCU/Software/GNU Octave/Cygwin/heap_chunk_in_mb" 1300
"C:\Program Files\GNU Octave\bin\octave-2.1.4 2-p4atlas.exe"
C:\Program Files\GNU Octave\bin\octave-2.1.42-p4atlas.exe: *** 2. unable to allo
cate heap, heap_chunk_size 1363148800, Win32 error 8

And if I set it above a certain size "regtool" fails with the same error, so the registry has to be manually edited with "regedit".

(calling "regtool" using "system" within Octave seems to work OK as well, although as Marek points out you have to be careful when file pathnames have space characters in them).

Richard




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]