[LTP] [PATCH] syscalls/readahead02: Wait for the readahead()

Jan Stancek jstancek@redhat.com
Wed Nov 26 08:44:44 CET 2025


On Mon, Nov 24, 2025 at 2:13 PM Cyril Hrubis <chrubis@suse.cz> wrote:
>
> The test did request readahead on a file and then immediatelly tried to
> access the data and measure if readahead saved I/O or not. The problem
> is that we need to wait a bit for the readahead to happen, especially on
> hardware with slower I/O speeds. So the test now waits a bit for the
> readahead to start and the loops for a while, with a short usleeps,
> until retires are reached or until page cache stops to grow.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

Acked-by: Jan Stancek <jstancek@redhat.com>



More information about the ltp mailing list