Skip to content
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

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

shimizukko
Copy link
Contributor

@shimizukko shimizukko commented Apr 7, 2024

…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:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate owners.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

…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]>
Copy link

github-actions bot commented Apr 7, 2024

Ticket title is 'ftest/nvme/pool_capacity.py claims to create containers but does not'
Status is 'In Review'
Labels: 'scrubbed'
https://daosio.atlassian.net/browse/DAOS-12974

@shimizukko shimizukko marked this pull request as ready for review April 9, 2024 23:52
@shimizukko shimizukko requested review from a team as code owners April 9, 2024 23:52
daltonbohning
daltonbohning previously approved these changes Apr 10, 2024
Copy link
Contributor

@daltonbohning daltonbohning left a 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]>
@shimizukko
Copy link
Contributor Author

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

I reduced the iteration to 2 and the test time was reduced from 60 min to 16 min.

daltonbohning
daltonbohning previously approved these changes Apr 17, 2024
@daltonbohning
Copy link
Contributor

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

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]>
@shimizukko
Copy link
Contributor Author

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

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?

Done

@shimizukko shimizukko requested a review from a team April 23, 2024 04:31
@daltonbohning daltonbohning added the forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed. label Apr 23, 2024
@daltonbohning daltonbohning merged commit c122a9a into master Apr 23, 2024
45 checks passed
@daltonbohning daltonbohning deleted the makito/DAOS-12974 branch April 23, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed.
Development

Successfully merging this pull request may close these issues.

3 participants