tradeoff between memory copy and cpu contention #15971
exceptionplayer
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Do you have any profiling data? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently we found an issue: we used a shared buffer for all the eventloops, then all the eventloop threads tried to release the buffer which caused high latency.
We fixed this issue by replacing the buffer with an unreleasableBuffer. Although the issue is resolved for now, it makes us thinking about the balance between avoiding memory copy by sharing buffer and avoiding cpu contention.
We need to send same data to different users, usually we use shared buffers, but recently we upgraded our server machines to a new generation that has more cpu cores, the cpu contention issue occurred.
Do you have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions