FR: Swap flake builds to mimalloc by default #2597

Closed
opened 2026-11-24 01:23:56 +00:00 by Henry-Hiles · 3 comments
Member

What new feature do you want to see? What problem does it solve?

Flake builds should swap to mimalloc sometime.

Right now, rocksdb isn't using jemalloc on the flake build, it's using glibc's allocator, which is slower. This is due to some issue we had with jemalloc. EDIT: This is incorrect, because the workspace enables unprefixed_malloc_on_supported_platforms on tikv-jemalloc-sys. (#2598)

Seperately, we also had to do shenanigans to not break darwin builds due to jemalloc before this.

Mimalloc seems like it'd be easier to use in general.

Further reading

No response

Additional context

I think it's worth waiting until mimalloc is more "tried and true" before swapping.

### What new feature do you want to see? What problem does it solve? Flake builds should swap to mimalloc sometime. ~~Right now, rocksdb isn't using jemalloc on the flake build, it's using glibc's allocator, which is slower. This is due to some issue we had with jemalloc.~~ EDIT: This is incorrect, because the workspace enables `unprefixed_malloc_on_supported_platforms` on `tikv-jemalloc-sys`. (#2598) Seperately, we also had to do shenanigans to not break darwin builds due to jemalloc before this. Mimalloc seems like it'd be easier to use in general. ### Further reading _No response_ ### Additional context I think it's worth waiting until mimalloc is more "tried and true" before swapping.
Owner

I'm going to mark this as "help wanted" because it'd be valuable to get drawn out metrics from users trying out mimalloc themselves. Currently I'm the only one running it, so more perspectives will be useful.

I'm going to mark this as "help wanted" because it'd be valuable to get drawn out metrics from users trying out mimalloc themselves. Currently I'm the only one running it, so more perspectives will be useful.
Author
Member

After making #2598, this is actually less of a cleanup than I thought, as I identified the cause of the other issue. It can probably wait for Nix till it's the standard for Continuwuity in general. I'd probably close this, unless anyone prefers otherwise.

After making #2598, this is actually less of a cleanup than I thought, as I identified the cause of the other issue. It can probably wait for Nix till it's the standard for Continuwuity in general. I'd probably close this, unless anyone prefers otherwise.
Owner

sounds good to me

sounds good to me
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2597
No description provided.