Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   C++ memory limit ? (http://www.velocityreviews.com/forums/t459766-c-memory-limit.html)

scavenger 01-11-2007 01:03 AM

C++ memory limit ?
 

I am unable to allocate more than 2.4G of memory for a C++ program
though I have aprox. 4G of physical memory. I am using g++ on a RH9
box.

thanks,


Simon G Best 01-11-2007 02:05 AM

Re: C++ memory limit ?
 
scavenger wrote:
> I am unable to allocate more than 2.4G of memory for a C++ program
> though I have aprox. 4G of physical memory. I am using g++ on a RH9
> box.
>
> thanks,


You're welcome.

--
Simon G Best
What happens if I mention Leader Kibo in my .signature?

Larry Smith 01-11-2007 02:33 AM

Re: C++ memory limit ?
 
Simon G Best wrote:
> scavenger wrote:
>> I am unable to allocate more than 2.4G of memory for a C++ program
>> though I have aprox. 4G of physical memory. I am using g++ on a RH9
>> box.
>>
>> thanks,

>
> You're welcome.
>


Ask in a Linux newsgroup.

Memory allocation details are Operating System specific.

Most Unix/Linux systems have a per-process memory allocation
limit to prevent a single program from using all of the
resources (thereby starving other running programs).

ana.7.non@hotmail.com 01-11-2007 04:48 AM

Re: C++ memory limit ?
 


On Jan 11, 4:03 am, "scavenger" <amalshe...@gmail.com> wrote:
> I am unable to allocate more than 2.4G of memory for a C++ program
> though I have aprox. 4G of physical memory. I am using g++ on a RH9
> box.
>
> thanks,



=?iso-8859-1?q?Erik_Wikstr=F6m?= 01-11-2007 07:20 AM

Re: C++ memory limit ?
 
On Jan 11, 2:03 am, "scavenger" <amalshe...@gmail.com> wrote:
> I am unable to allocate more than 2.4G of memory for a C++ program
> though I have aprox. 4G of physical memory. I am using g++ on a RH9
> box.


As others have pointed out, this is platform-dependent but 2.9 seems
about right. Most Linuxes split the address-space into 1GB for kernel
and 3GB for the app, Windows usually split it 2/2GB. Notice that those
3GB is the total amount available to the app not how much you can
allocate, some of it goes to storing the actual application and such.

--
Erik Wikström



All times are GMT. The time now is 03:00 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57