|
|
Log in / Subscribe / Register

Writable THPs

Writable THPs

Posted Apr 10, 2026 15:12 UTC (Fri) by willy (subscriber, #9762)
Parent article: Removing read-only transparent huge pages for the page cache

I don't think Song Liu ever intended to make filesystem-oblivious writable THPs work. The intent (at least from my side!) was always to make filesystems support arbitrary-sized "pages" ... which turned into folios when it became apparent that we needed a way to distinguish PAGE_SIZE pages from allocated chunks of memory. So I think it's fair to see "folios now exist" as being the fulfillment of "writable huge pages".

Song's patches were an important part of the process of getting folios going. It's not the order I would have done it in, but since Song had already done it, it got some of the infrastructure in place that we needed. We cooperated on this work, after the session at the 2019 LSFMM (https://lwn.net/Articles/789159/) we started a fortnightly phone call which continues to this day (although Song no longer participates).

By the way, the page cache was already aware of THPs before Song's patches. shmem supported THPs. It was really filesystems that were (and remain!) the limiting factor.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds