linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.3k stars 1.01k forks source link

Fix preadv203 for fast storage (NVME) #912

Open pevik opened 2 years ago

pevik commented 2 years ago

preadv203 fails when storage is fast:

preadv203.c:145: TINFO: Number of full_reads 2920600, short reads 0, zero len reads 0, EAGAIN(s) 0
preadv203.c:180: TINFO: Number of writes 3535680
preadv203.c:225: TFAIL: Haven't got EAGAIN

Test pass a flag to the pread2() syscall not to wait for storage and return without any data in the case that the call would have to sleep in kernel. Then it tries to saturate the I/O so that some of the requests return will return without data.

However the test currently does not scale that well. On very fast NVME it tends to fail like this. We have to either figure out how to saturate the bus better or change it not to report a failures on fast devices.

coolgw commented 1 year ago

Is there any easy way reproduce this issue?