-
Notifications
You must be signed in to change notification settings - Fork 65
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
MOSN 源码解析:内存复用机制 #27
Comments
/assign |
@taoyuanyuan |
@trainyao |
@taoyuanyuan 了解,还想问一下,vendor 里面的 bytebufferpool byte 块都对齐到了64个字节是避免伪共享么? 有一个想法,和源码解析无关,需不需要考虑在堆里面的分布情况? byte是make出来的,会不会本身堆里面就没有对齐64字节, 那上面的算法算出来的byte块对齐可能会失效 |
@trainyao 你的想法挺有意思的,我看伪共享主要作用于struct上。对于make runtime底层也有一层cache,对于是否有fasle sharing需要看看源码,你可以调研下。
|
@taoyuanyuan 了解,谢谢指点~ |
@taoyuanyuan 有劳大神 review~ |
This blog has been published at https://mosn.io/zh/blog/code/mosn-buffer/ |
Reviewer: @taoyuanyuan
The text was updated successfully, but these errors were encountered: