0

By default in 32 bit system, 2 GB is allocated to user space programs and 2GB for kernel space programs.

Now, if we add /3GB option in boot.ini user and kernel space get respectively 3 and 1GB.

We are using one server which is running MS Windows 2003 32bit with /3GB option, /PAE option with 4GB RAM and 4GB page file, how these memory are divided in user and kernel space processes?

3
  • What OS are you talking about? I assume some variant of Windows? Please edit your question and add this info.
    – Sven
    Jan 2, 2013 at 15:17
  • 1
    PAE is a physical memory setting. It has nothing to do with virtual memory. (The 2GB allocated to user space programs and the 2GB for kernel space is virtual memory. It applies even if you only have 1GB of physical memory.) Jan 2, 2013 at 22:30
  • David, thank you! That is the single most common error new Windows admins make when learning about virtual memory. Heck, half of them don't even understand the difference between physical and virtual memory. All Windows admins should be required to read Mark Russinovich's blog series on Windows memory management. blogs.technet.com/b/markrussinovich/archive/2008/07/21/…
    – John Homer
    Jan 3, 2013 at 17:38

1 Answer 1

5

/PAE doesn't change the user and kernel virtual address space assignments that were changed by using /3GB, but, you should not use /3GB and /PAE at the same time. Per Microsoft:

When the physical RAM in the system exceeds 16 GB and the /3GB switch is used, the operating system will ignore the additional RAM until the /3GB switch is removed. This is because of the increased size of the kernel required to support more Page Table Entries.

You need as much kernel memory space as possible (more than 1GB) just for the page table entries to describe more than 16GB of memory.

Edit: Also per Microsoft:

The conflict is when we use the /3GB with /PAE simultaneously. When we are using PAE the OS needs to manage lot of resources which needs more memory than 1 GB. So certain operations have performance issue and then fail intermittently.

1
  • I once made the mistake of enabling /3GB and /PAE at the same time on a system with > 16 GB. That definitely teached me to never do it again.
    – Massimo
    Jan 3, 2013 at 7:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .