Repository navigation
Releases
runsc release-20261123.0-62-devpts-isig1-cow1-recyc2-mapr1-segv1-admit1 (gVisor + devpts C-c fix + page-granular copy-on-write + reuse of freed pages up to 2 MiB + reads of image files through the sentry's mapping + SEGV_MAPERR for unmapped addresses on every platform + the sentry's own per-sandbox memory limit)
gVisor at release-20261123.0-62 with the six patches in patches/, built by scripts/build_runsc_patched.sh (two builds give identical binaries). New in this release: patches/memory-admission.patch, which holds a sandbox's memory to --memory-admission-limit inside the sentry; see docs/design.md, Memory. Tarball sha256 ef01af524062bc6a587b3c975dd8c8722d738ddef352c7c84c062fc711133ae5.
runsc release-20261123.0-62-devpts-isig1-cow1-recyc2-mapr1-segv1 (gVisor + devpts C-c fix + page-granular copy-on-write + reuse of freed pages up to 2 MiB + reads of image files through the sentry's mapping + SEGV_MAPERR for unmapped addresses on every platform)
gVisor runsc for open-daytona: the previous release, runsc-20261123.0-62-devpts-isig1-cow1-recyc2-mapr1, which it replaces, plus a fifth patch, segv-maperr-unmapped.patch. sbxd/install_runsc.sh installs it by default on x86_64; --upstream installs gVisor's own release instead.
Patches, in patches/, on gVisor release-20261123.0-62 (go branch commit 2b28ba4f):
devpts-isig-pending-line.patch(gvisor/gvisor#18062): unchanged.cow-break-page-granular.patch: unchanged.recycle-small-waste.patch: unchanged.read-through-host-mapping.patch: unchanged.segv-maperr-unmapped.patch, new: gvisor/gvisor#17866 by Peter Stenger, not yet merged upstream, carried until it is. Itspkg/change applies to the go branch unmodified; its C++ tests are not part of the go branch and are left out.
Why. Under --platform kvm, upstream gVisor reports a write to or a jump into an unmapped page as SIGSEGV with SEGV_ACCERR; Linux and systrap report SEGV_MAPERR. valgrind grows a program's stack only on SEGV_MAPERR, so under kvm it kills every program it runs at the first stack extension ("Bad permissions for mapped region at address 0x1FFEFFEF50"). The patch makes the sentry set the code from its own lookup of the address, as Linux does, on every platform, and keeps the ptrace platform from treating a general protection fault as a page fault.
Measured on one Xeon Gold 5220R node (Linux 5.14), in a sandbox started the way the daemon starts one, against the previous release:
| previous, systrap | previous, kvm | this, systrap | this, kvm | |
|---|---|---|---|---|
valgrind /bin/true, valgrind 3.22 |
rc 0 | rc 139, the crash above | rc 0 | rc 0 |
valgrind --leak-check=full on a program leaking 100 bytes with a 2 MB stack |
100 bytes found | crash | 100 bytes found | 100 bytes found |
si_code matching Linux on the same node, for a read, write and instruction fetch at an unmapped address, a write to a PROT_READ page untouched and touched, a read of a PROT_NONE page and a fetch from a PROT_READ page |
7 of 7 | 5 of 7; unmapped write and fetch give 2 | 7 of 7 | 7 of 7 |
gVisor's mmap_test (built from the PR's commit) |
121 of 121 | 120 of 121 (UnmappedIsMapErr) |
121 of 121 | 121 of 121 |
gVisor's exceptions_test |
16 of 16 | 16 of 16 | 16 of 16 | 16 of 16 |
With this release on the same node, on both platforms: the new tests/segv_code_test.py PASS, and FAIL against the previous release under kvm; tests/smoke_local.sh ALL PASSED on systrap; tests/fork_memory_test.py PASS with peaks of 813 and 812 MB, ctrl_c_test.py PASS, small_read_test.py PASS at ratios 0.997 and 0.982, platform_test.py PASS; tests/daytona_sdk_test.py all passed with daytona 0.234.0 and 2.3.0. Not run: gVisor's full syscall test suite.
Reproducible: scripts/build_runsc_patched.sh built it twice, in two separate work directories with separate Go caches; both tarballs have sha256 8676704c59748cc392d76697c1f9e181578eee39d707a28ecf0bebc3fa9ed32b. C sidecars come unchanged from gVisor's release-20261123.0 tarball, checked against its sha512.
runsc release-20261123.0-62-devpts-isig1-cow1-recyc2-mapr1 (gVisor + devpts C-c fix + page-granular copy-on-write + reuse of freed pages up to 2 MiB + reads of image files through the sentry's mapping)
gVisor runsc for open-daytona: the same base and patches as runsc-20261123.0-62-devpts-isig1-cow1-recyc1-mapr1 (gVisor release-20261123.0-62, go branch commit 2b28ba4f), which it replaces, with one change to recycle-small-waste.patch. sbxd/install_runsc.sh installs it by default on x86_64; --upstream installs gVisor's own release instead.
Patches (in patches/):
devpts-isig-pending-line.patch(gvisor/gvisor#18062): unchanged.cow-break-page-granular.patch: unchanged.recycle-small-waste.patch(changed): uncommitted allocations of up to 2 MiB reuse freed pages, up from 256 KiB. 2 MiB is the unit a private anonymous page fault allocates in (the faulting range expanded to hugepage alignment), so heap growth bybrknow recycles too. A new Go test checks that a freed 2 MiB allocation is recycled, zeroed; it fails with the 256 KiB bound.read-through-host-mapping.patch: unchanged.
Why. Processes whose heaps grow and shrink fast can free pages faster than gVisor's releaser decommits them, and with the 256 KiB bound nothing reused those pages, so the sandbox's committed memory climbed with nothing holding it. FantasticML's chip-macro-placement-search (nine oracles, each with five forked decoders whose glibc heaps change by brk about 1,200 times a second) peaks at 7.1 GB PSS natively over 40 minutes of its 45 concurrent runs. Under gVisor with the previous release its sandbox grew by about 1 GB/s while its processes held about 6 GB; a full evaluation through Harbor passed 375 GB within 6 minutes and was killed by the memory limit. With this release the same evaluation, with the task's declared 96 GB as its limit, held 2.1 to 5.5 GB through its first 33 minutes.
Measured on one 224-core host shared with other work (systrap):
| previous release | this release | |
|---|---|---|
| nine chip oracles (one seed per setting), committed memory after 60 to 100 s | 47 to 76 GB | 1.5 GB |
tests/churn_memory_test.py (48 forked processes, malloc / touch / free 448 KiB from a trimmed brk heap, 60 s) |
119.5 GB, killed by the limit | 97 MB |
tests/fork_memory_test.py (813 MB peak) and ctrl_c_test.py pass. tests/small_read_test.py, 15 runs each on this host, alternating: ratio median 1.012 (previous) and 1.019 (this), with 2 and 4 of 15 runs over its 1.08 limit; the host's load makes the test noisy for both, and the difference is not conclusive.
Reproducible: scripts/build_runsc_patched.sh built it twice, in two separate work directories; both tarballs have sha256 5163e796013a2b7e9267675bd433a3652169bc00802b54f3386bc2be3393de51. C sidecars come unchanged from gVisor's release-20261123.0 tarball (checked against its sha512).
runsc release-20261123.0-62-devpts-isig1-cow1-recyc1-mapr1 (gVisor + devpts C-c fix + page-granular copy-on-write + reuse of freed small pages + reads of image files through the sentry's mapping)
gVisor runsc for open-daytona: the same base as runsc-20261123.0-62-devpts-isig1-cow1-recyc1 (gVisor release-20261123.0-62, go branch commit 2b28ba4f), which it replaces, with a fourth patch. sbxd/install_runsc.sh installs it by default on x86_64; --upstream installs gVisor's own release instead.
Patches (in patches/):
devpts-isig-pending-line.patch(gvisor/gvisor#18062): C-c raises SIGINT even when a complete line sits unread on the terminal. Unchanged.cow-break-page-granular.patch: a copy-on-write break copies only the written pages, as Linux does. Unchanged.recycle-small-waste.patch: small allocations reuse recently freed pages instead of having them decommitted and faulted in again. Unchanged.read-through-host-mapping.patch(new): after 16 reads of a file on a read-only mount (an image's root filesystem, the lower layer of the sandbox's overlay), later reads copy from the sentry's own shared mapping of the file's host descriptor instead of making a hostpreadvper call. Chunks of 2 MiB stay mapped until the file leaves the dentry cache, at most 2,048 per sandbox; past that, or if a copy faults, the read goes to the host. It adds no sandbox memory (the pages are the host's page cache). It carries Go tests, whichscripts/build_runsc_patched.shruns before building.
Measured on one Xeon Gold 5320 node, same sandbox spec, without / with the new patch:
| Linux | systrap, without | systrap, with | kvm, without | kvm, with | |
|---|---|---|---|---|---|
random 4 KiB pread of a 48 MB SQLite file in the image |
0.85 to 0.91 µs | 6.20, 6.24 µs | 5.48, 5.63 µs | 8.79, 8.82 µs | 2.08, 2.08 µs |
| a fixed slice of Terminal-Bench 2.0 query-optimize's query | 56.9, 57.2 s | 75.0 s | 70.2 s | 98.2 s | 64.9 s |
Through unmodified Harbor (oracle agent, daytona 0.210.0), six query-optimize trials side by side on one such node: with --platform auto (kvm) 2 of 2 passed, the verifier taking 729 and 767 s of its 900 s; under systrap 1 of 2 with this release (894 s) and 0 of 2 with the previous one.
Other work on the same node (systrap), without / with: forking a 512 MiB heap into 8 children, compiling the Python standard library, a 16 KiB map-write-unmap loop, writing and syncing 64 MiB and reading 20,000 small files once each were unchanged within their run-to-run spread. tests/small_read_test.py, fork_memory_test.py, ctrl_c_test.py and daytona_sdk_test.py (22 of 22, stop and start included) pass with it on both platforms.
Reproducible: scripts/build_runsc_patched.sh built it twice, in two separate work directories; both tarballs have sha256 482a48361b63be52e5842700a8c293ae145af08e19dfa2db4dcec1b2ffb1bcad. C sidecars come unchanged from gVisor's release-20261123.0 tarball (checked against its sha512).
runsc release-20261123.0-62-devpts-isig1-cow1-recyc1 (gVisor + devpts C-c fix + page-granular copy-on-write + reuse of freed small pages)
gVisor runsc for open-daytona: the same base as runsc-20261123.0-62-devpts-isig1-cow1 (gVisor release-20261123.0-62, go branch commit 2b28ba4f), which it replaces, with a third patch. sbxd/install_runsc.sh installs it by default on x86_64; --upstream installs gVisor's own release instead.
Patches (in patches/):
devpts-isig-pending-line.patch(gvisor/gvisor#18062): C-c raises SIGINT even when a complete line sits unread on the terminal. Unchanged.cow-break-page-granular.patch: a copy-on-write break copies only the written pages, as Linux does, instead of the 2 MiB around them. Unchanged.recycle-small-waste.patch(new): allocations of up to 256 KiB reuse recently freed pages, zeroed, instead of getting fresh ones, and the releaser keeps up to 4 MiB of freed small pages per sandbox for that. Without it, a program that maps a few pages, writes them and unmaps them in a loop (CPython's frame-stack chunks, glibc's large blocks) has every freed page decommitted and faulted in again. It carries Go tests; on the unpatched allocator the reuse test fails.
Measured on one Xeon Gold 5320 node, same sandbox spec, systrap and kvm platforms (sbxd --platform, new in the same commit):
| Linux | systrap, before | systrap, this release | kvm, before | kvm, this release | |
|---|---|---|---|---|---|
| map 16 KiB, write its 4 pages, unmap (per round) | 7.8 µs | 42.8, 44.3 µs | 38.5, 38.8 µs | 30.3, 31.8 µs | 12.2, 12.4 µs |
| Terminal-Bench 2.0 schemelike-metacircular-eval, slowest case | 15.5 to 15.9 s | 44.7, 45.6 s | 36.7, 40.3 s | 33.7, 34.0 s | 26.0, 26.0 s |
Other work on a Xeon Gold 5220R node (systrap), before / after: fork of a 512 MiB heap into 8 children 0.81, 0.83 s / 0.84, 0.86 s, peak 810 / 811 MB; compiling the Python standard library 3.5, 3.7 s / 3.2, 3.4 s; 1 MiB map-write-unmap rounds (above the bound) 693, 700 µs / 680, 721 µs. Committed memory after 200,000 rounds of 16 KiB: 41.2 MB against 37.8 MB.
Reproducible: scripts/build_runsc_patched.sh built it three times, in two separate work directories; every tarball has sha256 22d0af36c4cc8c039619f2fe4334d415f57d2652eca7629aa67ae420e83744f2. C sidecars come unchanged from gVisor's release-20261123.0 tarball (checked against its sha512).
runsc release-20261123.0-62-devpts-isig1-cow1 (gVisor + devpts C-c fix + page-granular copy-on-write; nvproxy for driver 615.71.10)
gVisor runsc for open-daytona: gVisor at release-20261123.0-62 (go branch commit 2b28ba4f, the first whose nvproxy supports NVIDIA driver 615.71.10, gvisor/gvisor#17018) plus the same two patches as runsc-20261116.0-devpts-isig1-cow1, which it replaces. sbxd/install_runsc.sh installs it by default on x86_64; --upstream installs gVisor's own release instead.
Patches (unchanged files in patches/, both applied cleanly to this base):
devpts-isig-pending-line.patch(gvisor/gvisor#18062): C-c raises SIGINT even when a complete line sits unread on the terminal.cow-break-page-granular.patch: a copy-on-write break copies only the written pages, as Linux does, instead of the 2 MiB around them.
Why a new base: GPU sandboxes (runsc --nvproxy) need a gVisor whose nvproxy supports the node's driver. The previous base (20261116.0) lists 615.71.09 but not 615.71.10; this one lists 39 versions from 535.129.03 to 620.70.06.
Checked on x86_64 Linux (one daemon, tests/ctrl_c_test.py and tests/fork_memory_test.py):
| runsc | C-c behind an unread line | fork memory, 512 MiB heap, 8 children (committed peak) |
|---|---|---|
| this release | PASS (SIGINT at once) | PASS, 811 MB |
| upstream release-20261123.2 | FAIL (still running after 5 s) | FAIL, 4,691 MB |
GPU: on an H200 node with driver 615.71.10, a gpu=1 sandbox through sbxd listed only its GPU in nvidia-smi, torch 2.6.0 saw 1 device and ran a bf16 8192^3 matmul 50 times in 0.31 s. tests/smoke_local.sh passes.
Reproducible: scripts/build_runsc_patched.sh built it twice in separate work directories; both tarballs have sha256 f58095bb78c3e640e2b1cb0f35e1d4736d5d18aece0487b563609e4180f55393. C sidecars come unchanged from gVisor's release-20261123.0 tarball (checked against its sha512).
runsc release-20261116.0-devpts-isig1-cow1 (gVisor + devpts C-c fix + page-granular copy-on-write)
gVisor runsc for open-daytona: release-20261116.0 plus two patches. sbxd/install_runsc.sh installs it by default on x86_64; install_runsc.sh --upstream (or SBX_RUNSC_UPSTREAM=1) installs gVisor's own release instead. It replaces runsc-20261116.0-devpts-isig1, which carried the first patch only.
What the patches fix.
patches/devpts-isig-pending-line.patch, proposed upstream in gvisor/gvisor#18062: under upstream runsc, once a complete line sits unread on a terminal, a following C-c raises no SIGINT. With the patch, signal characters are acted on when they arrive, as Linux does.patches/cow-break-page-granular.patch: upstream gVisor breaks copy-on-write by copying the 2 MiB-aligned range around the written page. Afterfork(), a child that writes a little of a large inherited heap (CPython does, updating reference counts) then holds a near-full copy of it. With the patch only the written pages are copied, as Linux does. Measured on one x86-64 node, committed sandbox memory: a 512 MiB heap with 8 children each writing one byte per 64 KiB held 4,681 MB upstream and 810 MB patched (773 MB summed PSS natively); Terminal-Bench 2.0'scount-dataset-tokensreference solution with 24 workers, whose task declares 2 GB, held 4,423 MB upstream and 830 MB patched (897 MB natively). The cost is one fault per written page: 8 children writing every page of a 512 MiB inherited heap took 14.5 s patched against 3.5 s upstream, andcount-dataset-tokensran in 23.5 s against 19.6 s.
Asset. runsc-release-20261116.0-devpts-isig1-cow1-amd64.tar.gz, linux/amd64 only, in the layout of gVisor's release tarball: runsc and gvisor-bin/. runsc, gvisor_sentry (which carries the patches), runsc-netgofer, runsc-metric-server and checkpointgofer are built from the patched tree; gvisor-sentry-prewarmer, runsc-fd-parking and gvisor-proc-umounter come unchanged from the upstream release. install_runsc.sh checks the tarball against a sha256 pinned in the script (the same one SHA256SUMS lists) and every file against the FILES.sha256 inside it. runsc --version prints release-20261116.0-devpts-isig1-cow1.
There is no arm64 build: an arm64 build from gVisor's go branch panics at sandbox start. On aarch64, install_runsc.sh installs upstream gVisor.
Rebuild. scripts/build_runsc_patched.sh in this repository checks out gVisor's go branch at aab1e89c78fd72456df0b34dd5f38f4d21cea0b7 (the first commit after release-20261116.0, which adds no code changes), applies both patches and builds with Go 1.27.3. Two builds from the same inputs, in separate work directories, gave the same tarball (sha256 6eeae7e58bc50e97888bad16abee0113fe8d0626bdeb362471b497b3adb78750).
runsc release-20261116.0-devpts-isig1 (gVisor + devpts C-c fix)
gVisor runsc for open-daytona: release-20261116.0 plus one patch, the devpts fix proposed upstream in gvisor/gvisor#18062. sbxd/install_runsc.sh installs it by default on x86_64; install_runsc.sh --upstream (or SBX_RUNSC_UPSTREAM=1) installs gVisor's own release instead.
What the patch fixes. Under upstream runsc, once a complete line sits unread on a terminal (keys sent with tmux send-keys to a pane while a command runs, ending in Enter), a following C-c raises no SIGINT, and input typed after that line is held back until something reads the terminal. With the patch, signal characters are acted on when they arrive, as Linux does, and the queued input is flushed unless NOFLSH is set. Checked on x86-64: after "a\n", "b" and C-c are written to a terminal whose foreground process does not read it, the process is killed by SIGINT with this build and is still running 2 s later with upstream release-20261116.0.
Asset. runsc-release-20261116.0-devpts-isig1-amd64.tar.gz, linux/amd64 only, in the layout of gVisor's release tarball: runsc and gvisor-bin/. runsc, gvisor_sentry (which carries the fix), runsc-netgofer, runsc-metric-server and checkpointgofer are built from the patched tree; gvisor-sentry-prewarmer, runsc-fd-parking and gvisor-proc-umounter come unchanged from the upstream release. install_runsc.sh checks the tarball against a sha256 pinned in the script (the same one SHA256SUMS lists) and every file against the FILES.sha256 inside it. runsc --version prints release-20261116.0-devpts-isig1.
There is no arm64 build: an arm64 build from gVisor's go branch panics at sandbox start. On aarch64, install_runsc.sh installs upstream gVisor.
Rebuild. scripts/build_runsc_patched.sh in this repository checks out gVisor's go branch at aab1e89c78fd72456df0b34dd5f38f4d21cea0b7 (the first commit after release-20261116.0, which adds no code changes), applies patches/devpts-isig-pending-line.patch and builds with Go 1.27.3. Two builds from the same inputs give a byte-identical tarball.