Journal · Lab note

A thousand kernels on one box

What we measured when we gave every tenant its own microVM, and what it cost compared with a container.

Kind
Lab note
Author
MosaicLabs
Published
Not yet

Draft. This is an outline, not the finished post, and it is not in the production build.

Outline.

  • The question: how small, fast and dense can one tenant per microVM get?
  • The setup: one Core Ultra 7 machine with 64 GB, Firecracker v1.16.1 and Cloud Hypervisor v53, one vCPU per guest.
  • Results: about 70 ms cold boot to first HTTP response; 16 to 21 ms wake from snapshot; 43 MB of host memory per idle guest; 1,000 of 1,000 guests healthy, all ready in about 24 s.
  • What mattered: the guest kernel’s configuration decides boot time. Removing a keyboard-controller probe, journal recovery and crypto self-tests took boot from about 600 ms to about 70 ms.
  • What did not help: a shared read-only root image, and same-page merging.
  • The cost, stated plainly: the same app used 8 MB as a plain process and 47 MB in a microVM. A microVM is not lighter than a container. It is a harder wall.
  • What is still open: load tests, snapshots with a live database, memory under load.
  • Tens of thousands of guests across machines is the goal. It is not a result.