-
Notifications
You must be signed in to change notification settings - Fork 188
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
base: main
Are you sure you want to change the base?
Conversation
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]>
Signed-off-by: Sahitya Damera <[email protected]>
Signed-off-by: Sahitya Damera <[email protected]>
""" | ||
f = open(output_file, 'w') | ||
self.output_files.append(f) | ||
log.debug(f"Starting monitoring tool {''.join(process_args)}") |
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.
I think this will output the args but with no spaces :(
log.debug(f"Starting monitoring tool {''.join(process_args)}") | |
log.debug(f"Starting monitoring tool {' '.join(process_args)}") |
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 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): |
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.
nit: does this really need to be its own method?
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).