View Single Post
Old 07-02-2008, 01:47 PM   #30 (permalink)
Paul Adams
MSFT
 
Paul Adams's Avatar
 
Join Date: Jul 2003
Location: %systemroot%
Posts: 1,835
Thanks: 11
Thanked 50 Times in 41 Posts
Paul Adams's system
Re: What happens with 4Gb RAM under XP?

Originally Posted by Agent View Post
...the /PAE switch is not used in XP-SP2...
Actually, PAE is enabled by default in XP SP2, this is because DEP is turned on and requires PAE.
If you check the properties of My Computer you should see "Physical Address Extension" mentioned.

I set up a virtual machine in Hyper-V, gave it 1GB of RAM and installed XP SP2 to verify this - here is the kernel used according to the debugger:

lkd> lmvm nt
start end module name
804d7000 806cd280 nt
Loaded symbol image file: ntkrnlpa.exe


The "pa" bit indicates a PAE kernel.


I added a second boot option in BOOT.INI with "/noexecute=alwaysoff" and checked again - system properties no longer reads "Physical Address Extension" and the debugger shows a different kernel:

lkd> lmvm nt
start end module name
804d7000 806eb100 nt
Loaded symbol image file: ntoskrnl.exe


ntoskrnl = uni-processor, non-PAE kernel.


Next I added a 3rd boot option with "/noexecute=alwaysoff /pae" - back to "Physical Address Extension" visible on My Computer properties, and the debugger says:

lkd> lmvm nt
start end module name
804d7000 806cd280 nt
Loaded symbol image file: ntkrnlpa.exe



If it were a multi-processor kernel with PAE enabled, the nt module is ntkrpamp.exe ("pa" + "mp").

~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
[ Personal Website ] - [ Technet Blog ]
Main PC: Win7 x64 / Asus P6T Deluxe / Core i7 920 / 12GB DDR3 / 120GB SSD / GeForce GTX285
Server: W2K8 R2 / Asus P5K Premium / Core2 E6750 / 8GB DDR2 / 150GB, 500GB SATA2 / GeForce 9800GTX
HTPC: Win7 x64 / Asus P5E-VM HDMI / Core2 E6850 / 4GB DDR2 / 400GB SATA2 / ATI 3650 Silent
Paul Adams is offline   Reply With Quote