Maximum memory allocation

Discussion in 'C++' started by wazurkar@gmail.com, Aug 29, 2006.

  1. Guest

    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.
     
    , Aug 29, 2006
    #1
    1. Advertisements

  2. 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
     
    Victor Bazarov, Aug 29, 2006
    #2
    1. Advertisements

  3. Guest

    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
     
    , Aug 29, 2006
    #3
  4. red floyd Guest

    wrote:
    > 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.
     
    red floyd, Aug 29, 2006
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NetKev

    maximum memory limit?

    NetKev, Oct 3, 2006, in forum: Java
    Replies:
    1
    Views:
    1,085
    Baby Lion
    Oct 4, 2006
  2. Evangelista Sami

    maximum possible allocation

    Evangelista Sami, Jul 16, 2004, in forum: C Programming
    Replies:
    5
    Views:
    578
    Dan Pop
    Jul 19, 2004
  3. s.subbarayan

    Dynamic memory allocation and memory leak...

    s.subbarayan, Mar 18, 2005, in forum: C Programming
    Replies:
    10
    Views:
    983
    Eric Sosman
    Mar 22, 2005
  4. Rodrigo Dominguez

    memory allocation and freeing memory

    Rodrigo Dominguez, Jun 13, 2005, in forum: C Programming
    Replies:
    11
    Views:
    809
    Jean-Claude Arbaut
    Jun 15, 2005
  5. Ken
    Replies:
    24
    Views:
    4,316
    Ben Bacarisse
    Nov 30, 2006
  6. chris
    Replies:
    6
    Views:
    1,188
    chris
    Oct 28, 2005
  7. Bjarke Hammersholt Roune
    Replies:
    14
    Views:
    1,423
    Bjarke Hammersholt Roune
    Mar 6, 2011
  8. phanhuyich
    Replies:
    4
    Views:
    530
Loading...