mano M wrote:
> Hi
> 
> My program allocating 3 dimnsional array using malloc. My linux
> system has 2 GB ram and 50GB hard disk space.How much maximun space
> can I allocate using malloc?Is it maximum 2GB or more?will it swap
> memory,if allocate more the 2 GB?
> 
> Thanks, Manoj

Manoj,

Well, under Linux you may be able to squeak out 4GB (may need to do some 
root level stuff).  However!  If you really need that much RAM for an 
extended period, consider using a Level 1-style cache (like CPUs have) 
and your hard drive.  You've got 50GB there.

Also, if your 3D array is "sparse", consider an alternate data structure 
or a completely different approach (e.g. a BSP tree or related kin).

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to