|
|
Log in / Subscribe / Register

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

One thing is not clear after reading the article.

> 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?


to post comments

Sharing memory for shared file extents

Posted May 29, 2022 20:43 UTC (Sun) by willy (subscriber, #9762) [Link]

That's not the intended model. For a shared extent, it would populate the shared cache. For a unique extent, it would populate the inode's page cache.

In any case, I don't think we're going that route.


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