The PCI hole (also known as the PCI memory hole) is a limitation of 32-bit hardware and 32-bit operating systems that causes a computer to appear to have less memory available than is physically installed. It refers to a region in the upper area of a computer's 32-bit address space (typically between approximately 3 GB and 4 GB) that is reserved for memory-mapped I/O (MMIO) of PCI devices, such as graphics cards, network adapters, and other expansion cards.
Cause
The loss of usable memory occurs because the same 32-bit address space is used for both physical RAM and for communicating with hardware devices. Since 32-bit hardware can address a total of 4 GB of memory (2³² bytes), some of the physical address space must be allocated to PCI device communication rather than to system RAM. As a result, a portion of the installed physical memory becomes hidden and unavailable to the operating system. Which part of physical memory is replaced depends on the system, but it is typically anything above 2.5 to 3.5 GB.
Factors Affecting the Size of the Hole
The amount of system memory that is hidden varies with:
- The motherboard and chipset
- The BIOS configuration
- The total amount of physical memory installed
- The amount of video RAM on graphics cards
- The number and type of PCI/PCIe cards installed
In systems with 4 GB of physical memory and multiple graphics cards with large amounts of video memory, more than 1 GB of memory can be unavailable. On some motherboards, the hole is always at least 1 GB regardless of installed expansion cards.
Physical Address Extension (PAE)
A workaround developed in the Pentium Pro, called Physical Address Extension (PAE), allows certain 32-bit operating systems to access up to 36-bit memory addresses (64 GB total). However, PAE alone does not eliminate the PCI hole — memory addresses and PCI I/O addresses still overlap between the 3rd and 4th gigabyte. On a 4 GB system without additional workarounds, PAE does not recover the ~1 GB of memory overlapped by PCI I/O.
PAE was supported in Windows XP up to Service Pack 1 but was withdrawn in SP2 due to compatibility problems with graphics card drivers. It remains in use by some 32-bit Linux distributions.
Workarounds in 64-bit Systems
Mapping Devices Above 4 GB
Many BIOSes can be configured to map PCI device addresses into the 64-bit address space, eliminating the hole. This requires support from the devices, drivers, and chipset, and typically only works with UEFI boot mode.
Memory Remapping
Some chipsets support "remapping" memory that falls within the PCI hole range to addresses above 4 GB. This is only useful for 64-bit operating systems (or 32-bit systems with PAE). It can usually be enabled in the BIOS setup.
Historical Context
The PCI hole is functionally similar to the conventional memory limits of the early IBM PC (8088 architecture), where the 640 KB barrier arose from reserving address space for ROM and hardware devices. Similar addressing restrictions have appeared repeatedly in computing history as hardware designed for a certain maximum resource level eventually becomes a bottleneck as available resources grow.