Abililty to turn off pagecache
Abililty to turn off pagecache
Posted Jun 11, 2024 18:05 UTC (Tue) by acarno (subscriber, #123476)In reply to: Abililty to turn off pagecache by snajpa
Parent article: Dropping the page cache for filesystems
I guess I could envision useful scenarios from a security perspective, but generally this seems like a bad idea. Turning off the page cache entirely for the filesystem would imply all read / write operations have to go directly through disk, which is orders of magnitude slower (generally) than DRAM. A quick bit of searching shows the O_DIRECT flag attempts to minimize the involvement of the page cache (though not completely avoiding it).
Out of curiosity, what use cases would you find this useful for?