PAE(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

🌸 PAE(4) β€” Physical Address Extensions 🌸

okay so bestie, this is PAE(4) from the i386 Kernel Interfaces Manual, and it's literally the glow-up guide for Physical Address Extensions. no cap, it's giving big-memory energy πŸ’–


✨ NAME ✨

PAE β€” Physical Address Extensions


πŸ›  SYNOPSIS πŸ› 

the whole vibe in your kernel config is:

options PAE

🌈 DESCRIPTION 🌈

okay so the PAE option provides support for the physical address extensions capability of the Intel Pentium Pro and above CPUs, and it allows for up to 64 gigabytes of memory to be used in systems capable of supporting it. iconic behavior, honestly πŸ‘‘

with the PAE option, memory above 4 gigabytes is simply added to the general page pool. the system makes no distinction between memory above or below 4 gigabytes, and no specific facility is provided for a process or the kernel to access more memory than they would otherwise be able to access, through a sliding window or otherwise. so yeah, it's not a magic extra-memory window for your process, bestie β€” it's just the page pool doing its thing 🫢


πŸ‘€ SEE ALSO πŸ‘€

go read these next, fr fr:


πŸ•° HISTORY πŸ•°

the PAE option first appeared in FreeBSD 4.9 and FreeBSD 5.1. vintage but still relevant, iykyk πŸŽ€


πŸ‘‘ AUTHORS πŸ‘‘

Jake Burkholder <jake@FreeBSD.org> β€” thank you for your service, king πŸ’…


πŸ’€ BUGS πŸ’€

okay bestie, this is the part where we pay attention, because it's giving real talk:

  • since KLD modules are not compiled with the same options headers that the kernel is compiled with, they must not be loaded into a kernel compiled with the PAE option. like, do not do it. not today, not tomorrow, not ever πŸ™ˆ
  • many devices or their device drivers are not capable of direct memory access to physical addresses above 4 gigabytes. in order to make use of direct memory access IO in a system with more than 4 gigabytes of memory when the PAE option is used, these drivers must use a facility for remapping or substituting physical memory which is not accessible to the device. one such facility is provided by the busdma interface. device drivers which do not account for such devices will not work reliably in a system with more than 4 gigabytes of memory when the PAE option is used, and may cause data corruption. and yes, the PAE kernel configuration file includes the PAE option, and explicitly excludes all device drivers which are known to not work or have not been tested in a system with the PAE option and more than 4 gigabytes of memory. the config file is literally doing vibe checks for you πŸ’€
  • many parameters which determine how memory is used in the kernel are based on the amount of physical memory. the formulas used to determine the values of these parameters for specific memory configurations may not take into account the fact there may be more than 4 gigabytes of memory, and may not scale well to these memory configurations. in particular, it may be necessary to increase the amount of virtual address space available to the kernel, or to reduce the amount of a specific resource that is heavily used, in order to avoid running out of virtual address space. the KVA_PAGES option may be used to increase the kernel virtual address space, and the kern.maxvnodes sysctl(8) may be used to decrease the number of vnodes allowed, an example of a resource that the kernel is likely to overallocate in large memory configurations. for optimal performance and stability it may be necessary to consult the tuning(7) manual page, and make adjustments to the parameters documented there. so like, read the docs, bestie β€” it's giving self-care for your kernel 🌸
⚠️ short version: PAE is powerful, but if you load the wrong KLD modules or trust drivers that can't handle addresses above 4 gigabytes, things can go very not-slay. respect the caveats, periodt.

peace out and stay iconic πŸ’– this page's source/version is Debian, dated April 8, 2003 β€” and that's the cute sign-off from the footer, bestie πŸ’…

πŸ“¦ where this page comes from