Skip to content

Commit e1983c5

Browse files
committed
qa/suites/nvmeof/thrasher: use 120 subsystems and 8 ns each
For tharsher test: 1. Run it on 120 subsystems with 8 namespaces each 2. Run FIO for 20 mins (instead of 15mins) 2. Run FIO for few randomly picked devices (using `--random_devices 200`) Signed-off-by: Vallari Agrawal <[email protected]>
1 parent c0ca0eb commit e1983c5

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

qa/suites/nvmeof/thrash/gateway-initiator-setup/3-subsys-60-namespace.yaml renamed to qa/suites/nvmeof/thrash/gateway-initiator-setup/120-subsys-8-namespace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ tasks:
66
pool_name: mypool
77
image_name_prefix: myimage
88
gateway_config:
9-
subsystems_count: 3
10-
namespaces_count: 20 # each subsystem
9+
subsystems_count: 120
10+
namespaces_count: 8 # each subsystem
1111
cli_image: quay.io/ceph/nvmeof-cli:latest
1212

1313
- cephadm.wait_for_service:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
tasks:
22
- workunit:
33
no_coverage_and_limits: true
4-
timeout: 30m
4+
timeout: 60m
55
clients:
66
client.0:
7-
- nvmeof/fio_test.sh
7+
- nvmeof/fio_test.sh --random_devices 200
88
env:
99
RBD_POOL: mypool
1010
IOSTAT_INTERVAL: '10'
11-
RUNTIME: '900'
11+
RUNTIME: '1200'

qa/workunits/nvmeof/fio_test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sudo yum -y install sysstat
55

66
namespace_range_start=
77
namespace_range_end=
8+
random_devices_count=
89
rbd_iostat=false
910

1011
while [[ $# -gt 0 ]]; do
@@ -17,6 +18,10 @@ while [[ $# -gt 0 ]]; do
1718
namespace_range_end=$2
1819
shift 2
1920
;;
21+
--random_devices)
22+
random_devices_count=$2
23+
shift 2
24+
;;
2025
--rbd_iostat)
2126
rbd_iostat=true
2227
shift
@@ -37,6 +42,8 @@ all_drives_list=$(sudo nvme list --output-format=json |
3742
# run on first 3 namespaces here.
3843
if [ "$namespace_range_start" ] || [ "$namespace_range_end" ]; then
3944
selected_drives=$(echo "${all_drives_list[@]}" | sed -n "${namespace_range_start},${namespace_range_end}p")
45+
elif [ "$random_devices_count" ]; then
46+
selected_drives=$(echo "${all_drives_list[@]}" | shuf -n $random_devices_count)
4047
else
4148
selected_drives="${all_drives_list[@]}"
4249
fi

0 commit comments

Comments
 (0)