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

eventloop的false-sharing疑问 #279

Closed
zhu121 opened this issue Nov 22, 2021 · 1 comment
Closed

eventloop的false-sharing疑问 #279

zhu121 opened this issue Nov 22, 2021 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@zhu121
Copy link

zhu121 commented Nov 22, 2021

请问下在0bfade3aea015a7932b0e45b646a6c85a620a205节点把eventloop结构体的prevents false-sharing相关的代码移除掉是出于什么考虑呢

@zhu121 zhu121 added help wanted Extra attention is needed question Further information is requested labels Nov 22, 2021
@panjf2000
Copy link
Owner

目前 eventloop 的大小已经默认超过 64KB 了,早就远远超过 CPU cache line 了,而且 eventloop 现在也不是连续分配的,所以目前 false-sharing 已经没有必要了。

@zhu121 zhu121 closed this as completed Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants