-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cache line padding of Pool is incorrect #3
Comments
Why is that? |
parts of two distinct Pool should not be placed into one cache line in order to prevent cache line contention. Current size of Pool == 32 bytes. In this case parts of two Pool always will be placed in a single cache line. |
to tell the truth, it will be better to aligning vs. apdding |
Yes, of course. However, a |
in that case, how about eliminating the line (size_t cache_line_padding;) at all? |
That's there to make |
1 similar comment
That's there to make |
could i contact u tru icq? my num 8112260 |
I don't have an ICQ number, but you can contact me via jabber/gtalk at [email protected]. |
/ |
usual cache line size is 64 byte.
it seems sizeof (Pool) == 32
you need to write
char cache_line_padding[CACHE_LINE_SIZE - sizeof(freed) - sizeof(raw) - sizeof(elem_size)];
The text was updated successfully, but these errors were encountered: