memory [message #49908] |
Wed, 30 August 2006 09:06 |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
Hello all,
Is there a way for IDL to find out the amount of available memory?
Also I am not too sure to understand how IDL is managing the virtual
memory. In the help file, they say that IDL would automatically write
information on the disk if the physical memory gets full. However, I
have a function that crashes (i.e. % Unable to allocate memory.) as soon
as my physical memory is totally used. In this function, I have to carry
a few quite large arrays that are used only once in each loop
iteration.. so technically speaking, they could be written on the disk
instead of being kept in memory!
I have 2G of physical memory, and the same amount of virtual memory (for
a suposedly nice total of 4G then).
IDL> print, !version
{ x86 Win32 Windows Microsoft Windows 6.2 Jun 20 2005 32 64}
Any thoughts would be greatly appreciated!
Jean
PS: Having to add some loops in your code because the loopless one takes
too much memory is more painfull than pulling your hairs when writing
the "optimized" code..
|
|
|