Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Process and memory

Process and memory

Scheduled Pinned Locked Moved C#
cssperformancequestionworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    keloth87
    wrote on last edited by
    #1

    How much memory can be consumed for a process that is running in a) 32 bit environment b) 64 bit environment Is it 2G( less than ) per process? If so, is there any reason for such a limitation? Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?

    G L 2 Replies Last reply
    0
    • K keloth87

      How much memory can be consumed for a process that is running in a) 32 bit environment b) 64 bit environment Is it 2G( less than ) per process? If so, is there any reason for such a limitation? Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      Under 32 bit versions of Windows, most of the time processes are limited to 2GB of memory. You can specify the /3GB[^] switch in the BOOT.INI file for Windows XP and Server 2003 to increase that limit to 3GB. For a comparison of 32 and 64 bits, try reading here[^].

      Software Zen: delete this;
      Fold With Us![^]

      1 Reply Last reply
      0
      • K keloth87

        How much memory can be consumed for a process that is running in a) 32 bit environment b) 64 bit environment Is it 2G( less than ) per process? If so, is there any reason for such a limitation? Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        There may be two parts to your question: 1. the amount of logical memory (the virtual memory address space) you can get, that is 2GB (sometimes 3GB) on Win32 (i.e. 50 to 75% of the theoretical 2^32). and a lot more on Win64 (not sure, could be up to 4000 times as much). That is individual to each process. 2. the amount of physical memory (how much real memory your app is allowed to use) your process is actually getting; this depends on other processes are running and doing. The sum over all processes cannot exceeed the amount of physical memory; all virtual excess will be swapped to disk (and may cause significant delays). So if you have two or more processes aiming for lots of memory, and your system is Win32 with 3GB of RAM, each process is likely to get no more than 1GB of physical memory. By minimizing one's main form, the other may get some more. ADDED Here[^] are some more facts for different Windows editions. /ADDED :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups