Reduce trim min size even lower for tests to reduce flakiness
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Paul Dagnelie <pcd@delphix.com> Closes #15315
This commit is contained in:
parent
a59e294e21
commit
ec994486b1
|
@ -60,7 +60,7 @@ log_must set_tunable64 VDEV_MIN_MS_COUNT 64
|
||||||
|
|
||||||
# Minimum trim size is decreased to verify all trim sizes.
|
# Minimum trim size is decreased to verify all trim sizes.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
log_must mkdir "$TESTDIR"
|
log_must mkdir "$TESTDIR"
|
||||||
log_must truncate -s $LARGESIZE "$LARGEFILE"
|
log_must truncate -s $LARGESIZE "$LARGEFILE"
|
||||||
|
|
|
@ -52,7 +52,7 @@ LARGEFILE="$TESTDIR/largefile"
|
||||||
|
|
||||||
# Reduce trim size to allow for tighter tolerance below when checking.
|
# Reduce trim size to allow for tighter tolerance below when checking.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
log_must mkdir "$TESTDIR"
|
log_must mkdir "$TESTDIR"
|
||||||
log_must truncate -s $LARGESIZE "$LARGEFILE"
|
log_must truncate -s $LARGESIZE "$LARGEFILE"
|
||||||
|
|
|
@ -57,7 +57,7 @@ log_onexit cleanup
|
||||||
|
|
||||||
# Minimum trim size is decreased to verify all trim sizes.
|
# Minimum trim size is decreased to verify all trim sizes.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
||||||
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
||||||
|
|
|
@ -54,7 +54,7 @@ log_onexit cleanup
|
||||||
|
|
||||||
# Minimum trim size is decreased to verify all trim sizes.
|
# Minimum trim size is decreased to verify all trim sizes.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
||||||
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
||||||
|
|
|
@ -55,7 +55,7 @@ log_onexit cleanup
|
||||||
|
|
||||||
# Minimum trim size is decreased to verify all trim sizes.
|
# Minimum trim size is decreased to verify all trim sizes.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
||||||
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
||||||
|
|
|
@ -57,7 +57,7 @@ log_onexit cleanup
|
||||||
|
|
||||||
# Minimum trim size is decreased to verify all trim sizes.
|
# Minimum trim size is decreased to verify all trim sizes.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
||||||
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
||||||
|
|
|
@ -54,7 +54,7 @@ log_onexit cleanup
|
||||||
|
|
||||||
# Minimum trim size is decreased to verify all trim sizes.
|
# Minimum trim size is decreased to verify all trim sizes.
|
||||||
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
typeset trim_extent_bytes_min=$(get_tunable TRIM_EXTENT_BYTES_MIN)
|
||||||
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 4096
|
log_must set_tunable64 TRIM_EXTENT_BYTES_MIN 512
|
||||||
|
|
||||||
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
# Reduced TRIM_TXG_BATCH to make trimming more frequent.
|
||||||
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
typeset trim_txg_batch=$(get_tunable TRIM_TXG_BATCH)
|
||||||
|
|
Loading…
Reference in New Issue