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

Arbiter constructor for glommio CPU pinning #272

Open
thedodd opened this issue Dec 18, 2023 · 1 comment
Open

Arbiter constructor for glommio CPU pinning #272

thedodd opened this issue Dec 18, 2023 · 1 comment

Comments

@thedodd
Copy link

thedodd commented Dec 18, 2023

When the glommio feature is being used, it would be awesome to be able to construct an Arbiter and also pass through the config needed to pin the arbiter's thread to some target CPU, which is a big part of Glommio's value add. The method could take a Placement param, and a callback. The callback will be passed the LocalExecutorBuilder allowing for further customization. Matches the builder's pattern in the glommio docs.

Arbiter::new_glommio(placement, move |exc| {
  exc.name("my_arb").ring_depth(some_depth) // etc.
});
@fafhrd91
Copy link
Collaborator

i dont think anybody can provide change, PR is welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants