Maximum memory allocation



 DEVELOP > c-Plus-Plus > Maximum memory allocation

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: ""
Date: 29 Aug 2006 11:07:43 AM
Object: Maximum memory allocation
hi,
I am new to c++. how we can see - how much maximum memory we can
allocate through C++ program on Windows XP OS. Though its system
dependant I guess it shouldn't be more than 4GB on 32 bit machine.
.

User: "Victor Bazarov"

Title: Re: Maximum memory allocation 29 Aug 2006 11:12:07 AM
wrote:

I am new to c++. how we can see - how much maximum memory we can
allocate through C++ program on Windows XP OS. Though its system
dependant I guess it shouldn't be more than 4GB on 32 bit machine.

Please ask in a Windows XP OS programming newsgroup. C++ is but
a language, any platform-specific elements, like the amount of memory
available to a program on a particular OS, are discussed elsewhere.
The list of suggested newsgroups is in the FAQ, section 5.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.

User: ""

Title: Re: Maximum memory allocation 29 Aug 2006 03:39:11 PM
wrote:

hi,

I am new to c++. how we can see - how much maximum memory we can
allocate through C++ program on Windows XP OS. Though its system
dependant I guess it shouldn't be more than 4GB on 32 bit machine.

If you keep allocating memory on VM system like XP, you may not even
get memory exception pass allocating over physical memory limits.
System will always try to satisfy the memory request at the expense of
performance. You may keep track of Page file but that will be platform
specific and is OT here. Better approach will be to take another
(critical) look at your algorithm.
George Privalov
.
User: "red floyd"

Title: Re: Maximum memory allocation 29 Aug 2006 04:08:06 PM
wrote:

wazurkar@gmail.com wrote:

hi,

I am new to c++. how we can see - how much maximum memory we can
allocate through C++ program on Windows XP OS. Though its system
dependant I guess it shouldn't be more than 4GB on 32 bit machine.


Yeah, it's OT, but I'm in a forgiving mood this afternoon :-)
It depends on which version of XP/2003/2000 you have.
In general you get 2GB of virtual address space. If the system was
booted with the /3GB flag, you get 3GB. This is for the workstation
versions. Your mileage may vary for the Advanced/Enterprise/Datacenter
versions which support much more physical memory. I believe they still
restrict processes to 2 or 3GB of virtual memory per process, however.
As always, since this is OT, you should take this with a large grain of
salt, and ask in a platform specific newsgroup. See
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9 for a
list of suggested groups.
.



  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER