Skip to content

perf(binding): return memory to the OS once rolldown is idle - #11655

Merged
shulaoda merged 27 commits into
mainfrom
fix/memory-reclaim
Nov 26, 2026
Merged

shulaoda merged 27 commits into
mainfrom
fix/memory-reclaim

Conversation

@shulaoda

@shulaoda shulaoda commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Closes #11143
Closes #9330
Related to #10985, #11189 and #11233

After a build, rolldown keeps most of the memory it used, even when the output is no longer used. Freed memory stays with idle worker threads and does not go back to the OS. V8 also does not know how much native memory an output holds, so it can take a long time to collect a dropped output.

What this PR does

  • When a build ends, a bundle is closed, the last holder of a build's data drops or V8 collects a dropped output, rolldown waits until 500 ms pass with no new notification and no build. Then every rolldown thread gives its freed memory back to the OS. These are the tokio workers, the rayon threads, and each JS thread that created a bundler, a watcher or a dev engine. A thread that is busy is tried again after 1, 2, 4 and 8 s more. A cleanup does not start while a build runs, but a build that starts during a cleanup does not wait for it.
  • Output chunks and assets tell V8 how much native memory they hold, so V8 collects dropped outputs sooner. When it does, the same cleanup runs.
  • On Linux with transparent huge pages (always or madvise), memory goes back to the OS in 64 KiB pieces instead of 2 MiB ones. On Windows, memory is committed only when it is used. A MIMALLOC_* environment variable still overrides both.
  • ROLLDOWN_MEMORY_RECLAIM_DELAY=<ms> changes the 500 ms, and off turns off the cleanup and both allocator settings.
  • mimalloc goes from 3.6.1 to 3.7.0 (mimalloc-safe 0.1.71).
  • Nothing changes on WASI and OpenHarmony, which do not use mimalloc.

The design and the rejected alternatives are in internal-docs/memory-reclaim/.

Results

main is e641a93. PR is ce99614, this branch with that main merged in. All are local release builds. PR has mimalloc 3.7.0 and main has 3.6.1, so the numbers below include the update. Each number is the median of 3 runs.

  • macOS: M4 Pro with 14 cores and 48 GB, memory is phys_footprint (the "Memory" column of Activity Monitor).
  • Linux: arm64 VM with 13 cores and 16 GB, transparent huge pages madvise, memory is RssAnon, and peak is VmHWM.
  • Windows: Intel i5-13600KF with 14 cores (20 threads) and 32 GB, memory is the private working set (the "Memory" column of Task Manager), and peak is the peak working set.

Memory after the work stops (MB)

Case macOS main macOS PR Linux main Linux PR Windows main Windows PR
three.js x10 with sourcemaps, one build, 2 s later 563 39 (-93%) 1006 161 (-84%) 517 34 (-93%)
10 builds with sourcemaps, outputs dropped, 2 s later 1791 48 (-97%) 2110 166 (-92%) 1765 41 (-98%)
#11143, 6 builds, 12 s later 1593 146 (-91%) 1851 191 (-90%) 1441 66 (-95%)
#10985, 150 builds in a loop, 5 s later 777 35 (-95%) 1088 126 (-88%) 784 30 (-96%)
#11233, 10 s later 375 31 (-92%) 694 123 (-82%) 325 24 (-93%)
3,700 chunks with sourcemaps, 2 s later 588 86 (-85%) 1027 180 (-82%) 552 78 (-86%)
A build every second, before the 10th build 1609 213 (-87%) 1367 309 (-77%) 1186 217 (-82%)
#9330 repro, Vite cold dev, page open 25 s, then 90 s idle 1411 216 (-85%) 2133 537 (-75%) 1273 135 (-89%)
lobehub, Vite cold dev, page open 25 s, then 270 s idle 1753 966 (-45%) 2829 1224 (-57%) 1838 1104 (-40%)
#11189, Vite bundled dev, after 20 edits 3 s apart 493 119 (-76%) 851 282 (-67%) 459 104 (-77%)

On Windows, the "before the 10th build" row is the full working set, because reading the private working set is slow and would lengthen the pause.

In Vite cold dev, most of what stays is the JS heap. On macOS, the memory that mimalloc holds is rolldown's own. By the time the page closes, it goes from 887 to 236 MB for lobehub, and from 1215 to 23 MB for the #9330 repro. The JS heap keeps shrinking for minutes after the page closes, on main too, so the lobehub row waits 270 s.

Peak memory is lower or within noise in every case. When builds repeat, it is 42 to 53% lower on all three systems, with a build every 0 to 3 s and with #10985 in a loop.

Peak memory of one build (MB)

Build macOS main macOS PR Linux main Linux PR Windows main Windows PR Windows commit main Windows commit PR
lobehub 4833 4342 (-10%) 5947 4969 (-16%) 4930 4636 (-6%) 6841 5175 (-24%)
lobehub with sourcemaps 5761 5393 (-6%) 6931 5594 (-19%) 6187 5505 (-11%) 7900 5911 (-25%)
vue-vben-admin 1595 1555 (-3%) 2179 1730 (-21%) 1494 1434 (-4%) 2854 1617 (-43%)
vinext 632 602 (-5%) 1101 817 (-26%) 648 610 (-6%) 1687 702 (-58%)
three.js x10 with sourcemaps, API 597 576 (-4%) 1112 865 (-22%) 593 569 (-4%) 1452 726 (-50%)

The macOS lobehub sourcemap peak and the Windows lobehub and vinext peaks are within noise. On macOS, the PR's lobehub sourcemap peak moves by about 800 MB from run to run. The Windows commit is the highest "Commit size" in Task Manager. It drops more than the peak, because memory is committed only when it is used. The lower Linux peaks come from mimalloc 3.7, which keeps much less memory resident with transparent huge pages. They stay the same with ROLLDOWN_MEMORY_RECLAIM_DELAY=off, which turns off the cleanup and both allocator settings. With MIMALLOC_ALLOW_THP=0, the PR is only 2 to 3% lower than main, as on macOS.

Peak memory in Vite dev (MB)

Case macOS main macOS PR Linux main Linux PR Windows main Windows PR Windows commit main Windows commit PR
#9330 repro, Vite cold dev 2040 1943 (-5%) 2737 2055 (-25%) 1971 1630 (-17%) 3653 1828 (-50%)
lobehub, Vite cold dev 2793 2475 (-11%) 3870 2880 (-26%) 3060 2610 (-15%) 4769 2931 (-39%)
#11189, Vite bundled dev 493 284 (-42%) 926 397 (-57%) 512 194 (-62%) 1295 271 (-79%)

These are the same runs as in the first table. Cold dev starts with an empty deps cache.

Time of one build

Build macOS main macOS PR Linux main Linux PR Windows main Windows PR
lobehub 22.88 s 22.61 s (-1.2%) 25.45 s 25.14 s (-1.2%) 37.87 s 37.90 s (+0.1%)
lobehub with sourcemaps 24.40 s 24.51 s (+0.5%) 27.78 s 27.95 s (+0.6%) 41.85 s 41.50 s (-0.8%)
vue-vben-admin 2.72 s 2.71 s (-0.3%) 3.11 s 3.09 s (-0.8%) 5.41 s 5.43 s (+0.3%)
vinext 1.21 s 1.22 s (+0.7%) 1.44 s 1.47 s (+1.9%) 2.01 s 2.05 s (+1.8%)
three.js x10 with sourcemaps, API 241 ms 239 ms (-0.8%) 213 ms 210 ms (-1.2%) 427 ms 417 ms (-2.5%)

No time here is clearly slower. lobehub on macOS and Linux is about 1% faster, and the rest are within noise.

Known gaps

  • The cleanup adds CPU time. It runs while rolldown is idle, and the next build takes the returned pages back from the OS. On macOS, process CPU time is up to 6% higher in the API cases, which is about 40 ms after one three.js x10 build. In [Bug]: Bundled dev (vite --experimentalBundle) memory grows with every rebuild until a full GC #11189 bundled dev, it is 14% higher on macOS, 17% on Linux and 4% on Windows. With a build every 1 to 3 s, it is about 6% higher on macOS, and up to 7% on Linux and 12% on Windows. Other Linux and Windows cases show no clear rise, except one three.js x10 build on Linux (3%). With ROLLDOWN_MEMORY_RECLAIM_DELAY=off, CPU time on macOS is the same as main's.
  • Build times do not change, with two exceptions. On Windows, a build that starts after a cleanup is about 3% slower (408 to 420 ms with a build every second, 405 to 418 ms with a build every 3 s). A single 3,700-chunk build is 3 to 4% slower on Linux and Windows (184 to 192 ms and 330 to 341 ms).
  • During back-to-back builds with no pause ([Bug]: RSS keeps growing across repeated closed builds in a long-lived process (mimalloc v3) #10985), the cleanup cannot run. It runs once the builds stop.
  • A cleanup that has started does not stop when a build starts, so the two can overlap, for example in watch mode with an edit every 1 to 3 s. In my runs on macOS and Linux, the rebuild times did not change, and CPU time was about 6% higher on macOS.
  • transform, minify and parse from rolldown/utils do not start the cleanup. Their async versions run on Node's libuv thread pool, which the cleanup does not reach. Their sync versions run on the calling JS thread, which the cleanup reaches only if that thread has created a bundler, a watcher or a dev engine.
  • On Linux, a machine whose memory is fragmented, for example after days of uptime, can make builds after a cleanup slower. mimalloc marks its memory MADV_HUGEPAGE, so with transparent huge pages and the default defrag=madvise, the kernel compacts memory synchronously when the next build touches the returned pages, and most of these compactions fail. On such a machine (x86_64, kernel 6.18, THP always, 7 days of uptime), an API build after a 2 s pause took 675–741 ms against 606–611 ms with off, and watch mode with an edit every 3 s used 59 s of CPU against 35–38 s. ROLLDOWN_MEMORY_RECLAIM_DELAY=3000 brought the CPU back to 37–44 s, and off or MIMALLOC_ALLOW_THP=0 removes the difference.
  • On Linux with transparent huge pages, the kernel can turn partly returned 2 MiB ranges back into huge pages, so idle memory grows again over about 10 minutes. main does the same. MIMALLOC_ALLOW_THP=0 avoids it, but makes builds 4 to 8% slower.
  • mi_theap_quiescent_abandon is new in mimalloc 3.6 and is in the experimental part of its API.

@netlify

netlify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 5677f88
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6b0814884631539715049bb9

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-memory-reclaim-rolldown-rs.voidzero-docs.workers.dev (commit 5677f88)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://195f18db-rolldown-rs.voidzero-docs.workers.dev 5677f88 2026-11-26T11:19:10.314Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://b42f7e96-rolldown-rs.voidzero-docs.workers.dev ce99614 2026-11-26T08:43:45.937Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://580ecb41-rolldown-rs.voidzero-docs.workers.dev c83b222 2026-11-26T08:09:36.462Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://f19995af-rolldown-rs.voidzero-docs.workers.dev ac204e0 2026-11-26T08:01:16.614Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://544b8166-rolldown-rs.voidzero-docs.workers.dev 7cc6907 2026-11-26T04:39:54.583Z Visit the dashboard ↗
  • Build: In progress 🔵

View logs ↗
65562ac 2026-11-26T04:35:41.975Z View logs ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://9b0369f1-rolldown-rs.voidzero-docs.workers.dev 6e224c1 2026-11-26T02:59:24.533Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://49705a19-rolldown-rs.voidzero-docs.workers.dev f4a61ae 2026-11-26T02:39:32.441Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://dac51d0b-rolldown-rs.voidzero-docs.workers.dev b043cbd 2026-11-26T01:58:19.738Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://fb4d3cea-rolldown-rs.voidzero-docs.workers.dev 146eed4 2026-11-26T01:49:15.119Z Visit the dashboard ↗

View all previews: View all previews ↗

@shulaoda
shulaoda force-pushed the fix/memory-reclaim branch 2 times, most recently from ea13de0 to eeb4d50 Compare November 17, 2026 14:15
graphite-app Bot pushed a commit that referenced this pull request Nov 18, 2026
…#11769)

Closes #10984
Related to #11655

`BindingBundler` kept the handle of every build until `close()`. Each handle pins its build's `PluginDriver`, so every `generate()` on the same bundle kept one more build's modules in memory.

> [!WARNING]
> The plugin timings report adds up a build's clocks when the next build starts. A build writes its clocks only when it ends, so if builds on the same bundle overlap, a build that is still running is left out.
Thegreatsura pushed a commit to Thegreatsura/gram that referenced this pull request Nov 18, 2026
## Summary

Cuts the memory the three local Vite dev servers (`client/dashboard`,
`client/admin`, `dev-idp-dashboard`) hold after a page load by roughly
30%.

- **Start scripts**: `start:dashboard`, `start:admin-dashboard` and
`start:dev-idp-dashboard` now set allocator, worker-thread and V8 heap
limits before Node starts. Each one yields to a value already in the
environment, so `mise.local.toml` can override it.
- **Vite 8.3.5 → 8.3.7** (Rolldown 1.2.15 → 1.2.18) for the dashboard,
admin and dev-idp-dashboard workspaces. 8.3.8 is newer than the repo's
`minimumReleaseAge` allows, so the catalog stops at `^8.3.7`.
- **`Icon` component**: looks icons up on the `lucide-react` namespace
instead of `lucide-react/dynamicIconImports`. A new test checks that
every icon name still resolves.

### Savings

RSS in MB after loading the app's entry page and forcing a GC, measured
on aarch64 Linux with a warm dependency cache:

| Dev server | Before | After |
|---|---|---|
| dashboard | 1,246 | 872 |
| admin | 568 | 394 |
| dev-idp-dashboard | ~520 | ~400 |
| **Total** | **~2,330** | **~1,670** |

Idle, before any page load, the three drop from about 900 MB to about
660 MB combined.

The `Icon` change also removes about 1,750 requests from every dashboard
page load in dev (8,372 modules → 6,614) and cuts the pre-bundled
dependency cache from 4,587 files to 1,071. The production build is
unchanged in total size; its lucide chunk shrinks from 720 KB to 637 KB.

## Motivation

The three Vite dev servers were about half of the memory a worktree's
local stack uses, and several worktrees often run at once.

Most of what they held was not live data:

- V8 let the heap grow towards its default ~4 GB limit before
collecting, although the dashboard server keeps only about 370 MB live.
- Rolldown's allocator and glibc's per-thread arenas kept freed memory
instead of returning it, spread over 46 threads.
- Importing `dynamicIconImports` next to the main `lucide-react` entry
made Vite pre-bundle every icon as its own file. Production already
ships all of lucide in one chunk, so the lazy per-icon imports saved
nothing there.

The flags have to be in the environment before Node starts, which is why
they are in the start scripts and not in `vite.config.ts`. The flags,
not the Vite upgrade, account for the measured memory saving: 8.3.7
alone made no measurable difference, but it honours CPU limits when
sizing worker threads and trims module sourcemaps.

Not addressed here: a dev server that pre-bundles dependencies itself on
a cold cache still keeps about 1.3 GB (dashboard) until its next
restart. That is an upstream Rolldown issue (rolldown/rolldown#9330)
with a fix in draft (rolldown/rolldown#11655).

## Gutternote review steps

No intended visual change. Icons rendered through the shared `Icon`
component are now present on first paint instead of appearing a moment
later.

1. Log in and stay on the first project page that loads; any page with
buttons or cards will do.
2. Expect the icons inside buttons, cards, alerts and inputs to look as
before, with no empty gap while the page loads.

Shared change: `Icon` is used by `Button`, `Card`, `Alert`, `Input`,
`Link` and `MoreActions`, so any page works as a spot check.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Cuts the memory the three local Vite dev servers (`client/dashboard`,
`client/admin`, `dev-idp-dashboard`) hold after a page load by roughly
30%, from about 2.3 GB to about 1.7 GB combined.

- A shared script sourced by the three start tasks sets allocator,
worker-pool, and V8 heap limits before Node starts. Each value yields to
an existing environment variable so `mise.local.toml` can override it.
- Vite is bumped from 8.3.5 to 8.3.7 (Rolldown 1.2.15 → 1.2.18) in the
three dashboard workspaces. The version stops at `^8.3.7` because 8.3.8
is newer than the repo's `minimumReleaseAge` allows.
- The `Icon` component now resolves icon names directly on the
`lucide-react` namespace instead of through
`lucide-react/dynamicIconImports`, and a new test verifies every icon
name still resolves.
- The MCP consent‑tools bundle
(`server/internal/mcp/consent_assets/consent-tools.js`) was rebuilt to
match the new Vite.

**Side effects**

- Icons rendered through the shared `Icon` component appear immediately
instead of popping in a moment after page load.
- Dashboard page loads in dev drop about 1,750 requests (8,372 modules →
6,614), and the pre-bundled dependency cache shrinks from 4,587 files to
1,071.
- The `Icon` change has no effect on production total size; the lucide
chunk shrinks from 720 KB to 637 KB.

<sup>Written for commit 0199251.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/speakeasy-api/gram/pull/9187?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/speakeasy-api/gram/9187?returnTo=https%3A%2F%2Fgithub.com%2Fspeakeasy-api%2Fgram%2Fpull%2F9187&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->

<!-- gram-preview-bot -->

---

## 🚀 Preview Environment (PR speakeasy-api#9187)

**Preview URL:** https://pr-9187.dev.getgram.ai

| Component | Status | Details | Updated (UTC) |
|-----------|--------|---------|---------------|
| ✅ Database | Ready | Existing database reused | 2026-11-17 14:53:27. |
| ✅ Images | Available | Container images ready | 2026-11-17 14:54:36. |

<!--
state:eyJEYXRhYmFzZSI6eyJlbW9qaSI6IuKchSIsInN0YXR1cyI6IlJlYWR5IiwiZGV0YWlscyI6IkV4aXN0aW5nIGRhdGFiYXNlIHJldXNlZCIsInRpbWUiOiIyMDI2LTExLTE3IDE0OjUzOjI3LiJ9LCJJbWFnZXMiOnsiZW1vamkiOiLinIUiLCJzdGF0dXMiOiJBdmFpbGFibGUiLCJkZXRhaWxzIjoiQ29udGFpbmVyIGltYWdlcyByZWFkeSIsInRpbWUiOiIyMDI2LTExLTE3IDE0OjU0OjM2LiJ9fQo=
-->
<sub>Gram Preview Bot</sub>
<!-- /gram-preview-bot -->

---------

Co-authored-by: Claude Fable 5.2 <[email protected]>
graphite-app Bot pushed a commit that referenced this pull request Nov 18, 2026
Related to #11143

Drop the sourcemaps of each rendered module once its chunk is joined.

Each module in the output kept its sourcemaps, but nothing reads them after the join, because the chunk's own map already covers them. They stayed alive through minification, and after the build for as long as JS held the output.

This part is split out from #11655.

## Memory

Rust heap on macOS arm64, counted by the tracking allocator in a debug binding. The input is three.js x10, and each value is the range of three interleaved runs.

### Idle, while JS holds the output after the build

| Case | main | This PR |
|---|---|---|
| `sourcemap: true` | 118.3 to 118.4 MB | 80.8 to 80.9 MB |
| `sourcemap: false` | 24.4 to 24.6 MB | 24.3 to 24.6 MB |

### Peak during the build

| Case | main | This PR |
|---|---|---|
| `sourcemap` and `minify` | 520.0 to 520.4 MB | 482.0 to 482.7 MB |
| `sourcemap` and `minify`, split into 12 chunks | 522.7 to 524.9 MB | 487.0 to 488.2 MB |
| `sourcemap` only | 348.1 to 348.7 MB | 347.8 to 348.4 MB |
| neither | 347.7 to 348.5 MB | 347.7 to 348.4 MB |

The peak only drops with `minify`, which runs after every chunk is joined. Without it, the peak comes earlier, before these maps exist.

### Peak memory in Node

Peak process memory (`phys_footprint`) with the release binding, five interleaved runs.

| Case | main | This PR |
|---|---|---|
| One build, `sourcemap` and `minify` | 703 to 719 MB | 692 to 714 MB |
| One build, `sourcemap` only | 522 to 526 MB | 521 to 528 MB |
| One build, neither | 415 to 420 MB | 417 to 423 MB |
| Five builds holding all outputs, `sourcemap` | 1227 to 1257 MB | 1066 to 1085 MB |
| Five builds holding all outputs, `sourcemap` and `minify` | 1548 to 1634 MB | 1420 to 1465 MB |

The effect is only clear in very large projects.
@akirasosa

Copy link
Copy Markdown

Another data point: this PR's CI build (727aecd, the rolldown-native-ubuntu-latest artifact) fixes the cold-start case for us.

Setup: Vite 8.3.8 dev server (not bundled dev), React app. The dependency optimizer pre-bundles 66 deps (26 MB of output). Linux x64, 32 cores, Node 26.12.1. RSS is VmRSS from /proc/<pid>/status.

Vite dev server, cold start (no node_modules/.vite), RSS after the first page load:

rolldown RSS
1.2.19 (what Vite 8.3.8 resolves) ~1,960 MB
727aecd (this PR) ~540 MB
1.2.19, warm optimizer cache (for comparison) ~510 MB

rolldown alone, same 66 entries, write() then close() then a forced GC:

rolldown After write() After close + GC + 5 s
1.2.19 1,640 MB 1,640 MB
1.3.3 1,591 MB 1,591 MB
727aecd 1,609 MB 137 MB

Thread count: with 1.2.19, the retained memory scales with the thread pool. Limiting the process with a systemd CPUQuota gives these numbers: 100% → 627 MB, 200% → 710 MB, 400% → 830 MB, and no quota (32 cores) → 1,640 MB. This is consistent with #11233.

Bundled dev (experimental.bundledDev: true) is not affected: it stays at ~2.4 GB with this PR. That is expected, because the dev bundle is live data.

Set the allocator options with `mi_option_set_default`. It keeps a value
set through a `MIMALLOC_*` environment variable, whatever the letter case
of its name.
shulaoda added a commit that referenced this pull request Nov 24, 2026
…ract release_arc helper (#11855)" (#11898)

Related to #11899

This reverts #11855, which is not in any release yet.

#11655 fixes the related memory problem. It returns freed memory to the
OS once rolldown is idle, and lets V8 GC track the native memory that an
output holds. #11855 only adds an API to drop native data early. It does
not fix the actual problem, and it is not automatic, because every
caller has to know when to drop.

On wasm, #11655 does not help, because the GC does not see Wasm memory.
That case needs a better solution than calling `dropInner()` from JS
after every hook. #11899 is that solution. Plugin contexts hold their
build weakly, so the build frees its data when it finishes, and on wasm
JS gets plain data instead of native objects. No class needs
`dropInner()`, and a context that a plugin keeps still works for the
rest of its build, as in Rollup. #11899 has the measurements and a
comparison with Rollup, main and #10268.

#10268 calls these methods, so it needs to follow this change.
shulaoda added a commit that referenced this pull request Nov 24, 2026
Related to #6121, #9330 and #10985

`freeExternalMemory` from `rolldown/experimental` drops the Rust data
behind an output, but the process does not get the memory back. mimalloc
keeps the freed pages with the threads that allocated them, so the
memory stays resident and is only reused by a later build in the same
process. #9330 and #10985 both report `freed: true` with no change in
memory.

On main, after one three.js x10 build with sourcemaps, the call returns
`{ freed: true }` and the process stays at 818 MB 3 s later, the same as
when the output is kept.

The underlying problem is fixed by #11655. It returns the memory to the
OS once rolldown is idle, and lets V8 see how much native memory an
output holds, so dropping the output is enough.

Neither Vite nor any third-party project uses `freeExternalMemory`. On
GitHub, the only results are copies of rolldown's own type files and one
project that stubs it as a no-op.

This also removes `dropInner()`, `ExternalMemoryStatus`, and the
`Option` around the data of `BindingOutputChunk` and
`BindingOutputAsset`, which only existed for this API.
# Conflicts:
#	crates/rolldown_binding/src/types/binding_output_asset.rs
#	crates/rolldown_binding/src/types/binding_output_chunk.rs
#	packages/rolldown/src/binding.d.cts
#	packages/rolldown/src/rolldown-binding.wasi.d.cts
@socket-security

socket-security Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​mimalloc-safe@​0.1.70 ⏵ 0.1.7110010097100100

View full report

@shulaoda shulaoda changed the title fix(binding): return memory to the OS once rolldown is idle perf(binding): return memory to the OS once rolldown is idle Nov 24, 2026
@shulaoda

Copy link
Copy Markdown
Member Author

/ecosystem-ci run

@shulaoda

Copy link
Copy Markdown
Member Author

The design holds up. I checked it against the mimalloc 3.7.0, napi-rs and tokio sources. The FFI declarations, the option numbers, the MIMALLOC_* precedence and the build counter all look right. One bug (the purge at memory_reclaim.rs:210) and some small gaps are inline.

Three points have no line in the diff:

  • DevEngine::close (crates/rolldown_dev/src/dev_engine.rs:471) notifies while Bundler.cache still holds the incremental snapshot (every AST). The snapshot is freed later at GC, and nothing notifies then. Taking the cache in close() before the notify, or notifying from a Drop, would cover it.
  • No test checks that a round ever runs. packages/rolldown/tests/runtime-workers.test.ts already reads thread names on Linux. One build with ROLLDOWN_MEMORY_RECLAIM_DELAY=0 could check that the reclaim thread exists (Linux shows it as rolldown-reclai), and off could check that it does not.
  • AGENTS.md asks for a // See internal-docs/memory-reclaim/... pointer in memory_reclaim.rs and build_activity.rs.

Reviewed with Claude Opus 5.5.

  • For DevEngine::close, the notify is covered by baef2ab. The snapshot and the plugin driver both live in Bundler, so they drop together when the dev engine is collected, and the guard notifies then. With a dev engine on three.js x10, memory was 424 MB after close() and 15 MB after the engine was collected. Dropping the snapshot in close() would give about 390 MB back at close, but that is a lifecycle change outside this PR, so I'll do it separately.
  • For a test that a round runs, I'll implement a related test harness later.
  • The // See internal-docs/memory-reclaim/implementation.md pointers are added to memory_reclaim.rs and build_activity.rs in 6e224c1.

@shulaoda

Copy link
Copy Markdown
Member Author

I measured this on Linux x64 with THP always, against main at c5d9a49.

Anonymous RSS after the work stops is 54–96% lower than on main.

The peak and the time of one build are not worse.

Two things are worse than on main:

  • Builds after an idle pause are slower. With 20 API builds and a 600 ms pause after each, a build takes 743 ms instead of 605 ms (+23%). With a 2 s pause, it takes 727 ms instead of 619 ms (+17%). Process CPU is 38% and 33% higher. The returned memory is page-faulted back in. With ROLLDOWN_MEMORY_RECLAIM_DELAY=off, the builds are as fast as on main.

Thanks for measuring. I tried to reproduce the slower builds on the current head (6e224c1), but I couldn't.

Setup: a Linux arm64 VM (OrbStack, kernel 7.2.12, 13 cores, 15 GB) with THP always, three.js x10 with sourcemaps, 20 API builds per process with a pause after each, 3 processes per row. "off" is ROLLDOWN_MEMORY_RECLAIM_DELAY=off.

Pause Build First build Later builds (median) System CPU per later build RssAnon before each later build RssAnon 3 s after the last build
600 ms PR 213–307 ms 234–243 ms 33–44 ms 893 MB 152–172 MB
600 ms off 214–225 ms 229–234 ms 27–32 ms 879 MB 917–967 MB
2 s PR 213–228 ms 233–236 ms 43–49 ms 164 MB 156–188 MB
2 s off 215–233 ms 232–236 ms 34–39 ms 874 MB 893–902 MB

With a 2 s pause, every build starts after a round. RssAnon is 164 MB before each build instead of 874 MB. The builds still take the same time as with off, and about as long as the first build of a fresh process. Faulting the memory back in costs 7 to 10 ms of system CPU per build. With THP defrag also set to always, the PR took 233–234 ms and off took 229–234 ms.

With a 600 ms pause, there is no round between builds anymore. Since 146eed4 a notification only sets a flag, and a round starts 0.5 to 1 s after the last one. The memory still drops after the last build.

On a large project it looks the same. These are 4 Vite builds of lobehub in one process on macOS, 2 processes per row, with mimalloc memory:

Pause Build First build Later builds Memory before each later build Memory 5 s after the last build
2 s PR 21.7 / 22.6 s 21.3–21.9 s 651–1341 MB 1665–1670 MB
2 s off 21.9 / 22.0 s 21.2–22.3 s 2125–3420 MB 2919–3459 MB
5 s PR 21.9 / 22.5 s 21.3–22.1 s 659–1347 MB 1667–1675 MB
5 s off 21.9 / 21.9 s 21.3–21.7 s 2568–3994 MB 2713–3067 MB

So here a build after a round costs about as much as a cold build, which is the expected trade-off, and it doesn't show in the build time. The 1.51 s of system CPU per build you saw is far more than the 7 to 10 ms here. Could you share your kernel version and THP settings (enabled, defrag and khugepaged), or run your script again on the current head?

@shulaoda

Copy link
Copy Markdown
Member Author
  • The cleanup overlaps builds, but the description says it does not run during one. In watch mode with 20 edits 1 s apart, four rebuilds overlapped a cleanup. CPU rose 17%, and the p95 time from edit to rebuilt output went from 629 to 688 ms.

You're right that the description was too strong about the overlap in watch mode. A cleanup never starts while a build runs, but a build that starts during a cleanup does not wait for it. I updated the description and listed the overlap under Known gaps.

I measured your watch case on the current head (6e224c1). rolldown's watch() builds three.js x10 with sourcemaps and writes them, and a file is edited 20 times, every 1 s or every 3 s. Each row is two runs. CPU is the process CPU during the 20 edits, and memory is read 10 s after the last edit.

Linux arm64 VM (OrbStack, kernel 7.2.12), THP always:

Edit every Delay Rebuild p50 Rebuild p95 CPU (system) RssAnon after
1 s 500 ms 253 / 253 ms 275 / 271 ms 14.3 / 14.4 s (1.3 / 1.2) 194 / 197 MB
1 s 3 s 249 / 244 ms 278 / 253 ms 14.2 / 13.5 s (1.0 / 0.9) 201 / 196 MB
1 s 5 s 252 / 250 ms 282 / 283 ms 13.6 / 14.3 s (0.9 / 1.1) 183 / 170 MB
1 s off 245 / 239 ms 279 / 256 ms 14.0 / 13.3 s (0.8 / 0.8) 933 / 886 MB
3 s 500 ms 251 / 249 ms 270 / 264 ms 14.1 / 13.6 s (1.4 / 1.3) 207 / 222 MB
3 s 3 s 244 / 245 ms 260 / 253 ms 14.0 / 13.8 s (1.1 / 1.1) 204 / 203 MB
3 s 5 s 245 / 244 ms 260 / 264 ms 14.0 / 14.1 s (1.1 / 1.1) 199 / 193 MB
3 s off 252 / 247 ms 275 / 283 ms 14.4 / 14.0 s (1.0 / 0.9) 917 / 927 MB

macOS, with mimalloc memory:

Edit every Delay Rebuild p50 Rebuild p95 CPU (system) Memory after
1 s 500 ms 259 / 254 ms 285 / 266 ms 19.1 / 19.0 s (6.4 / 6.1) 85 / 85 MB
1 s 3 s 256 / 256 ms 266 / 283 ms 18.9 / 18.5 s (5.6 / 5.5) 88 / 90 MB
1 s 5 s 257 / 254 ms 274 / 267 ms 19.1 / 18.7 s (6.0 / 5.6) 88 / 90 MB
1 s off 255 / 263 ms 262 / 290 ms 18.4 / 18.8 s (5.4 / 5.6) 758 / 740 MB
3 s 500 ms 262 / 261 ms 303 / 271 ms 20.3 / 20.3 s (7.0 / 6.9) 78 / 78 MB
3 s 3 s 256 / 255 ms 266 / 266 ms 18.7 / 18.6 s (5.7 / 5.6) 89 / 90 MB
3 s 5 s 261 / 259 ms 280 / 275 ms 18.9 / 19.3 s (5.8 / 6.0) 91 / 69 MB
3 s off 256 / 255 ms 270 / 272 ms 19.0 / 19.1 s (5.9 / 5.9) 713 / 740 MB

The rebuild times don't change with the delay on either machine. The default 500 ms costs about 6% more CPU on macOS with an edit every 3 s, and the difference on Linux is within noise. That is far from the 59.4 s against 38.2 s you measured.

So I kept the 500 ms default. rolldown's own watch mode is probably not used much, and so far I don't see a clear performance cost. A longer delay keeps the memory of every rebuild while the user edits, which raises the peak memory of a dev session, and the CPU it saves is small here. Also, since 146eed4 a notification only sets a flag, so a cleanup already starts 0.5 to 1 s after the last one, not exactly at 500 ms.

@shulaoda

Copy link
Copy Markdown
Member Author

ROLLDOWN_MEMORY_RECLAIM_DELAY=off also turns off the two allocator settings.

Could the variable be documented in docs/guide/troubleshooting.md, next to ROLLDOWN_WORKER_THREADS?

That off also turns off the two allocator settings is on purpose. It is one switch for everything this PR changes in how memory is handled, so a user who hits a problem can go back to main's behavior, apart from mimalloc 3.7, with a single variable. Both settings serve the same goal as the cleanup. On Windows less memory is committed, and on Linux more memory goes back to the OS.

The settings are only defaults, so the MIMALLOC_* variables still win. To keep them with off, for example to compare the cleanup alone, set MIMALLOC_PAGE_COMMIT_ON_DEMAND=1 on Windows or MIMALLOC_ARENA_PURGE_MIN_SIZE=64KiB on Linux. I'll make this clear where the variable is documented.

@shulaoda
shulaoda requested a review from h-a-n-a November 26, 2026 04:36

@hyfdev hyfdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The slowdown on 6e224c1 comes from THP on fragmented memory.

  • Our machine: x86_64, kernel 6.18.58, THP enabled=always, defrag=madvise, khugepaged defrag=1.
  • mimalloc marks its arenas MADV_HUGEPAGE. Under defrag=madvise, each huge-page fault after a cleanup compacts synchronously.
  • After 7 days of uptime, 14 GB was free but held only about 100 contiguous 2 MiB blocks. Almost all compactions fail.
  • API builds with a 2 s pause: 675–741 ms, against 606–611 ms with off.
  • Watch mode, 20 edits 3 s apart, default delay: rebuild p50 1,020 ms, against 644–797 ms with off.
  • CPU time is 59 s, against 35–38 s. A 3 s delay gives 37–44 s.
  • MIMALLOC_ALLOW_THP=0 removes the difference.

Could the Known gaps section mention this case and suggest a longer delay or off?

@h-a-n-a h-a-n-a left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@shulaoda
shulaoda merged commit 76d80a5 into main Nov 26, 2026
38 checks passed
@shulaoda
shulaoda deleted the fix/memory-reclaim branch November 26, 2026 11:20
@rolldown-guard rolldown-guard Bot mentioned this pull request Nov 26, 2026
shulaoda added a commit that referenced this pull request Nov 26, 2026
## [1.3.4] - 2026-11-26

### 🚀 Features

- add builtin `injectPlugin` with `include`/`exclude` (#11290) by @onmax
- magic-string: support explicit sourcemap locations (#11884) by @IWANABETHATGUY
- introduce `declaredModuleSize` to allow plugins to declare a module's real size (#11844) by @hyfdev
- binding: add dropInner() to 12 binding classes and extract release_arc helper (#11855) by @Brooooooklyn
- inline-common-chunks: add `maxDuplicatedSize` to keep widely copied chunks as files (#11845) by @mattlewis92
- cli: report when a watch round finishes (#11820) by @hyfdev
- rolldown_plugin_vite_build_import_analysis: avoid stripping import attributes when `experimental.importAttributes` is enabled (#11802) by @sapphi-red
- import-attributes: warn when a non-ESM output drops the import attributes of an external (#11797) by @shulaoda
- warn when the `watch` option is passed to `build()` (#11781) by @shulaoda

### 🐛 Bug Fixes

- keep_names: restore hoisted function names before the chunk's modules run (#11962) by @hyfdev
- external: don't drop `_/` from relative external imports (#11968) by @hyfdev
- external: don't panic on empty output filename with relative externals (#11963) by @hyfdev
- use the same path as direct imports for externals re-exported with `export *` (#11964) by @hyfdev
- sourcemap: don't panic on empty output filename (#11966) by @hyfdev
- sourcemap: treat empty `sourcemapFileNames` as unset (#11967) by @hyfdev
- rename clashing names in execution order with `chunkModulesOrder: 'module-id'` (#11943) by @hyfdev
- code-splitting: stop counting JSON modules as 0 bytes (#11939) by @hyfdev
- fetch changed modules from their creating resolution in incremental rebuilds (#11837) by @h-a-n-a
- code-splitting: keep import order through entry re-exports (#11906) by @hyfdev
- cjs: keep CommonJS named exports in `export *` of a dynamically imported module (#11835) by @hyfdev
- plugin: remove internal keys from plugin and code splitting group contexts (#11914) by @hyfdev
- remove the leftover `watch.notify` from the option validator (#11918) by @shulaoda
- return the group chunk file from `getFileName()` for a merged emitted entry (#11858) by @IWANABETHATGUY
- dev: let `this.load` of an unchanged module finish during a rebuild (#11911) by @hyfdev
- code-splitting: avoid an extra shared chunk when an entry only re-exports another entry (#11847) by @hyfdev
- treeshake: remove unused objects containing identity function calls (#11852) by @hyfdev
- cjs: avoid `ReferenceError` when re-exporting from an external `export *` in another chunk (#11848) by @hyfdev
- binding: remove stale WASI workaround in to_binding_error (#11890) by @Brooooooklyn
- inline-const: respect `inlineConst` options for default exports (#11851) by @hyfdev
- magic-string: keep trailing lines in decoded maps (#11882) by @IWANABETHATGUY
- magic-string: preserve column mappings through trim (#11881) by @IWANABETHATGUY
- magic-string: map each line of multiline replacements (#11880) by @IWANABETHATGUY
- follow Rollup for module meta and moduleSideEffects set by plugins (#11792) by @h-a-n-a
- code-splitting: import the bindings a CommonJS entry re-exports from an ES module (#11839) by @hyfdev
- cjs: stop overwriting `module.exports` of a CommonJS entry that re-exports an ES module (#11846) by @hyfdev
- sourcemap: accept undefined source entries from plugins (#11850) by @fengmk2
- code-splitting: unblock top-level awaited dynamic imports in manual groups (#11819) by @hyfdev
- runtime: resolve `require()` from the calling chunk in Node ESM output (#11834) by @hyfdev
- plugin: throw instead of panicking when a saved transform context calls `getCombinedSourcemap` (#11838) by @hyfdev
- code-splitting: only code-less entries keep side-effect-free static import edges (#11199) by @mattlewis92
- make `getCombinedSourcemap` work with `experimental.nativeMagicString` (#11107) by @IWANABETHATGUY
- plugin: avoid hangs when resolveId awaits this.load() (#11824) by @shulaoda
- keep template chunk names from overwriting explicit file names (#11831) by @hyfdev
- code-splitting: skip redundant re-export chunks (#11817) by @hyfdev
- preserve build errors when `buildEnd` fails (#11828) by @sapphi-red
- preserve top-level using with topLevelVar (#11804) by @akshathayadav378-boop
- treeshake: keep array destructuring that calls an unknown iterator (#11812) by @IWANABETHATGUY
- preserve `export` names starting with `*` in ModuleInfo.exports (#11825) by @sapphi-red
- treeshake: keep calls to functions that direct `eval` can replace (#11811) by @IWANABETHATGUY
- keep each source's content in a multi-source transform sourcemap (#11246) by @IWANABETHATGUY
- treeshake: keep calls to empty functions with a rest parameter default (#11810) by @IWANABETHATGUY
- plugin: allow this.load() while resolving entries (#11816) by @hyfdev
- cli: avoid a WASI hang when watch mode exits normally (#11815) by @shulaoda
- report effective moduleSideEffects in getModuleInfo and this.resolve (#11422) by @cestercian
- code-splitting: avoid an import cycle through an entry's re-exports (#11803) by @hyfdev
- treeshake: apply @__NO_SIDE_EFFECTS__ to functions exported after declaration (#11222) by @araishi
- code-splitting: keep unused entry re-exports from loading lazy chunks (#11753) by @hyfdev
- code-splitting: keep re-exported bindings out of dynamic import namespaces (#11799) by @hyfdev
- perf-kit: Node mode times out under the inspector with `--ready exit` or an anchored `stdout:` pattern (#11416) by @IWANABETHATGUY
- treeshaking: drop dead dynamic imports that form a cycle (#11768) by @hyfdev
- binding: release the WASI runtime when a callable builtin plugin hook rejects (#11786) by @shulaoda
- perf-kit: print real imports in the why chain (#11500) by @IWANABETHATGUY
- chunk: name emitted chunks before shared chunks (#11790) by @hyfdev
- cjs: forward exports from duplicate CommonJS entries (#11756) by @hyfdev
- code-splitting: keep chained emitted entries from becoming empty facades (#11090) by @Huzaifa-Asif

### 💼 Other

- wasi: bundle self-contained WASI loaders, staging script, and reactor checks (#11843) by @Brooooooklyn

### 🚜 Refactor

- scan: remove an unreachable branch when collecting dynamic import entries (#11919) by @shulaoda
- cli: replace the unreachable prototype pollution guard with a test (#11925) by @shulaoda
- remove the unused `DeterminedSideEffects::to_module_side_effects` (#11926) by @shulaoda
- remove more unused types, functions and re-exports (#11922) by @shulaoda
- link_stage: handle required modules only in the pre-pass (#11920) by @shulaoda
- cli: remove the leftover `inject` from the CLI options type (#11924) by @shulaoda
- rolldown_plugin_vite_build_import_analysis: remove the unused `optimizeModulePreloadRelativePaths` option (#11923) by @shulaoda
- remove experimental `freeExternalMemory` (#11886) by @shulaoda
- rust: drop direct tokio dependencies from core library crates (#11841) by @Brooooooklyn
- rolldown_plugin: move `normalize_transform_sourcemap` to utils (#11247) by @IWANABETHATGUY
- remove the unused `plugins_are_slow` method (#11800) by @shulaoda
- remove parallel plugin support (#11789) by @h-a-n-a
- remove the unused `is_css` sourcemap flag (#11782) by @shulaoda

### 📚 Documentation

- rename javascript to JavaScript (#11958) by @mdong1909
- say that resolveId fails the build when the same id is external and not external (#11910) by @h-a-n-a
- explain which resolution sets meta and moduleSideEffects in resolveId (#11907) by @h-a-n-a
- resolve the import in the `moduleSideEffects` plugin example (#11860) by @hyfdev
- clarify side-effect-free module behavior (#11856) by @IWANABETHATGUY
- clarify the behavior when `buildEnd` / `renderError` itself errors (#11829) by @sapphi-red
- add docs for `code` / `plugin` / `pluginCode` of `RolldownLog` (#11827) by @sapphi-red
- explain that a module in an entry chunk runs after the common chunks it imports (#11822) by @hyfdev
- magic-string: document `generateDecodedMap` and the segments of `hires: false` maps (#11791) by @IWANABETHATGUY

### ⚡ Performance

- binding: return memory to the OS once rolldown is idle (#11655) by @shulaoda
- scan: reserve symbol capacity for each module's facade symbols (#11854) by @magurotuna
- runtime: stop using bound functions as `__copyProps` getters (#11826) by @magurotuna
- replace `IndexVec<ModuleIdx, bool>` with `IndexBitSet` (#11805) by @IWANABETHATGUY
- rolldown_plugin_vite_manifest: look up chunk names by file name once per build (#11697) by @Boshen
- drop module sourcemaps after the chunk is joined (#11773) by @shulaoda

### 🧪 Testing

- magic-string: re-enable two passing compatibility tests (#11879) by @IWANABETHATGUY
- node: add standalone runtime/proxy/retained-context tests and vitest binding staging (#11842) by @Brooooooklyn
- cli: stop watch CLI tests from hanging on Windows (#11821) by @shulaoda

### ⚙️ Miscellaneous Tasks

- delete cancelled pkg.pr.new runs on main and debounce for 15 mins (#11928) by @shulaoda
- remove the unused `serde` features of rolldown, rolldown_plugin and rolldown_common (#11927) by @shulaoda
- deps: update vite-plus to v1.8.0 in the workspace and CI (#11896) by @camc314
- deps: update rollup submodule for tests to v4.68.8 (#11901) by @rolldown-guard[bot]
- deps: update test262 submodule for tests (#11902) by @rolldown-guard[bot]
- remove the graphite merge-when-ready label check (#11904) by @shulaoda
- deps: pin walkdir to 2.5.0 (#11897) by @hyfdev
- deps: remove remove-unused-vars (#11895) by @camc314
- deps: update rust crate testing_macros to v3 (#11876) by @renovate[bot]
- deps: update rust crates (#11873) by @renovate[bot]
- deps: update npm packages (#11872) by @renovate[bot]
- deps: upgrade oxc to 0.160.0 (#11885) by @camc314
- deps: update github actions (#11874) by @renovate[bot]
- rust: standalone runtime prep (devtools sync writer, TestDir, 1ms debounce, Wasm sourcemap inline, parking_lot_core patch) (#11840) by @Brooooooklyn
- run setup steps one by one on Windows (#11849) by @shulaoda

### ◀️ Revert

- "feat(binding): add dropInner() to 12 binding classes and extract release_arc helper (#11855)" (#11898) by @shulaoda
- "fix(code-splitting): keep chained emitted entries from becoming empty facades (#11090)" (#11891) by @hyfdev

### ❤️ New Contributors

* @fengmk2 made their first contribution in [#11850](#11850)
* @akshathayadav378-boop made their first contribution in [#11804](#11804)
* @araishi made their first contribution in [#11222](#11222)
* @Huzaifa-Asif made their first contribution in [#11090](#11090)

Co-authored-by: shulaoda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants