The future of the page cache
The future of the page cache
Posted Jan 26, 2017 0:57 UTC (Thu) by Frogging101 (guest, #113180)Parent article: The future of the page cache
I don't get this at all. How can the page cache be a bad thing? Having a page cache means that you can, for example, recursively grep the kernel source much faster the second time around. Or if you read a big file and then want to read it again, you can do it without waiting for the hard drive every single time. From his message:
>We're rapidly moving away from the world where a page cache is
> needed to give applications decent performance. DAX doesn't have a
> page cache, applications wanting to use high IOPS (hundreds of
> thousands to millions) storage are using direct IO, because the page
> cache just introduces latency, memory usage issues and
> non-deterministic IO behaviour.
> I we try to make the page cache the "one true IO optimisation source"
> then we're screwing ourselves because the incoming IO technologies
> simply don't require it anymore. We need to be ahead of that curve,
> not playing catchup,
What on earth is he talking about? In most scenarios at the user level, direct I/O will *not* be faster than a page cache. Even on an SSD. I use an SSD and I experience the benefit of the page cache every single day. What is this magical incoming storage technology that has faster access times than RAM and will completely supplant everything we use now to the point that we don't need a page cache at all?
If I'm misunderstanding this, please do set me straight. But what I'm reading is very puzzling.
