Maximum memory allocation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wazurkar@gmail.com

    #1

    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.

  • Victor Bazarov

    #2
    Re: Maximum memory allocation

    wazurkar@gmail. com 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


    Comment

    • george.priv@gmail.com

      #3
      Re: Maximum memory allocation


      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.
      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

      Comment

      • red floyd

        #4
        Re: Maximum memory allocation

        george.priv@gma il.com 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-lit...t.html#faq-5.9 for a
        list of suggested groups.

        Comment

        Working...