On Thu, Nov 07, 2024 at 01:55:52PM +0800, Yafang Shao wrote: > > Let's suppose that someone sets read_ahead_kb to 192kB. If the previous > > readahead did 128kB, we now try to align that to 128kB, so we'll readahead > > 256kB which is larger than max. We were only intending to breach the > > 'max' for the MADV_HUGE case, not for all cases. > > In the non-MADV_HUGE case, the order can only be 0, correct? No. The readahead code will use larger orders, depending on the size of reads and how successful readahead is performing.