Skip to content

False-sharing test#2

Open
joshuascheid wants to merge 2 commits into
travisdowns:masterfrom
joshuascheid:fs_add
Open

False-sharing test#2
joshuascheid wants to merge 2 commits into
travisdowns:masterfrom
joshuascheid:fs_add

Conversation

@joshuascheid

Copy link
Copy Markdown

Deterministic, but no locks or atomics.

Useful to show HW performance for false-sharing in an ostensibly real situation.

Initial commit adds the logical thread ID value as an argument to the test function. This is used as an index into the shared data structure.

No atomics or locks, but race-free and deterministic.O
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