-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Use mimalloc in rustc #132796
Use mimalloc in rustc #132796
Conversation
My goal is to measure the performance and see if it's worth to do anything further. That's why the PR is a draft. I needed the CI to run. Let me know if that is something I can do. |
There are some version updates, and it doesn't hurt to try. But please follow some additional things I have done in #92249 too, namely replacing it for rustdoc too. Because we also benchmark rustdoc in the perf suite it is helpful to see the impact there also. afterwards I think it is okay to request a perf run. |
I will do that! Thank you for the pointers. |
@fee1-dead I will get back to this after exams (late Dec). |
☔ The latest upstream changes (presumably #133770) made this pull request unmergeable. Please resolve the merge conflicts. |
there now exists a |
We've done recent measurements of mimalloc, and things haven't changed all that much, as far as I can tell. Here are the results with the latest
The tradeoffs have stayed relatively similar over the years (with a negative trend). The max-rss regressions look too big to be worth the change, and the runtimes are not even that clear of a win in the first place anymore. Note on the v3.0.1 revision mentioned above: I did try to run it through our perf infra and it segfaulted during PGO. While we don't have numbers yet, there's probably no need to rush testing these alphas though, it seems unlikely to yield vastly different results once again. This PR can probably be closed, as we've done the requested measurements already. Unless something about the max-rss significantly changes in mimalloc, it doesn't seem like a better fit than jemalloc for the workloads rustc throws at it. |
No description provided.