[LTP] [PATCH v2] Add test for data integrity over NFS

Cyril Hrubis chrubis@suse.cz
Fri Dec 6 12:43:35 CET 2024


Hi!
> Add NFS test which checks data integrity of random writes into a file,
> with both buffered and direct I/O.
> 
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
> ---
> 
> Changes since v1: Added TST_TIMEOUT
> 
> The lower loop count is necessary because NFS has very large block size,
> up to 256KB on x86_64. The new tests take ~50 minutes to complete in total
> on my laptop. With the default loop count, the TCP tests would all time out.
> 
> The subtest timeout is fully determined by NFS block size and hardcoded
> command line arguments. For TCP tests, it's exactly 8 minutes 32 seconds
> so the whole test script will take no more than 34 minutes 8 seconds.
> The TST_TIMEOUT value is rounded up to 40 minutes to add some margin
> for setup and cleanup.

This is only on a one particular setup though. I bet it would be a few
hours on a hardware with slower I/O.

What about we change the fsplough so that it loops over
tst_remaining_runtime() and pass a runtime instead of number of
iterations?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list