The Btrfs file system has received a significant memory management update for the upcoming Linux 7.2 kernel, with patches merged that enable large folios by default and introduce support for huge folios.

Phoronix reported the merge on 16 June 2026, noting the changes among the noteworthy Btrfs feature updates landing in Linux 7.2 for the copy-on-write file system.

Folios are a fundamental unit of memory management in the Linux kernel, representing a contiguous group of physical memory pages. "Large folios" group multiple pages together, allowing the kernel to handle memory more efficiently by reducing overhead per page. "Huge folios" take this further by supporting even larger memory regions. By enabling large folios by default, Btrfs joins a broader trend across the Linux kernel toward adopting this more efficient memory management model, which was first introduced in kernel 5.16 and has since been extended to an increasing number of subsystems. Filesystems such as XFS have already moved in this direction.

For Btrfs users, the shift is expected to benefit I/O throughput, as larger folios can reduce the number of operations needed to move data between storage and memory. The improvements are most likely to be felt in data-intensive workloads such as databases, virtual machine disk images, and large file transfers. The addition of huge folio support extends this potential to workloads that can take advantage of very large memory pages.

Importantly, the change requires no manual configuration. Users upgrading to Linux 7.2 will benefit from large folio support automatically, with the underlying optimisations applied transparently by the kernel.

The Btrfs updates are part of a wider set of file-system changes headed into Linux 7.2. The kernel development cycle continues to advance memory management tooling across multiple subsystems, and Btrfs's adoption of large folios as a default setting marks a notable step in that ongoing effort.


即將推出的 Linux 7.2 核心中,Btrfs 檔案系統迎來了一項重大的記憶體管理更新。已合併的補丁預設啟用了大型 folios,並引入了對巨型 folios 的支援。

Phoronix 於 2026 年 6 月 16 日報導了此次合併,並指出這些變更屬於 Linux 7.2 中針對此一「寫入時複製」檔案系統的一系列值得注意的 Btrfs 功能更新的一部分。

Folios 是 Linux 核心中記憶體管理的基本單位,代表一組連續的實體記憶體頁面。 「大型 folios」將多個頁面組合在一起,使核心能夠透過降低每頁的開銷來更有效率地處理記憶體。 「巨型 folios」則進一步支援更大的記憶體區域。透過預設啟用大型 folios,Btrfs 加入了 Linux 核心內部更廣泛採用此更高效記憶體管理模式的趨勢;此模式最初在核心 5.16 中引入,此後已被擴展至越來越多的子系統。像 XFS 等檔案系統早已朝此方向發展。

對於 Btrfs 使用者而言,此轉變預期將提升 I/O 吞吐量,因為較大的 folios 可以減少在儲存裝置與記憶體之間傳輸資料所需的操作次數。這些改進在資料密集型工作負載中最能感受到,例如資料庫、虛擬機器磁碟映像和大型檔案傳輸。新增的巨型 folio 支援將此潛在效益擴展到可利用極大記憶體頁面的工作負載。

重要的是,此項變更無需手動設定。升級至 Linux 7.2 的使用者將自動受益於大型 folio 支援,其底層的最佳化由核心透明地應用。

這些 Btrfs 更新是即將進入 Linux 7.2 的更廣泛檔案系統變更的一部分。核心的開發週期持續在多個子系統中推進記憶體管理工具,而 Btrfs 採用大型 folios 作為預設設定,標誌著這項持續努力中一個顯著的進展。

新聞來源 / Original News Source