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

Add Transparent Huge Pages options into configuration #113

Open
karlovnv opened this issue May 6, 2024 · 1 comment
Open

Add Transparent Huge Pages options into configuration #113

karlovnv opened this issue May 6, 2024 · 1 comment

Comments

@karlovnv
Copy link

karlovnv commented May 6, 2024

Currently the only way way to configure underlying mimalloc is to use env variables, but it's very useful to set them up programatically.

So the idea is to add rust bindings for mi_option_set: https://microsoft.github.io/mimalloc/group__options.html#gaf84921c32375e25754dc2ee6a911fa60

@nathaniel-daniel
Copy link
Contributor

You can just use the sys library to access those options. I don't think it's possible to provide a safe wrapper around those functions since they are:

  1. Not threadsafe
  2. Can cause unsafe behavior

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

No branches or pull requests

2 participants