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

Don't run benchmarks with debug, plus minor refactoring #1104

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

adpeace
Copy link
Contributor

@adpeace adpeace commented Nov 6, 2024

Description of change

Remove the --debug flag when mounting S3 for the benchmarks.

This is now available via an S3_DEBUG environment variable which, when set, will add --debug back again.

Also, within fs_bench.sh, merge the read and write benchmark methods into a single one, which is paramterized, since they were almost identical. This avoids having to make the change described above in two places and simplifies the code going forwards.

Does this change impact existing behavior?

This changes the benchmarks to run without --debug to the mount command, which creates a discontinuity in benchmark results, and may improve them (though there's no actual performance improvement here).

Does this change need a changelog entry in any of the crates?

No.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

@adpeace adpeace added the performance PRs to run benchmarks on label Nov 6, 2024
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
@adpeace adpeace had a problem deploying to PR integration tests November 6, 2024 13:41 — with GitHub Actions Failure
Copy link
Contributor

@dannycjones dannycjones left a comment

Choose a reason for hiding this comment

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

Just putting early review, I realize its still in draft

mountpoint-s3/scripts/fs_bench.sh Outdated Show resolved Hide resolved
mountpoint-s3/scripts/fs_bench.sh Outdated Show resolved Hide resolved
mountpoint-s3/scripts/fs_bench.sh Show resolved Hide resolved
`read` and `write` were almost identical, so merge them into a single
`run_benchmarks` method that is parameterized.

Signed-off-by: Andrew Peace <[email protected]>
Previously, --debug was being passed to the mount command.  As this
might impact performance, this change removes it.

We also add a new environment variable, S3_DEBUG, which can be used to
add this back again if needed (just set it to a non-empty value).

Signed-off-by: Andrew Peace <[email protected]>
@adpeace adpeace temporarily deployed to PR integration tests November 6, 2024 14:19 — with GitHub Actions Inactive
@adpeace adpeace temporarily deployed to PR integration tests November 6, 2024 14:19 — with GitHub Actions Inactive
Copy link
Contributor

@dannycjones dannycjones left a comment

Choose a reason for hiding this comment

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

LGTM!

@adpeace adpeace marked this pull request as ready for review November 6, 2024 17:16
@adpeace adpeace added this pull request to the merge queue Nov 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 6, 2024
@dannycjones dannycjones added this pull request to the merge queue Nov 6, 2024
Merged via the queue into awslabs:main with commit 50433e6 Nov 6, 2024
26 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Nov 11, 2024
## Description of change

We opted to disable debug logging in #1104 as this may impact
performance, however it was not known that the memory usage monitoring
was dependent on metrics being emitted implicitly due to `--debug`. This
change restores metrics in logs to fix the peak memory usage
benchmarking.

Relevant issues: #1104

## Does this change impact existing behavior?

No change to Mountpoint.

## Does this change need a changelog entry in any of the crates?

No.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and I agree to the terms of
the [Developer Certificate of Origin
(DCO)](https://developercertificate.org/).

Signed-off-by: Daniel Carl Jones <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance PRs to run benchmarks on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants