Skip to content

fix: false sharing in SPSC ring#34

Merged
akos011221 merged 1 commit into
mainfrom
fix/ring-false-sharing
Mar 18, 2026
Merged

fix: false sharing in SPSC ring#34
akos011221 merged 1 commit into
mainfrom
fix/ring-false-sharing

Conversation

@akos011221
Copy link
Copy Markdown
Owner

head and tail in the SPSC rings were sharing the same cache line.

Writes would invalidate on the other core, causing cache-line bounces on each operation. Now the two variables have been aligned in different cache lines.

head and tail in the SPSC rings were sharing the same cache line.

Writes would invalidate on the other core, causing cache-line bounces on each operation. Now the two variables have been aligned in different cache lines.
@akos011221 akos011221 merged commit 4920b71 into main Mar 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant