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

Add multibench support to all-in-one json #402

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

rafaelfolco
Copy link
Contributor

Add benchmarks block to identify bench ids.
The blockbreaker utility extracts the benchmark
from the runfile and processes multibench config.

This requires additional changes on the crucible
code to fully support 'benchmarks' block from the
json runfile.

@rafaelfolco
Copy link
Contributor Author

@k-rister could you restore self-hosted runners please?

@k-rister
Copy link
Contributor

@k-rister could you restore self-hosted runners please?

done

util/JSON/schema.json Outdated Show resolved Hide resolved
k-rister
k-rister previously approved these changes Sep 13, 2023
HughNhan
HughNhan previously approved these changes Sep 15, 2023
Copy link
Contributor

@HughNhan HughNhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works it works!

@rafaelfolco
Copy link
Contributor Author

oops found one more dup that needs to be resolved.

@rafaelfolco rafaelfolco marked this pull request as draft September 15, 2023 20:00
Add benchmarks block to identify bench ids. The blockbreaker
utility extracts the benchmark from the runfile and processes
multibench config.

The mv-params for multibench is extracted from the 'benchmarks'
block. To keep backwards compatibility with the single bench mode,
it is still possible to define the mv-params block from the top
level of the JSON file.

For both single bench and multibench on the new schema, use
blockbreaker w/ --config mv-params and --benchmark <benchmark name>.
For single bench on the old schema, use --config mv-params and
--index <index number>.

This requires additional changes on the crucible code to fully
support 'benchmarks' block from the json runfile, and then
support it from the crucible cli.
@rafaelfolco
Copy link
Contributor Author

@k-rister pls review. I modified the schema by copying the mv-params block inside the benchmarks block. With this change, you can get a mv-params from the json with blockbreaker.py --json all-in-one.json --config mv-params --benchmark uperf.
Note: benchmarks block was included already in a previous change, so I removed from this one.

@rafaelfolco rafaelfolco merged commit 86c693f into master Sep 19, 2023
136 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants