Re: Memory allocation problem

From: Mihai Osian (zzz_at_zzz.com)
Date: 03/31/05


Date: Thu, 31 Mar 2005 11:09:54 +0200

justabeginner wrote:

>Hi all, I seem to be having this problem allocating memory with a
>finite element package. Does anyone have any suggestions?
>
>I have 1GB of RAM and 2GB of hard disk swap space (as a swap
>partition). When I allocate 30e6 words of memory I use about 200MB of
>RAM and 0MB of swap space. When I allocate 40e6, it crashes.
>
>My friends with lower spec computers can allocate up to 90e6 words of
>memory so I don't think the limitation is with the program.
>
>My O/S is Red Hat Enterprise v4.0. Are there any memory restrictions I
>need to free up, which RHEL implicitly applies to all running apps
>(like no more than 150MB of RAM per application)?
>
>
>
>
< snip>

  Check the output of "ulimit -a".

Mihai



Relevant Pages

  • Re: Is there a maximum contiguous memory allocation?
    ... but could ALLOCATE it! ... allocate it if I had 2GB of physical memory! ... the amount of physical memory I have installed. ... Note that you can use raw VirtualAlloc to improve your ...
    (microsoft.public.vc.mfc)
  • Tru64 issues with Infinite limits
    ... An automated test in my nightly build was failing due to Out of Memory ... Cannot allocate block 146 ...
    (comp.unix.tru64)
  • Re: run-time vs compile-time
    ... > offset related to some location (like stack base) somewhere. ... > offset from heap to pi. ... When you allocate an int on the heap, it is allocated at address 1. ... application has a given amount of memory it can use as it wishes. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: run-time vs compile-time
    ... > offset related to some location (like stack base) somewhere. ... > offset from heap to pi. ... When you allocate an int on the heap, it is allocated at address 1. ... application has a given amount of memory it can use as it wishes. ...
    (comp.lang.cpp)
  • Re: Sharing memory between kernelspace and userspace
    ... deallocate, on a totally dynamic basis, userspace ... Let userspace allocate shared memory visible to multiple ... and pass that into the kernel for it to write to. ...
    (Linux-Kernel)