An open-source, faster Devin alternative
TypeScript
docs(microvm): drop the per-tier vCPU table — CPU allocation is not measurable from inside the guest (nproc reports the host, not the share) so the numbers were unsubstantiated; say instead that CPU follows memory and that cpuCount and diskMB are accepted but are not controls on this runtime
Brian Reardonda29d145b893
diff --git a/docs/microvm/sdk-differences.mdx b/docs/microvm/sdk-differences.mdxindex f0c5bc41..a789cbe1 100644--- a/docs/microvm/sdk-differences.mdx+++ b/docs/microvm/sdk-differences.mdx@@ -32,6 +32,8 @@ connection pool captured the upgrade, and WebSockets cannot be negotiated over H| `sandbox.restoreCheckpoint(id)` | Restores files onto a fresh boot — no live process state. || `sandbox.setTimeout(seconds)` | Clamped to the lifetime ceiling; check `applied` in the response. || `Sandbox.create({ memoryMB })` | A fixed enum up to 8 GB, and only tiers published in your region; anything else is refused with the list. |+| `Sandbox.create({ cpuCount })` | Accepted, but not a control — CPU is allocated with memory. |+| `Sandbox.create({ diskMB })` | Not a control here; disk comes from the image. |## Unchangeddiff --git a/docs/microvm/sizes.mdx b/docs/microvm/sizes.mdxindex fd1f883d..6d2bebd9 100644--- a/docs/microvm/sizes.mdx+++ b/docs/microvm/sizes.mdx@@ -14,22 +14,32 @@ fixed list rather than any number you like, and a size cannot change after launcThese are the only values that can exist, on the `al2023-1` base image:-| Memory | vCPU | Notes |-|---|---|---|-| 512 MB | shared | |-| 1024 MB | shared | |-| 2048 MB | 1 | first size with a full vCPU |-| **4096 MB** | 1 | **default** |-| 8192 MB | 1 (peak to 4×) | largest available |+| Memory |+|---|+| 512 MB |+| 1024 MB |+| 2048 MB |+| **4096 MB** — default |+| 8192 MB |<Note>This is an enum, not a range. `3072` and `16384` are not "not yet published" — they cannot bepublished, because the platform does not offer them. The largest sandbox available is 8 GB.</Note>-CPU is not separately selectable. The platform allocates it with memory: a full vCPU from-2048 MB upwards, with peak bursting to roughly 4× on the largest size. **4096 MB is the default-specifically because it is the smallest size that reliably delivers a full vCPU.**+## CPU++CPU is **not separately selectable** on this runtime. The platform allocates it in proportion to+the memory size, and there is no knob for it.++<Warning>+`cpuCount` is accepted by the create API for compatibility, but it does not size the sandbox+here. Do not rely on it — set `memoryMB` and let CPU follow.+</Warning>++Measuring CPU from inside the guest is misleading: `nproc` and `/proc/cpuinfo` report the+underlying machine rather than your sandbox's share, so a 4 GB sandbox may report 8 processors.+Benchmark actual throughput rather than reading the core count.## Which sizes are available to youdiff --git a/docs/microvm/whats-different.mdx b/docs/microvm/whats-different.mdxindex e99f03b3..19f85ec5 100644--- a/docs/microvm/whats-different.mdx+++ b/docs/microvm/whats-different.mdx@@ -16,6 +16,7 @@ Everything not listed here behaves identically, and the same SDK code runs on bo| Hibernated time | does not count against a lifetime | **counts against the 8 hours** || Resize a running sandbox | supported | not supported || Sizes | any memory value at create | a fixed enum, 512 MB – 8 GB, default 4 GB |+| CPU | selectable via `cpuCount`, scales with memory | allocated by the platform; `cpuCount` is not a control || Mounts (FUSE/NFS/overlay) | supported | not possible || Image builds | supported | not yet || Fork from a checkpoint | supported | not yet |@@ -33,7 +34,8 @@ does not come back in the morning. If you have work that assumes a long-lived bo**Memory tops out at 8 GB** and cannot be changed after launch. On the current runtime you askfor whatever you need and can resize later; here the sizes are a fixed enum and the largest is-8 GB. See [Sandbox sizes](/microvm/sizes).+8 GB. CPU is no longer selectable either — `cpuCount` is accepted but does not size the sandbox.+See [Sandbox sizes](/microvm/sizes).**Checkpoints don't capture memory.** If you use checkpoints to freeze a warmed-up process —a loaded model, an open connection pool, a debugger mid-session — restoring will not give that