diff --git a/tests/test_add_osd.sh b/tests/test_add_osd.sh index dbc3e15c8..9e9b57a35 100755 --- a/tests/test_add_osd.sh +++ b/tests/test_add_osd.sh @@ -4,7 +4,7 @@ PG_COUNT=16 . `dirname $0`/run_3osds.sh -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -end_fsync=1 \ -rw=write -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -cluster_log_level=10 diff --git a/tests/test_change_pg_count.sh b/tests/test_change_pg_count.sh index 2928cb48f..5b65db0bb 100755 --- a/tests/test_change_pg_count.sh +++ b/tests/test_change_pg_count.sh @@ -37,7 +37,7 @@ if ! ($ETCDCTL get --prefix /vitastor/pg/state/ --print-value-only | jq -s -e '( format_error "FAILED: 16 PGS NOT UP" fi -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -fsync=1 -rw=write \ -etcd=$ETCD_URL -pool=1 -inode=2 -size=128M -cluster_log_level=10 diff --git a/tests/test_etcd_fail.sh b/tests/test_etcd_fail.sh index a18162d97..665f2bf32 100755 --- a/tests/test_etcd_fail.sh +++ b/tests/test_etcd_fail.sh @@ -5,7 +5,7 @@ ETCD_COUNT=5 . `dirname $0`/run_3osds.sh -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -fsync=1 -rw=randwrite \ -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -cluster_log_level=10 @@ -26,7 +26,7 @@ kill_etcds() kill_etcds & -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4k -direct=1 -iodepth=1 -fsync=1 -rw=randwrite \ -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -cluster_log_level=10 -runtime=30 diff --git a/tests/test_interrupted_rebalance.sh b/tests/test_interrupted_rebalance.sh index cae692589..e951d9e93 100755 --- a/tests/test_interrupted_rebalance.sh +++ b/tests/test_interrupted_rebalance.sh @@ -4,7 +4,7 @@ IMG_SIZE=960 -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=16 -fsync=16 -rw=write \ -etcd=$ETCD_URL -pool=1 -inode=2 -size=${IMG_SIZE}M -cluster_log_level=10 diff --git a/tests/test_move_reappear.sh b/tests/test_move_reappear.sh index 45f2eec6e..406cb617b 100755 --- a/tests/test_move_reappear.sh +++ b/tests/test_move_reappear.sh @@ -21,7 +21,7 @@ if ! ($ETCDCTL get /vitastor/pg/state/1/1 --print-value-only | jq -s -e '(. | le format_error "Failed to start the PG active+degraded" fi -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -fsync=1 -rw=write \ -etcd=$ETCD_URL -pool=1 -inode=2 -size=32M -cluster_log_level=10 diff --git a/tests/test_rm.sh b/tests/test_rm.sh index f6a279096..56200f471 100755 --- a/tests/test_rm.sh +++ b/tests/test_rm.sh @@ -3,7 +3,7 @@ PG_COUNT=16 . `dirname $0`/run_3osds.sh -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 \ -end_fsync=1 -fsync=1 -rw=write -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -cluster_log_level=10 diff --git a/tests/test_snapshot.sh b/tests/test_snapshot.sh index 5ff27cf63..88033735e 100755 --- a/tests/test_snapshot.sh +++ b/tests/test_snapshot.sh @@ -6,7 +6,7 @@ $ETCDCTL put /vitastor/config/inode/1/2 '{"name":"testimg","size":'$((32*1024*1024))'}' -LD_PRELOAD="libasan.so.5 build/src/libfio_vitastor.so" \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -fsync=1 -rw=write \ -etcd=$ETCD_URL -pool=1 -inode=2 -size=32M -cluster_log_level=10 @@ -14,11 +14,11 @@ $ETCDCTL put /vitastor/config/inode/1/2 '{"name":"testimg@0","size":'$((32*1024* $ETCDCTL put /vitastor/config/inode/1/3 '{"parent_id":2,"name":"testimg","size":'$((32*1024*1024))'}' # Preload build/src/libfio_vitastor.so so libasan detects all symbols -LD_PRELOAD="libasan.so.5 build/src/libfio_vitastor.so" \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4k -direct=1 -iodepth=1 -fsync=32 -buffer_pattern=0xdeadface \ -rw=randwrite -etcd=$ETCD_URL -image=testimg -number_ios=1024 -LD_PRELOAD="libasan.so.5 build/src/libfio_vitastor.so" \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -rw=read -etcd=$ETCD_URL -pool=1 -inode=3 -size=32M qemu-img convert -S 4096 -p \ diff --git a/tests/test_splitbrain.sh b/tests/test_splitbrain.sh index 9ac6e6d4a..48bc75d15 100755 --- a/tests/test_splitbrain.sh +++ b/tests/test_splitbrain.sh @@ -2,6 +2,7 @@ OSD_COUNT=2 PG_SIZE=2 +PG_MINSIZE=1 SCHEME=replicated . `dirname $0`/run_3osds.sh @@ -13,7 +14,7 @@ sleep 2 # Write -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4k -direct=1 -iodepth=1 -fsync=1 \ -rw=randwrite -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -runtime=10 -number_ios=100 diff --git a/tests/test_write.sh b/tests/test_write.sh index 6c561497c..09fc6c68a 100755 --- a/tests/test_write.sh +++ b/tests/test_write.sh @@ -7,20 +7,20 @@ # Random writes without immediate_commit were stalling OSDs -LD_PRELOAD=libasan.so.5 \ - fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=124k -direct=1 -numjobs=16 -iodepth=4 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ + fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=68k -direct=1 -numjobs=16 -iodepth=4 \ -rw=randwrite -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -runtime=10 # A lot of parallel syncs was crashing the primary OSD at some point -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4k -direct=1 -numjobs=64 -iodepth=1 -fsync=1 \ -rw=randwrite -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -number_ios=100 -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -fsync=1 -rw=write -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -cluster_log_level=10 -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4k -direct=1 -iodepth=1 -fsync=32 -buffer_pattern=0xdeadface \ -rw=randwrite -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -number_ios=1024 diff --git a/tests/test_write_no_same.sh b/tests/test_write_no_same.sh index 588c3b7c4..3b4953f15 100755 --- a/tests/test_write_no_same.sh +++ b/tests/test_write_no_same.sh @@ -11,7 +11,7 @@ GLOBAL_CONF='{"immediate_commit":"all"}' # Test basic write -LD_PRELOAD=libasan.so.5 \ +LD_PRELOAD="build/src/libfio_vitastor.so" \ fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -rw=write -etcd=$ETCD_URL -pool=1 -inode=1 -size=1G -cluster_log_level=10 format_green OK