comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to make large array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to make large array [message #24458 is a reply to message #24457] Wed, 28 March 2001 10:03 Go to previous messageGo to previous message
renjie is currently offline  renjie
Messages: 10
Registered: October 1999
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<blockquote TYPE=CITE>
<pre></pre>
</blockquote>

<p><br>Below are my tests, though the heap memory can be increased till
the maximum of RAM+VM (my machine is 512MB+2GB), the
<br>maximum size for a single arrary can not be larger than 256MB, I really
need to make array around 1GB, if anyboy can config out
<br>what is wrong with my system. Thanks.
<blockquote TYPE=CITE>
<pre>IDL> b=bytarr(1024,1024,255)
IDL> help, /mem
heap memory used:&nbsp; 267652748, max:&nbsp; 535039712, gets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 395, frees:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 148
IDL> b=bytarr(1024,1024,256)
% Unable to allocate memory: to make array.
% Execution halted at:&nbsp; $MAIN$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
IDL> help, /mem
heap memory used:&nbsp; 267652748, max:&nbsp; 267652776, gets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 398, frees:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 151
IDL> c=bytarr(1024,1024,255)
IDL> help, /mem
heap memory used:&nbsp; 535039699, max:&nbsp; 535039727, gets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 402, frees:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 154
IDL> d=bytarr(1024,1024,255)
% Unable to allocate memory: to make array.
% Execution halted at:&nbsp; $MAIN$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
IDL> help, /mem
heap memory used:&nbsp; 535039699, max:&nbsp; 535039727, gets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 405, frees:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 157
IDL> d=bytarr(1024,1024,125)
IDL> help, /mem
heap memory used:&nbsp; 666111805, max:&nbsp; 666111833, gets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 409, frees:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 160</pre>
</blockquote>

<p>Alex Schuster wrote:
<blockquote TYPE=CITE>renjie wrote:
<p>> I tried to make large array, however, in Windows,
<br>> the largest I can made is 256MB, and in Unix is 1 GB,
<br>> it's supposed that the limitation is 2GB, do you have any
<br>> idea about the largest array in IDL?
<p>We habe encountered a problem with IDL and NT, where IDL is only able
to
<br>allocate 800 MB of memory in one step, even if it can allocate more
<br>memory afterwards. But 256 MB is much too low, presuming there is enough
<br>physical+virtual memory.
<p>In Unix, I can allocate more than 1 GB:
<p>--> idl
<br>IDL Version 5.2.1 (sunos sparc). (c) 1999, Research Systems, Inc.
<br>Installation number: 80864-0.
<br>Licensed for use by: MPI Forschung
<p>IDL>&nbsp; b=bytarr(1024,1024,1200)
<br>IDL> help, /mem
<br>heap memory used: 1258497902, max: 1258497930, gets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
227,
<br> frees:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp; 89
<p>The limit command tells you about the datasize you are allowed to
<br>allocate, maybe this is set too low for you. And maybe there's a similar
<br>setting for Windows?
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Alex
<br>--
<br>&nbsp; Alex Schuster&nbsp;&nbsp;&nbsp;&nbsp; Wonko@weird.cologne.de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
PGP Key available
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
alex@pet.mpin-koeln.mpg.de</blockquote>
</html>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Truncated save file?
Next Topic: Streamlining

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:59:06 PDT 2025

Total time taken to generate the page: 0.00472 seconds