[LTP] [PATCH] syscalls/readahead02: Wait for the readahead()
Li Wang
liwang@redhat.com
Wed Nov 26 08:37:53 CET 2025
On Mon, Nov 24, 2025 at 9: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>
>
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
More information about the ltp
mailing list