6

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?

joeforker
  • 2,349
  • 4
  • 25
  • 34

4 Answers4

7

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.

Sam Cogan
  • 38,158
  • 6
  • 77
  • 113
6

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

WerkkreW
  • 5,879
  • 3
  • 23
  • 32
1

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.

Dennis Williamson
  • 60,515
  • 14
  • 113
  • 148
JamesR
  • 1,061
  • 5
  • 6
0

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)