![]() |
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, |
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? |
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). |
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, |
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.