-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAOS-12974 test: nvme/pool_capacity.py - Use threads to create contai… #14126
Conversation
…ners The test creates 50 containers for each of the 10 pools 20 times (10 x 50 x 20). Creating many containers serially takes significant amount of time, so use threads to create the containers in parallel. Tested the speed up of run_test_create_delete() (Just this method. Not the entire test) with 3 x 50 x 3 and took 732 sec in serial, but only 261 sec in parallel. Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: test_nvme_pool_capacity Skip-func-hw-test-medium-md-on-ssd: false Signed-off-by: Makito Kano <[email protected]>
Ticket title is 'ftest/nvme/pool_capacity.py claims to create containers but does not' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. For further improvement, have we considered whether we really need to run in a loop 20 times?
https://github.com/daos-stack/daos/blob/ff067d653b5e2f570b78e0f04ec93a5acf37ef5c/src/tests/ftest/nvme/pool_capacity.py#L229C14-L229C36
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: test_nvme_pool_capacity Skip-func-hw-test-medium-md-on-ssd: false
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: test_nvme_pool_capacity Skip-func-hw-test-medium-md-on-ssd: false Signed-off-by: Makito Kano <[email protected]>
I reduced the iteration to 2 and the test time was reduced from 60 min to 16 min. |
Can we reduce the test timeout then? |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: test_nvme_pool_capacity Skip-func-hw-test-medium-md-on-ssd: false
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: test_nvme_pool_capacity Skip-func-hw-test-medium-md-on-ssd: false Signed-off-by: Makito Kano <[email protected]>
Done |
…ners
The test creates 50 containers for each of the 10 pools 20 times (10 x 50 x 20). Creating many containers serially takes significant amount of time, so use threads to create the containers in parallel.
Also reduce the number of iterations from 20 to 2 and reduce the timeout.
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_nvme_pool_capacity
Skip-func-hw-test-medium-md-on-ssd: false
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: