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

Move unshared fields to arrays #169

Merged
merged 2 commits into from
May 2, 2024
Merged

Move unshared fields to arrays #169

merged 2 commits into from
May 2, 2024

Conversation

dmlloyd
Copy link
Contributor

@dmlloyd dmlloyd commented May 1, 2024

The arrays can then be sized based on the run time cache line size, allowing better parallelism on CPUs with long cache lines.

@dmlloyd
Copy link
Contributor Author

dmlloyd commented May 1, 2024

@franz1981 WDYT? Is this reasonable?

@franz1981
Copy link
Collaborator

looking bud @dmlloyd !

The arrays can then be sized based on the run time cache line size, allowing better parallelism on CPUs with long cache lines.
@dmlloyd
Copy link
Contributor Author

dmlloyd commented May 2, 2024

Also, move the queue size field to an unshared memory location since it is also frequently updated.

@dmlloyd dmlloyd marked this pull request as ready for review May 2, 2024 13:43
@dmlloyd
Copy link
Contributor Author

dmlloyd commented May 2, 2024

This does need to be tested with a native build on Quarkus before merging.

@dmlloyd
Copy link
Contributor Author

dmlloyd commented May 2, 2024

Seems to work! ✅

@dmlloyd dmlloyd merged commit f9dc973 into jbossas:main May 2, 2024
1 check passed
@dmlloyd dmlloyd deleted the cachelines branch May 2, 2024 14:44
@franz1981
Copy link
Collaborator

Sorry for the late approval @dmlloyd but is good, well done!

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.

2 participants