Skip to content

ci: add memory allocation report #1557

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

Merged
merged 1 commit into from
Nov 1, 2022
Merged

ci: add memory allocation report #1557

merged 1 commit into from
Nov 1, 2022

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Nov 1, 2022

Description of changes:

This change adds a heap profiler report to track memory usage in s2n-quic. It works by:

  • Creating a server
  • Creating a client
  • Establishing connections and recording the amount of allocated data for each connection
  • Generates a tsv with each of the connection stats
  • Generates a dhat-heap.json which can be viewed by valgrind's dh_view.

Call-outs:

The rust beta tests are failing due to a regression rust-lang/rust#103814.

Testing:

Report

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review November 1, 2022 19:15
@WesleyRosenblum WesleyRosenblum mentioned this pull request Nov 1, 2022

- name: Run server
working-directory: tools/memory-report
run: ./target/release/memory-report server &
Copy link
Contributor

Choose a reason for hiding this comment

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

What kills the server? Or is it just relying on GitHub killing everything when the workflow completes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep GHA will clean it up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

./netbench-driver-${{ matrix.driver }}-server > results/${{ matrix.scenario }}/${{ matrix.driver }}/server.json &

@camshaft camshaft merged commit 6e3e3b2 into main Nov 1, 2022
@camshaft camshaft deleted the camshaft/dhat branch November 1, 2022 23:48
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.

2 participants