Sharing memory for shared file extents
Sharing memory for shared file extents
Posted May 29, 2022 4:38 UTC (Sun) by intelfx (subscriber, #130118)Parent article: Sharing memory for shared file extents
> A buffered read would check the page cache for the file and, if the page is not found there, it would calculate the device offset from the read offset in the file and look in the shared-extent cache to see if the page lives there. If not, it would read the data from the disk and add it to the shared-extent cache.
So if I am to understand this literally, every buffered read that is not fulfilled from the page cache will end up in the shared-extent cache. At no point the article talks about reads populating the page cache.
Does this mean that on a long-running system, page cache will only be used for writeback and writethrough caching, and for all other purposes page cache is going to be effectively replaced with the new shared-extent cache?
