2 ms·
The readahead is a bit of a readaround when I last checked, as in it'll pull in some stuff before the fault as well. There used to be a sys-wide tunable in /sy
by pengaru 4y ago
The readahead is a bit of a readaround when I last checked, as in it'll pull in some stuff before the fault as well.
There used to be a sys-wide tunable in /sys to control how large an area readahead would extend to, but I'm not seeing it anymore on this 6.1 laptop. I think there's been some work changing stuff to be more clever in this area in recent years. It used to be interesting to make that value small vs. large and see how things like uncached journalctl (heavy mmap user) were affected in terms of performance vs. IO generated.
- EE84M3i 4y agoThe article distinguishes "readaround" from a linear predicted "readahead", but then says the output of blktrace indicates a "potential readahead", which is where I got confused. Does MADV_RANDOM disable both "readahead" and "readaround"?