From 4b83891db095b56ed01abe520aa72aa0c8ece574 Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Tue, 9 Sep 2025 13:42:01 -0700 Subject: [PATCH] ZTS: Fix fault_limits timeouts fault_limits would often hit the 10min timeout and be killed on Fedora 41-42. Investigation showed that the 'fill_fs' portion of the test, which would fill the pool with junk data before vdev replacement, was writing highly compressible data (~126x), which would have taxed the CPUs, potentially causing the timeout. The fix is to write random data and reduce the number of writes. This has an added benefit that more real data being is written to the pool (~1GB) vs the old way (~300-400MB). It also speeds up the test. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Reviewed-by: Paul Dagnelie Signed-off-by: Tony Hutter Closes #17709 --- tests/zfs-tests/tests/functional/fault/fault_limits.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zfs-tests/tests/functional/fault/fault_limits.ksh b/tests/zfs-tests/tests/functional/fault/fault_limits.ksh index 1b3310edb..45b041503 100755 --- a/tests/zfs-tests/tests/functional/fault/fault_limits.ksh +++ b/tests/zfs-tests/tests/functional/fault/fault_limits.ksh @@ -67,7 +67,7 @@ log_must zpool create -f ${TESTPOOL} raidz${PARITY} ${disks[1..$((VDEV_CNT - 1)) # Add some data to the pool log_must zfs create $TESTPOOL/fs MNTPOINT="$(get_prop mountpoint $TESTPOOL/fs)" -log_must fill_fs $MNTPOINT $PARITY 200 32768 1000 Z +log_must fill_fs $MNTPOINT $PARITY 200 32768 100 R sync_pool $TESTPOOL # Replace the last child vdev to form a replacing vdev