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

Define memory log for performance tests #1760

Merged
merged 5 commits into from
Oct 11, 2024
Merged

Define memory log for performance tests #1760

merged 5 commits into from
Oct 11, 2024

Conversation

huitema
Copy link
Collaborator

@huitema huitema commented Oct 9, 2024

Classic logging does not work well when doing high performance tests, because the writing of logs on disk slows the processes and change the performance. The "memory log" works by allocating a large memory array to capture a series of records of the loss recovery and congestion control state, and writes them to a CSV file when the connection is closed.

Because it needs a very large memory allocation, memory logging cannot be used in production. As implemented in picoquicdemo, it is only available if the stack is compiled to use it (defining the flag PICOQUIC_MEMORY_LOG) and if the server is launched with the "-1" option, i.e., serve exactly one connection and then quit.

@huitema huitema requested a review from suhasHere October 10, 2024 02:43
@huitema huitema merged commit fdfbcb4 into master Oct 11, 2024
11 checks passed
@huitema huitema deleted the memory_log branch October 11, 2024 22:54
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.

1 participant