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 optional bandwidth monitoring to benchmark.py #1289

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sahityadg
Copy link
Contributor

@sahityadg sahityadg commented Feb 26, 2025

Uses bwm-ng, which probably needs to be installed, therefore this is behind a default-false configuration flag with_bwm. Outputs a csv file under the experiment output with the bandwidth on each NIC every 0.5s.

(cherry picked from commit bff5072)

Does this change impact existing behavior?

No change to Mountpoint, an update to benchmark script only.

Does this change need a changelog entry? Does it require a version change?

No Mountpoint change


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).

Uses bwm-ng, which probably needs to be installed, therefore this is behind a
default-false configuration flag `with_bwm`.  Outputs a csv file under the
experiment output with the bandwidth on each NIC every 0.5s.

(cherry picked from commit bff5072)

Signed-off-by: Sahitya Damera <[email protected]>
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
@sahityadg sahityadg temporarily deployed to PR integration tests February 26, 2025 23:53 — with GitHub Actions Inactive
muddyfish
muddyfish previously approved these changes Feb 27, 2025
"""
f = open(output_file, 'w')
self.output_files.append(f)
log.debug(f"Starting monitoring tool {''.join(process_args)}")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will output the args but with no spaces :(

Suggested change
log.debug(f"Starting monitoring tool {''.join(process_args)}")
log.debug(f"Starting monitoring tool {' '.join(process_args)}")

Copy link
Contributor

@adpeace adpeace left a comment

Choose a reason for hiding this comment

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

LGTM once you've addressed the DCO signoff.

for output_file in self.output_files:
self._close_output_file(output_file)

def _close_output_file(self, output_file):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: does this really need to be its own method?

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