diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2019-11-28 11:07:15 +0100 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2019-11-28 11:07:15 +0100 |
commit | 23fc3d4e1960b86369dcc0ce721df7c798253e77 (patch) | |
tree | 3e002b2f35ed82ce4c426a4b08dcb96b4ec0ba81 | |
parent | a5e554634708f0167076c967698c522d631e29f0 (diff) |
bin:disk_read_performance_test: Set mdadm (sw raid) threshold to 500MB/s
-rwxr-xr-x | bin/disk_read_performance_test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/disk_read_performance_test b/bin/disk_read_performance_test index 1310621..fec27c2 100755 --- a/bin/disk_read_performance_test +++ b/bin/disk_read_performance_test @@ -16,6 +16,9 @@ for disk in $@; do if [[ $dev_path =~ dm ]]; then disk_type="devmapper" fi + if [[ $dev_path =~ md ]]; then + disk_type="mdadm" + fi if [[ $dev_path =~ nvme ]]; then disk_type="nvme" fi @@ -46,6 +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;; * ) MIN_BUF_READ=$DEFAULT_BUF_READ;; esac echo "INFO: $disk_type: Using $MIN_BUF_READ MB/sec as the minimum throughput speed" |