Re: [RFC PATCH 13/18] mm/filemap: store the end of a read in f_ra only when it changes

From: Linus Torvalds

Date: Tue Oct 20 2026 - 17:21:29 EST


On Mon, 19 Oct 2026 at 05:50, Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx> wrote:
>
> filemap_read() writes the end of every read to file->f_ra.prev_pos.
> Threads that read through one open file all write that cache line, on
> every read. The value often stays the same, as for reads that start at
> the same offset each time.

This seems silly. That "often stays the same" is only true for the
pointless benchmark, no?

I don't think it's ever true in any real load.

Linus