```
A patch awaiting review in the Linux kernel development cycle could shave roughly 20% off the time the kernel spends initialising PCIe devices during boot, according to Phoronix, which reported the proposed change. The improvement would come not from new hardware support but from retiring a decades-old access method that serialises configuration reads and writes even when a faster path is already available.
The change targets how the kernel talks to PCI Express devices during early initialisation. Today, Linux still performs configuration accesses to the first 256 bytes of a device's configuration space using legacy I/O port operations — a mechanism inherited from the original PCI specification. Those I/O-based accesses must be serialised: only one can proceed at a time, so the kernel works through them sequentially. The result is a serialised bottleneck that plays out on every boot, multiplied across every PCIe device on the system.
MMCONFIG, the memory-mapped configuration mechanism widely available on x86 platforms, offers a way around the bottleneck. It maps a device's configuration space into system memory, allowing the kernel to issue ordinary memory reads and writes instead of trapped I/O port operations — and memory accesses do not carry the same serialisation penalty. In principle, the capability is already there on most modern machines. In practice, the kernel continues to fall back to the legacy route for the lower 256 bytes of configuration space.
The pending patch would switch those accesses over to MMCONFIG, letting the kernel initialise PCIe devices concurrently rather than one at a time. Phoronix puts the resulting saving at up to around 20% of PCIe initialisation time, though the real-world figure will vary by system — machines with many PCIe devices, or those where configuration-space probing dominates early boot, stand to gain the most.
It is worth emphasising that this is a proposed change, not a landed one. The patch remains pending, and no timeline for merging has been reported. As with any kernel change, it will need to survive review and testing before it reaches distribution kernels.
Details such as the patch's author, the mailing list venue where it was submitted, and the target merge window were not specified in the Phoronix report. It is likewise unclear whether the change is confined to x86 or applies to architectures more broadly.
Why it matters: the story is less a breakthrough than a piece of housekeeping — cleaning up legacy behaviour to unlock capability the platform already ships with. For anyone running large fleets of Linux servers, boot time is not a cosmetic metric. Faster initialisation translates directly into quicker reboots after maintenance windows, faster node recycling in cloud and container environments, and reduced downtime during capacity scaling. Small percentage gains at boot compound across thousands of machines.
For Hong Kong IT teams operating server or boot-efficiency-sensitive deployments, the change is a reminder that meaningful performance work in the kernel often comes from removing inherited constraints rather than adding new features. The full details are available in the Phoronix report; until the patch is merged, administrators should treat the ~20% figure as an early projection rather than a committed improvement.
```
據 Phoronix 報導,Linux 核心開發週期中有一項待審查的補丁,可能將核心在開機期間初始化 PCIe 裝置所花費的時間縮短約 20%。這項改進並非來自新增硬件支援,而是透過淘汰一套有數十年歷史的存取方法而達成——該方法即使在已有更快路徑可用的情況下,仍會將配置讀取與寫入操作逐一串行化。
該改動針對的是核心在早期初始化階段與 PCIe 裝置通訊的方式。目前,Linux 對裝置配置空間首 256 位元組的配置存取,仍然使用傳統 I/O port 操作——這一機制源自最初的 PCI 規範。這些基於 I/O 的存取必須串行化:同一時間只能進行一項操作,因此核心只能逐一順序處理。結果是每次開機都會出現串行化瓶頸,並在系統中每一項 PCIe 裝置上重複出現。
MMCONFIG 是在 x86 平台上廣泛可用的 memory-mapped 配置機制,提供了繞過該瓶頸的途徑。它將裝置的配置空間映射到系統記憶體中,使核心可以發出一般的記憶體讀寫操作,而非會陷入 trap 的 I/O port 操作——而記憶體存取並沒有同樣的串行化懲罰。原則上,大多數現代電腦已具備這項功能。但實際上,核心對配置空間下層 256 位元組的存取,仍然一直回退至傳統路徑。
這項待審補丁將把上述存取切換至 MMCONFIG,讓核心可以同時並行初始化多個 PCIe 裝置,而非逐一處理。Phoronix 估計此舉最多可節省約 20% 的 PCIe 初始化時間,不過實際數字會因系統而異——擁有大量 PCIe 裝置的機器,或配置空間探測主導早期開機過程的系統,獲益最大。
有必要強調,這是一項建議中的改動,而非已落實的改動。補丁仍處於待審狀態,目前未有報導披露合併的時間表。與任何核心改動一樣,補丁必須通過審查及測試,才能進入各發行版的核心。
Phoronix 的報導並未註明補丁作者、提交所用的郵件列表平台,以及目標 merge window 等細節。該改動究竟僅限於 x86 架構,還是適用於更廣泛的處理器架構,同樣尚不明朗。
為何重要:這則新聞與其說是突破,不如說是一項整理工作——清理遺留行為,以釋出平台本身已具備的功能。對於任何執行大規模 Linux 伺服器陣列的用戶而言,開機時間並非門面指標。更快的初始化直接意味著維護窗口後更快的重啟、雲端及容器環境中更快的節點回收,以及擴容時更短的停機時間。開機時百分之幾的小幅提升,在數千台機器上累積起來相當可觀。
對於香港執行伺服器或對開機效率敏感的部署的 IT 團隊而言,這項改動提醒大家:核心中真正有意義的效能提升,往往來自移除繼承下來的限制,而非增添新功能。完整詳情可參閱 Phoronix 的報導;在補丁正式合併之前,管理員應將約 20% 這一數字視為早期估算,而非已承諾的改進。
