Skip to content

Seeking for hep about performance tuning #915

Answered by alanhe
alanhe asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, the off-cpu perf I get isn't very useful.

I keep the clients settings the same, and change the server code.

  1. when I delete everything in // process request obj. (from code sample above, to poll requests and simply drops them), the throughput can go as high as 900 MB/s.
  2. when I add my code back, the throughput drops to about 330 MB/s. My code converts the request data and push them to an async_channel::bounded(1024). I print the size of the channel every second to be sure that it's not full.

I think it shows the server has reached some limits so the clients been back pressured. But in either case, the cpu usage is a little higher than 300%. Don't know why I'm not able to us…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@LucioFranco
Comment options

@alanhe
Comment options

Answer selected by alanhe
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LucioFranco
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants