On Wed, Nov 13, 2024 at 11:07:11PM +0800, Yafang Shao wrote: > + For MADV_HUGEPAGE, the readahead size may exceed this setting > + since its granularity is based on the hugepage size. What does this actually mean? Also this whole read_ahead_kb has been a massive pain, can we maybe take a step back and figure out if we still need it at all, and if yes how we can improve it? In times where we support page cache folio sie up to 1M, having a tiny read ahead window is pretty silly, especially as basically all I/O is done through the "readahead" interface anyway.