Will I benefit from the 32-bit PAE-enabled Linux kernel over the 32-bit non-PAE kernel in a server that has exactly 4GB of ram (and 'pae' in the cpuid flags)? Will the system be able to use all 4GB of ram without a PAE kernel, or will some of the memory go idle?
4 Answers
Yes, you will need to enable PAE to see all 4GB of RAM. Whilst a 32Bit CPU should in theory be able to use up to 4GB of RAM without PAE, the problem with this is that it requires all 32bits of the address bus to use the 4GB, leaving nothing left for things like graphics cards. So with Non PAE systems, you will get less than 4GB. Enabling PAE will get round this.
- 38,158
- 6
- 77
- 113
-
1It would be excellent to get a source on this assertion... – supervacuo May 31 '12 at 05:51
You would need the PAE enabled kernel to see the 4gb of RAM, yes. Although there is a lot of debate as to seeing the additional memory through hacks like PAE provides any advantage.
Actually Jeff Atwood made a great post about this very issue: Dude where's my RAM
- 5,879
- 3
- 23
- 32
-
1+1 for the tried-and-true "Google the Joel/Jeff archives" s*.com answering technique... – joeforker May 14 '09 at 01:16
I assume you want to "reclaim" the lost memory that devices use?
Now remember, physical memory is not the same as virtual address space. That is, each individual program will still only be able to use 2GB. However, more of them may be able to run without swapping.
Also remember that PAE addressing takes more page table/page directory bookkeeping, so you lose some memory to that. Probably much less than the devices used to take.
- 60,515
- 14
- 113
- 148
- 1,061
- 5
- 6
Yes, you will be able to use most if not all of the 4GB of RAM. See this Stackoverflow posting for a more in-depth discussion of PAE (amongst other things)
- 8,810
- 2
- 31
- 52