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

neper: don't collect latency stats in tcp_crr server (#22) #26

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

chenshuo
Copy link
Collaborator

For tcp_crr server, a new flow is created for each short-lived
connection. If we collect stats, flow's neper_stat will be added
to worker thread's neper_stats, and won't be freed until the worker
thread ends. It will use a lot of memory (~1GB/sec) and cause test
failures.

For other four workloads including tcp_crr client, the number of
flows is specified by command line flag, so the memory useage is
stable.

Fixes: 253d3b4 ("neper: collect stats in *rr servers (#22)")

For tcp_crr server, a new flow is created for each short-lived
connection.  If we collect stats, flow's neper_stat will be added
to worker thread's neper_stats, and won't be freed until the worker
thread ends.  It will use a lot of memory (~1GB/sec) and cause test
failures.

For other four workloads including tcp_crr client, the number of
flows is specified by command line flag, so the memory useage is
stable.

Fixes: 253d3b4 ("neper: collect stats in *rr servers")
Copy link
Collaborator

@wdebruij wdebruij left a comment

Choose a reason for hiding this comment

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

thanks Shuo!

@wdebruij wdebruij merged commit 81205f6 into google:master Feb 17, 2021
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.

None yet

2 participants