From 83320bbf5880bc208f9591276a14c9d175c0e736 Mon Sep 17 00:00:00 2001 From: michael parsons Date: Tue, 10 Nov 2026 19:47:04 -0800 Subject: [PATCH 1/3] perf(bin): add an opt-in mimalloc global allocator A new `mimalloc` feature on the bin crate makes mimalloc the global allocator in place of the system allocator. Default builds do not change. The clippy workflow builds the feature. Measured on the PostgreSQL build of main at 9c3fbfb on glibc, under conditional PutItem and PartiQL INSERT load with 32 requests in flight: with mimalloc, server CPU for each request fell by about 12% and throughput rose by about 2% to 4%. Peak resident memory was higher. ADR-0030 records the measurements and why the feature is off by default. Co-Authored-By: Claude Opus 5.5 Co-Authored-By: Claude Fable 5.2 Signed-off-by: michael parsons --- .github/workflows/clippy.yml | 5 +- Cargo.lock | 21 ++++- Cargo.toml | 3 + crates/bin/Cargo.toml | 4 + crates/bin/src/main.rs | 7 ++ docs/adr/0030-optional-mimalloc-allocator.md | 95 ++++++++++++++++++++ docs/adr/README.md | 1 + docs/manuals/04-quickstart-setup-guide.md | 3 + 8 files changed, 136 insertions(+), 3 deletions(-) create mode 100644 docs/adr/0030-optional-mimalloc-allocator.md diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index fafd81908..76fabbabd 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -34,8 +34,9 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} # With the Cassandra and MongoDB crates' `test-hooks` features, so the # hook modules (`src/test_hooks.rs`) and their call sites, which only - # the integration test binaries build otherwise, are linted too. - - run: cargo clippy --all-targets --features extenddb-storage-cassandra/test-hooks,extenddb-storage-mongodb/test-hooks -- -D warnings + # the integration test binaries build otherwise, are linted too. With the + # bin crate's `mimalloc` feature as well, which no other job builds. + - run: cargo clippy --all-targets --features extenddb-storage-cassandra/test-hooks,extenddb-storage-mongodb/test-hooks,extenddb/mimalloc -- -D warnings # The backup job's kill-point pauses (`EXTENDDB_BACKUP_PAUSE`), which # `devtools/backup-kill-points.sh` runs by hand on a build with the # feature; no other job builds it. diff --git a/Cargo.lock b/Cargo.lock index 0209610a9..741252de9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1645,6 +1645,7 @@ dependencies = [ "extenddb-storage-mongodb", "extenddb-storage-postgres", "extenddb-storage-sqlite", + "mimalloc", "sqlx", "tokio", "uuid", @@ -2892,6 +2893,15 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" +[[package]] +name = "libmimalloc-sys" +version = "0.1.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9" +dependencies = [ + "cc", +] + [[package]] name = "libredox" version = "0.1.16" @@ -3059,6 +3069,15 @@ dependencies = [ "rapidhash", ] +[[package]] +name = "mimalloc" +version = "0.1.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862" +dependencies = [ + "libmimalloc-sys", +] + [[package]] name = "mime" version = "0.3.17" @@ -5252,7 +5271,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.61.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c22b5a57b..c1bba77b6 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,6 +56,9 @@ extenddb-auth = { path = "crates/auth", version = "=0.1.14" } extenddb-server = { path = "crates/server", version = "=0.1.14" } extenddb-app = { path = "crates/app", version = "=0.1.14" } +# Memory allocator, opt-in through the `mimalloc` feature of the bin crate +mimalloc = { version = "0.1", default-features = false } + # Serialization serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/crates/bin/Cargo.toml b/crates/bin/Cargo.toml index 7a2705c20..31536922b 100755 --- a/crates/bin/Cargo.toml +++ b/crates/bin/Cargo.toml @@ -38,6 +38,9 @@ mongodb-test-hooks = [ # fails (`main.rs` checks this at compile time). A production `sqlite` build # leaves it off. dev-mode = ["extenddb-app/dev-mode"] +# Use mimalloc as the global allocator in place of the system allocator. Off by +# default. See ADR-0030 for the measurements. +mimalloc = ["dep:mimalloc"] [dependencies] extenddb-app = { workspace = true } @@ -48,6 +51,7 @@ extenddb-storage-postgres = { workspace = true, optional = true } extenddb-storage-sqlite = { workspace = true, optional = true } anyhow = { workspace = true } extenddb-config = { workspace = true } +mimalloc = { workspace = true, optional = true } [dev-dependencies] sqlx = { workspace = true } diff --git a/crates/bin/src/main.rs b/crates/bin/src/main.rs index 0f8e81bdd..bfd5a8cc3 100755 --- a/crates/bin/src/main.rs +++ b/crates/bin/src/main.rs @@ -17,6 +17,13 @@ //! installs one backend per process, so a build with more than one would be ambiguous //! and is rejected at compile time. +// The `mimalloc` feature replaces the system allocator with mimalloc. The +// request path allocates for each JSON value, attribute and string that it +// builds, on many tokio worker threads. See ADR-0030 for the measurements. +#[cfg(feature = "mimalloc")] +#[global_allocator] +static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; + // Exactly one backend feature must be enabled. #[cfg(any( all(feature = "postgres", feature = "cassandra"), diff --git a/docs/adr/0030-optional-mimalloc-allocator.md b/docs/adr/0030-optional-mimalloc-allocator.md new file mode 100644 index 000000000..7f3912acf --- /dev/null +++ b/docs/adr/0030-optional-mimalloc-allocator.md @@ -0,0 +1,95 @@ +# ADR-0030: mimalloc is an opt-in global allocator for the server binary + +- Status: Proposed +- Date: 2026-11-10 +- Deciders: @parsnips + +## Context + +The `extenddb` binary uses the system allocator. On Linux that is glibc +malloc. + +The request path allocates often. A request body becomes a `serde_json::Value`, +then `AttributeValue`s. A PartiQL statement becomes a `PutItem` body, which is +parsed again. The item becomes JSONB for the storage backend. Each step +allocates strings, maps and vectors, and frees them on one of many tokio worker +threads. + +We measured the PostgreSQL build of `main` at 9c3fbfb under a load generator +that sends conditional inserts with unique keys to a table with a hash and a +range key and no indexes. It sends them as `PutItem` with +`attribute_not_exists` on the partition key, and as `ExecuteStatement` with an +`INSERT` statement. Each item has a 256-byte value. The host was a 24-core +x86_64 Linux machine. The server ran in a Debian 12 container (glibc 2.36), +with PostgreSQL 16 in a second container and connection pools of 20. + +We profiled the server with `perf` (frame pointers on) under the `PutItem` +load with 32 requests in flight. Code in `libc.so.6` took 16% of the server's +samples, which is 22% of the samples in user space. + +## Options Considered + +1. **Keep the system allocator.** No change. +2. **mimalloc as an opt-in feature.** A `mimalloc` feature on the bin crate + sets `mimalloc::MiMalloc` as the `#[global_allocator]`. Default builds do + not change. +3. **mimalloc by default.** The same change with the feature on in the default + feature set, so every release binary uses it. +4. **jemalloc (`tikv-jemallocator`).** Not measured here. Its build needs + `make` and runs a configure script, and it does not build for MSVC + targets. + +## Decision + +The bin crate has an opt-in `mimalloc` feature that makes mimalloc the global +allocator (Option 2). + +## Rationale + +- Measured on the workload above, with 32 requests in flight for 10 seconds + for each operation. Each measurement used a fresh database, and the two + builds were the same apart from the `mimalloc` feature. The runs alternated + between the builds. The host also ran other work, which disturbed one + window (marked \*). + + | Operation | Allocator | Throughput (ops/s), per measurement | Server CPU per request (µs) | + |---|---|---|---| + | `PutItem` | glibc malloc | 15,092, 15,099, 14,992 | 257, 257, 251 | + | `PutItem` | mimalloc | 15,679, 15,065, 15,415 | 226, 222, 227 | + | `INSERT` | glibc malloc | 14,613, 6,616\*, 14,058 | 297, 319\*, 287 | + | `INSERT` | mimalloc | 14,909, 14,595, 15,134 | 259, 263, 253 | + + Server CPU for each request fell by about 12% for both operations. + Throughput rose by about 2% to 4%, which is close to the variation between + measurements. With mimalloc, `libc.so.6` took 5% of the server's samples. +- Peak resident memory of the server after each measurement (about 600,000 + inserts) was 309 to 359 MB with glibc malloc and 398 to 428 MB with + mimalloc. +- The `mimalloc` crate (0.1.52, which builds mimalloc v3) compiles its C + sources with the `cc` crate. The workspace already builds C through `cc` for + `aws-lc-sys`. The crate's `secure` feature (guard pages, encoded free lists) + stays off. +- An opt-in feature does not change memory behaviour for existing + deployments. mimalloc holds and returns memory differently from glibc, and + resident memory was higher in the measurement above. Operators can measure + it on their own workload before the default changes. +- A `#[global_allocator]` in the bin crate applies to the whole process and + does not touch any library crate. A third-party thin bin can choose its own + allocator. + +## Consequences + +- A build that spends less CPU in the allocator is one flag away: + `cargo build --release --features mimalloc`. +- Release images and packages keep the system allocator until a later decision + turns the feature on by default. That decision needs measurements from more + workloads (read-heavy, Scan, the other backends) and of resident memory. +- The feature adds a C dependency to builds that turn it on. +- Reverting is a one-line change to the feature set. + +--- + +## License + +Copyright 2026 ExtendDB contributors. Licensed under the Apache License, Version 2.0. +See [LICENSE](../../LICENSE) for the full text. diff --git a/docs/adr/README.md b/docs/adr/README.md index 372bf38f3..43a68be68 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -55,3 +55,4 @@ decision, write a new ADR. | [0026](0026-credential-crypto-on-aws-lc.md) | Credential cryptography uses AWS-LC through aws-lc-rs | Accepted | | [0027](0027-cassandra-index-row-version-stamps.md) | Cassandra: index rows carry the base-row version as their write timestamp | Accepted | | [0029](0029-crates-io-packaging.md) | The workspace crates go to crates.io together, at one version with exact pins | Accepted | +| [0030](0030-optional-mimalloc-allocator.md) | mimalloc is an opt-in global allocator for the server binary | Proposed | diff --git a/docs/manuals/04-quickstart-setup-guide.md b/docs/manuals/04-quickstart-setup-guide.md index d3d197414..7a8920e7d 100755 --- a/docs/manuals/04-quickstart-setup-guide.md +++ b/docs/manuals/04-quickstart-setup-guide.md @@ -121,6 +121,9 @@ cargo build # Release build (slower compilation, optimized runtime) cargo build --release + +# Release build with mimalloc in place of the system allocator (ADR-0030) +cargo build --release --features mimalloc ``` The binary is at `target/release/extenddb` (or `target/debug/extenddb`). From 4e34a2ff82d14ef372f969b4832855d34c2e78e1 Mon Sep 17 00:00:00 2001 From: michael parsons Date: Fri, 13 Nov 2026 14:02:39 -0800 Subject: [PATCH 2/3] docs(adr): give ADR-0030 the full License section #964 gave every document under docs/ the same License section, with a second paragraph that says ExtendDB is maintained by AWS and is not Amazon DynamoDB. ADR-0030 had the first paragraph only. It now has the same section as ADR-0029. Co-Authored-By: Claude Opus 5.5 Signed-off-by: michael parsons --- docs/adr/0030-optional-mimalloc-allocator.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/adr/0030-optional-mimalloc-allocator.md b/docs/adr/0030-optional-mimalloc-allocator.md index 7f3912acf..455a92565 100644 --- a/docs/adr/0030-optional-mimalloc-allocator.md +++ b/docs/adr/0030-optional-mimalloc-allocator.md @@ -93,3 +93,7 @@ allocator (Option 2). Copyright 2026 ExtendDB contributors. Licensed under the Apache License, Version 2.0. See [LICENSE](../../LICENSE) for the full text. + +This software is provided "as is" without warranty of any kind. ExtendDB is an open +source project maintained by AWS. It is not Amazon DynamoDB or an AWS service. +"DynamoDB" is a trademark of Amazon.com, Inc. or its affiliates. From 382858d0d3a88d246b0e1b8c6b14b119cf800b29 Mon Sep 17 00:00:00 2001 From: michael parsons Date: Mon, 23 Nov 2026 21:18:34 -0800 Subject: [PATCH 3/3] docs(adr): give ADR-0030 its method, and make no memory claim The review could not reproduce the figures of ADR-0030 from its text. The ADR now has a Method section: the builds, the host, the PostgreSQL and server settings, the load generator and its commands, and how server CPU per request, peak resident memory and the profile were read. The load generator and the run script are in the description of the pull request. The memory sentence said "after about 600,000 inserts". VmHWM was read one time at the end of a measurement of eight steps, after 630,000 to 862,000 inserts, and it is in MiB now. The review measured lower memory with mimalloc in a longer run, so the ADR gives both sets of figures and makes no claim about a direction. Other points from the review: - The Linux binaries of the npm packages are musl builds, so "the system allocator" is not glibc malloc for them. The ADR measured glibc only. - The global allocator serves Rust allocations. C libraries such as AWS-LC keep the system malloc, because the override feature is off. - MALLOC_ARENA_MAX does not bound Rust allocations in a build with the feature. - The status is Accepted, as docs/adr/README.md says for a merged ADR. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_012kcReu8W93hWBjX8JAwW8P Signed-off-by: michael parsons --- docs/adr/0030-optional-mimalloc-allocator.md | 131 +++++++++++++++---- docs/adr/README.md | 2 +- 2 files changed, 104 insertions(+), 29 deletions(-) diff --git a/docs/adr/0030-optional-mimalloc-allocator.md b/docs/adr/0030-optional-mimalloc-allocator.md index 455a92565..af890f6c3 100644 --- a/docs/adr/0030-optional-mimalloc-allocator.md +++ b/docs/adr/0030-optional-mimalloc-allocator.md @@ -1,13 +1,16 @@ # ADR-0030: mimalloc is an opt-in global allocator for the server binary -- Status: Proposed +- Status: Accepted - Date: 2026-11-10 - Deciders: @parsnips ## Context -The `extenddb` binary uses the system allocator. On Linux that is glibc -malloc. +The `extenddb` binary uses the system allocator. On Linux that is the malloc +of the C library that the binary links. The container images and a +`cargo build` on a glibc host use glibc malloc. The Linux binaries of the npm +packages are static musl builds, and they use the musl malloc. This ADR +measured glibc only. The request path allocates often. A request body becomes a `serde_json::Value`, then `AttributeValue`s. A PartiQL statement becomes a `PutItem` body, which is @@ -15,17 +18,72 @@ parsed again. The item becomes JSONB for the storage backend. Each step allocates strings, maps and vectors, and frees them on one of many tokio worker threads. -We measured the PostgreSQL build of `main` at 9c3fbfb under a load generator -that sends conditional inserts with unique keys to a table with a hash and a -range key and no indexes. It sends them as `PutItem` with -`attribute_not_exists` on the partition key, and as `ExecuteStatement` with an -`INSERT` statement. Each item has a 256-byte value. The host was a 24-core -x86_64 Linux machine. The server ran in a Debian 12 container (glibc 2.36), -with PostgreSQL 16 in a second container and connection pools of 20. - -We profiled the server with `perf` (frame pointers on) under the `PutItem` -load with 32 requests in flight. Code in `libc.so.6` took 16% of the server's -samples, which is 22% of the samples in user space. +We measured the PostgreSQL build of `main` at 9c3fbfb, with and without the +feature, under conditional inserts with unique keys. The method below gives +the load, the settings and how each figure was read. + +In a `perf` profile of the server under the `PutItem` load with 32 requests in +flight, code in `libc.so.6` took 16% of the server's samples, which is 22% of +the samples in user space. + +### Method + +- **Builds.** `cargo build --release --locked -p extenddb`, and the same + command with `--features mimalloc`, in the `rust:1.97-bookworm` image (rustc + 1.97.1, glibc 2.36) with `RUSTFLAGS=-Cforce-frame-pointers=yes`. The two + builds differ in the feature only. +- **Host.** One machine ran the load generator, the server and PostgreSQL: an + AMD Ryzen 9 9900X (12 cores, 24 threads) with 32 GB of memory, on Linux + x86_64. The containers had no CPU or memory limit. The host also ran other + work. +- **PostgreSQL.** The `postgres:16-alpine` image, with `--shm-size 2g`, a data + directory made with `initdb --no-sync`, and these settings: + `max_connections=400`, `fsync=off`, `synchronous_commit=off`, + `full_page_writes=off`, `checkpoint_timeout=1h`, `max_wal_size=2GB`, + `shared_buffers=2GB`, `effective_cache_size=6GB`, `work_mem=64MB`, + `maintenance_work_mem=512MB`, `wal_buffers=64MB`. +- **Server.** The binary in a `debian:bookworm-slim` container on the host + network, after `extenddb init`, with TLS on. `[storage.postgres]` has + `pool_size = 20` and `catalog_pool_size = 20`. The settings + `control_plane_delay_seconds` and `gsi_propagation_delay_ms` are 0, and + `throttling_enabled` is false. The tokio runtime has its default number of + worker threads, which is one for each of the 24 logical CPUs. +- **Load generator.** A Go program that uses the AWS SDK for Go v2. Its + source and the script that runs one measurement are in the description of + pull request #954. It creates a table with a binary hash key and a binary + range key, on-demand billing, no index and no stream. Each request inserts + an item with a new 16-byte hash key, a 1-byte range key and a 256-byte + binary value. The `put` operation sends `PutItem` with + `attribute_not_exists(#pk)`. The `partiql` operation sends + `ExecuteStatement` with `INSERT INTO "" VALUE {...}` and three + parameters. For each request in flight, one goroutine sends requests one + after another on its own HTTPS connection. The requests have SigV4 + signatures and are not sent again after an error. The commands: + + ``` + extenddb-load -endpoint https://127.0.0.1:28443 -ca \ + -levels 1,8,32,128 -duration 10s -op put + extenddb-load -endpoint https://127.0.0.1:28443 -ca \ + -levels 1,8,32,128 -duration 10s -op partiql + ``` + + Each level is one step of 10 seconds, after one request on each connection + to open it. Each command deletes its table when it ends. +- **One measurement.** A new PostgreSQL container, a new deployment and a new + server process, then the two commands: eight steps. We made three + measurements of each build and alternated between the builds. +- **Server CPU per request.** A shell loop read `utime + stime` of the server + process from `/proc//stat` every 100 ms. The CPU time of a step is the + value at the end of the step minus the value 10 seconds before, at 100 ticks + for each second. That time divided by the number of requests that the step + completed is the figure. +- **Peak resident memory.** `VmHWM` of the server process from + `/proc//status`, read one time, after the eighth step. It is the peak + of the whole measurement and not of one step. +- **Profile.** One more run of each build, with one step of 40 seconds at 32 + requests in flight for each operation. `perf record -F 999 -g -p -- + sleep 25` started 6 seconds into the `PutItem` step, and + `perf report --no-children --sort dso` gave the share of each shared object. ## Options Considered @@ -46,11 +104,8 @@ allocator (Option 2). ## Rationale -- Measured on the workload above, with 32 requests in flight for 10 seconds - for each operation. Each measurement used a fresh database, and the two - builds were the same apart from the `mimalloc` feature. The runs alternated - between the builds. The host also ran other work, which disturbed one - window (marked \*). +- The steps with 32 requests in flight, from the three measurements of each + build. Other work on the host disturbed one step (marked \*). | Operation | Allocator | Throughput (ops/s), per measurement | Server CPU per request (µs) | |---|---|---|---| @@ -62,20 +117,34 @@ allocator (Option 2). Server CPU for each request fell by about 12% for both operations. Throughput rose by about 2% to 4%, which is close to the variation between measurements. With mimalloc, `libc.so.6` took 5% of the server's samples. -- Peak resident memory of the server after each measurement (about 600,000 - inserts) was 309 to 359 MB with glibc malloc and 398 to 428 MB with - mimalloc. +- Resident memory did not go in one direction, so this ADR makes no claim + about it. `VmHWM` at the end of each measurement, with the number of inserts + that its eight steps completed, to the nearest thousand: + + | Allocator | Inserts, per measurement | `VmHWM` (MiB) | + |---|---|---| + | glibc malloc | 839,000, 630,000, 774,000 | 351, 302, 327 | + | mimalloc | 862,000, 804,000, 809,000 | 418, 389, 399 | + + The review of this change used a different client (32 processes, with one + connection each). After 62,000 to 82,000 inserts, a server ended at 92.5 to + 100.5 MB with glibc malloc and at 121.0 to 126.5 MB with mimalloc. After + about 500,000 inserts, it ended at 231.2 MB with glibc malloc and at + 221.5 MB with mimalloc. In the two sets of figures, memory with mimalloc was + higher in some runs and lower in one. - The `mimalloc` crate (0.1.52, which builds mimalloc v3) compiles its C sources with the `cc` crate. The workspace already builds C through `cc` for `aws-lc-sys`. The crate's `secure` feature (guard pages, encoded free lists) stays off. - An opt-in feature does not change memory behaviour for existing deployments. mimalloc holds and returns memory differently from glibc, and - resident memory was higher in the measurement above. Operators can measure - it on their own workload before the default changes. -- A `#[global_allocator]` in the bin crate applies to the whole process and - does not touch any library crate. A third-party thin bin can choose its own - allocator. + the figures above do not show which allocator holds less. Operators can + measure it on their own workload before the default changes. +- A `#[global_allocator]` in the bin crate serves the allocations of all Rust + code in the process, and no library crate changes. It does not replace + `malloc` for C code: the `mimalloc` crate's `override` feature is off, so C + libraries in the binary, such as AWS-LC, keep the system allocator. A + third-party thin bin can choose its own allocator. ## Consequences @@ -83,7 +152,13 @@ allocator (Option 2). `cargo build --release --features mimalloc`. - Release images and packages keep the system allocator until a later decision turns the feature on by default. That decision needs measurements from more - workloads (read-heavy, Scan, the other backends) and of resident memory. + workloads (read-heavy, Scan, the other backends), of resident memory in long + runs, and of a musl build. +- `MALLOC_ARENA_MAX` is a setting of glibc malloc. The backup and restore + manual and the deployment guide describe it for hosts that run backups and + restores, and their memory figures are for the system allocator. In a build + with the feature, Rust allocations do not go through glibc malloc, so the + variable does not bound them. - The feature adds a C dependency to builds that turn it on. - Reverting is a one-line change to the feature set. diff --git a/docs/adr/README.md b/docs/adr/README.md index 18b3926c9..52fb63cbf 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -55,7 +55,7 @@ decision, write a new ADR. | [0026](0026-credential-crypto-on-aws-lc.md) | Credential cryptography uses AWS-LC through aws-lc-rs | Accepted | | [0027](0027-cassandra-index-row-version-stamps.md) | Cassandra: index rows carry the base-row version as their write timestamp | Accepted | | [0029](0029-crates-io-packaging.md) | The workspace crates go to crates.io together, at one version with exact pins | Accepted | -| [0030](0030-optional-mimalloc-allocator.md) | mimalloc is an opt-in global allocator for the server binary | Proposed | +| [0030](0030-optional-mimalloc-allocator.md) | mimalloc is an opt-in global allocator for the server binary | Accepted | ---