From 946d4c3e927b4e4c354dcc91e26d37b6cfc664ac Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Mon, 17 Feb 2020 12:54:14 +0100 Subject: fix storage_test so it sees partitions on RAIDs --- bin/storage_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/storage_test.py b/bin/storage_test.py index 4f363bc..1481a0d 100755 --- a/bin/storage_test.py +++ b/bin/storage_test.py @@ -30,7 +30,7 @@ def find_largest_partition(device): out = sp.check_output(cmd, shell=True) blk_devs = [BlkDev(*p.strip().split()) for p in out.decode(sys.stdout.encoding).splitlines()] - blk_devs[:] = [bd for bd in blk_devs if bd.type == 'part'] + blk_devs[:] = [bd for bd in blk_devs if bd.type in ('part', 'md')] if not blk_devs: raise SystemExit( 'ERROR: No partitions found on device {}'.format(device)) -- cgit v1.2.3 From 8db323dff71d83d64b5b3e53e7700c1399dd62b1 Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Tue, 18 Feb 2020 23:55:16 +0100 Subject: set threshold for disk_read test to 80MB/s for RAIDs --- bin/disk_read_performance_test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/disk_read_performance_test b/bin/disk_read_performance_test index fec27c2..8d6d6a0 100755 --- a/bin/disk_read_performance_test +++ b/bin/disk_read_performance_test @@ -49,7 +49,7 @@ for disk in $@; do "ide" ) MIN_BUF_READ=40;; "mmc" ) MIN_BUF_READ=$DEFAULT_BUF_READ;; "nvme" ) MIN_BUF_READ=200;; - "mdadm" ) MIN_BUF_READ=500;; + "mdadm" ) MIN_BUF_READ=80;; * ) MIN_BUF_READ=$DEFAULT_BUF_READ;; esac echo "INFO: $disk_type: Using $MIN_BUF_READ MB/sec as the minimum throughput speed" -- cgit v1.2.3