fsstress: add mwrite/mread into test operation list
PATCH v8 1/2 fsstress: add mwrite/mread into test operation list
mmap as a popular and basic operation, most of softwares use it to access files. More and more customers report bugs related with mmap/munmap and other stress conditions.
So add mmap read/write test into fsstress to increase mmap related stress to reproduce or find more bugs easily.
---
Hi,
V8 add "struct print_flags mmap_flags[]" and "translate_mmap_flags" definition, use it to print more details about mmap flags.
Thanks,
Zorro
configure.ac | 1 + ltp/fsstress.c | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/global.h | 4 ++ 3 files changed, 129 insertions(+)
configure.ac +1 -0
@@ -32,6 +32,7 @@ AC_HEADER_STDC xfs/platform_defs.h \ btrfs/ioctl.h \ cifs/ioctl.h \ + sys/mman.h \ ]) AC_CHECK_HEADERS([xfs/xfs_log_format.h],,,[
ltp/fsstress.c +124 -0
148 lines not on this page · raw message
src/global.h +4 -0
@@ -178,4 +178,8 @@#endif /* HAVE_LINUX_FALLOC_H */ +#ifdef HAVE_SYS_MMAN_H +#include <sys/mman.h> +#endif +#endif /* GLOBAL_H */
Signature · 6 lines
2.7.4 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_majordomo-2Dinfo.html&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=-yMrTV4jriXR7ieyzzjV-QgHBD0UDw8ixoR77aMeAHE&m=iS_NCagRxuuP2DiWMCNXNA2E9qV5B9Bix1B-dlqMb1Q&s=BA28-MS2W4fO6WQxGdzljq34aE_plmKEbxi0d33rUMc&e=
PATCH v8 2/2 xfs/068: update golden output due to new operations in fsstress
xfs/068 use a fixed seed (-s) and number of operations (-n) to run fsstress, to get fixed number of files and directories. But new operations of fsstress will break this "fixed number". So update it, after fsstress get new operations.
--- tests/xfs/068 | 2 -- tests/xfs/068.out | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)
tests/xfs/068 +0 -2
@@ -43,8 +43,6 @@ trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15 _supported_fs xfs _supported_os Linux -# need to ensure new fsstress operations don't perturb expected output -FSSTRESS_AVOID="-f insert=0 $FSSTRESS_AVOID" _create_dumpdir_stress_num 4096 _do_dump_restore
tests/xfs/068.out +1 -1
@@ -22,7 +22,7 @@ xfsrestore: session id: ID xfsrestore: media ID: ID xfsrestore: searching media for directory dump xfsrestore: reading directories -xfsrestore: 495 directories and 1593 entries processed +xfsrestore: 474 directories and 1592 entries processed xfsrestore: directory post-processing xfsrestore: restoring non-directory files xfsrestore: restore complete: SECS seconds elapsed
Signature · 6 lines
2.7.4 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_majordomo-2Dinfo.html&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=-yMrTV4jriXR7ieyzzjV-QgHBD0UDw8ixoR77aMeAHE&m=_2r65LqNtlb6k2CII-boNlegEnQZJ80LPgaIfTDWUEc&s=Y6Yulw2mWSpWxd0qQw6eY5_PqYFsy8JKy9IySo-meB4&e=
Quoted 8 lines · Zorro Lang
mmap as a popular and basic operation, most of softwares use it to access files. More and more customers report bugs related with mmap/munmap and other stress conditions.
So add mmap read/write test into fsstress to increase mmap related stress to reproduce or find more bugs easily.
Signed-off-by Zorro Lang <[email protected]>
generic/270 failed in my release testing because fsstress processes exited early than expected and killall complained no process to kill.
+/tmp/4881.fsstress.bin: no process found
This is because mwrite would trigger SIGBUS if it's writing to a mmap'ed hole and there's no space left on device, so fsstress processes are killed by SIGBUS.
Perhaps SIGBUS should be caught and handled so that fsstress won't be killed. I'll drop this patchset for now.
Thanks,
Eryu
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to [email protected]
More majordomo info at https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_majordomo-2Dinfo.html&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=-yMrTV4jriXR7ieyzzjV-QgHBD0UDw8ixoR77aMeAHE&m=2t9HwWh4wP8emNipoxUCyrfBolWLtO4Wo7L03917srA&s=lkhxQRQxn4bXpG6hIo_G2QfP29bYUIN8QQ9D32aQIEM&e=