Skip to content

Commit

Permalink
DAOS-13433 test: increase timeout for dfuse/caching_check (#13355)
Browse files Browse the repository at this point in the history
Increase timeout for dfuse/caching_check.py and add more logging.

Signed-off-by: Dalton Bohning <[email protected]>
  • Loading branch information
daltonbohning authored Dec 1, 2023
1 parent 943cc2c commit 93da479
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/tests/ftest/dfuse/caching_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,34 @@ def test_dfuse_caching_check(self):
# update flag
self.ior_cmd.update_params(flags=flags[0])

# run ior to write to the dfuse mount point
self.log_step('Write to the dfuse mount point')
self.run_ior_with_pool(fail_on_warning=False, stop_dfuse=False)

# update ior flag to read
self.log_step('Get baseline read performance from dfuse with caching disabled')
self.ior_cmd.update_params(flags=flags[1])
# run ior to read and store the read performance
base_read_arr = []
out = self.run_ior_with_pool(fail_on_warning=False, stop_dfuse=False)
base_read_arr.append(IorCommand.get_ior_metrics(out))
# run ior again to read with caching disabled and store performance
out = self.run_ior_with_pool(fail_on_warning=False, stop_dfuse=False)
base_read_arr.append(IorCommand.get_ior_metrics(out))

# the index of max_mib
max_mib = IorMetrics.MAX_MIB

# unmount dfuse and mount again with caching enabled
self.log_step('Re-mount dfuse with caching enabled')
self.dfuse.unmount(tries=1)
self.dfuse.update_params(disable_caching=False)
self.dfuse.run()
# run ior to obtain first read performance after mount

self.log_step('Get first read performance with caching enabled')
out = self.run_ior_with_pool(fail_on_warning=False, stop_dfuse=False)
base_read_arr.append(IorCommand.get_ior_metrics(out))
# run ior again to obtain second read performance with caching enabled
# second read should be multiple times greater than first read

self.log_step('Get cached read performance')
out = self.run_ior_with_pool(fail_on_warning=False)
with_caching = IorCommand.get_ior_metrics(out)
# verify cached read performance is multiple times greater than without caching

self.log_step('Verify cached read performance is greater than first read')
# Log all the values first, then do the assert so that failures can be checked easily.
for base_read in base_read_arr:
actual_change = percent_change(base_read[0][max_mib], with_caching[0][max_mib])
Expand Down
3 changes: 1 addition & 2 deletions src/tests/ftest/dfuse/caching_check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hosts:
test_servers: 3
test_clients: 1
timeout: 240
timeout: 300
server_config:
name: daos_server
engines_per_host: 1
Expand All @@ -11,7 +11,6 @@ server_config:
storage: auto
pool:
size: 50%
control_method: dmg
container:
type: POSIX
control_method: daos
Expand Down

0 comments on commit 93da479

Please sign in to comment.