· via dev.to (home feed)
Unkernel compiles Linux 6.9 into a WebAssembly module for sub-30ms serverless workloads
Unkernel compiles Linux 6.9 into a single WebAssembly module that ships its own kernel, with dev.to tutorials claiming roughly 30 ms startup and 30 MiB of RAM for serverless and CI workloads.

What happened
A project that compiles the Linux 6.9 kernel into a single WebAssembly module is the subject of a burst of hands-on tutorials on dev.to, all crediting a viral Hacker News post for the attention. The three posts, published on 28 November 2026 by the same author, describe building the kernel as a Wasm module that runs inside ordinary runtimes such as Wasmtime, Wasmer or WasmEdge. According to the dev.to guides, the module boots a kernel plus a minimal userspace in roughly 30 milliseconds while consuming around 30 MiB of memory — figures the author presents as fast and light enough for serverless microservices, isolated CI jobs and disposable security sandboxes. The English guide also claims search interest in terms like "Unkernel" and "Linux WASM" surged more than 800 percent on Google Trends.
What Unkernel is — and where the sources disagree
The tutorials do not agree on the project's lineage. The Spanish-language guide builds directly from the mainline kernel tree using make ARCH=wasm plus a WASI configuration option; the Portuguese-language guide clones a separate unkernel repository it describes as a fork of Linux 6.9 with patches that emit a Wasm module from the standard source; the English guide asserts that Linux 6.9 now supports a wasm target outright. In every version the result is the same artifact: a vmlinux.wasm file that expects the host runtime to supply syscalls through WASI.
The userspace is a minimal initramfs built around busybox and packed with cpio. The architectural point, set out in the Spanish tutorial's FAQ, is that a Docker container reuses the host kernel while Unkernel carries its own kernel inside the sandbox, so the module can run where no kernel exists at all — browsers, Cloudflare Workers or AWS Lambda. Persistence is handled by mounting host directories through the WASI filesystem, or via Cloudflare KV and R2 at the edge.
Performance and runtime numbers
The Spanish guide benchmarks four runtimes on an AWS t3.micro with cold start included: WasmEdge at 19 ms, Wasmtime at 22 ms, Wasmer at 27 ms, and Lucet at 31 ms without WASI support. The English guide compares the approach to a Firecracker microVM on a 2 vCPU instance: CPU-bound work runs about 15 percent slower, but startup drops from around 100 ms to around 30 ms and memory from about 100 MiB to about 30 MiB. The Portuguese guide adds that Wasmtime is roughly 10 percent faster on syscall-heavy workloads, while Wasmer offers a broader plugin ecosystem and SIMD support.
Build requirements, per the Spanish tutorial, are modest: an x86-64 machine, 8 GB of RAM and about ten minutes of compilation on an 8-vCPU host. The artifact size conflicts across the posts — around 4.8 MB in the Spanish guide, versus around 30 MB with a Docker image under 40 MB in the Portuguese one.
Deployment and cost claims
The Spanish tutorial demonstrates a static HTTP server on Cloudflare Workers, claiming the runtime boots, the kernel launches and the first request is served in under 30 ms. The cost figures diverge sharply. The Spanish pricing table lists Cloudflare Workers at $0.50 per million invocations with an 18 ms average startup, against $0.80 for AWS Lambda and $0.60 for Google Cloud Run; the Portuguese guide instead estimates $1.80 per million invocations for Unkernel on Cloudflare with 128 MB of memory, and claims savings of up to 85 percent compared with a t2.micro VM. The English guide prices a 30 MiB sandbox at roughly $0.00003 per second. Even the Cloud Run cold start differs between posts — 30 ms in one table, 100 ms in another. None of the guides cite vendor documentation, so these numbers should be read as illustrative rather than independently benchmarked.
Security model
According to the guides, isolation comes from the Wasm sandbox itself — memory and CPU separated without a hypervisor — combined with the absence of hardware drivers or exposed devices, which shrinks the attack surface. Kernel-level policy still applies inside the guest: the Portuguese guide shows a seccomp profile restricting a module to read, write, exit and clock_gettime, alongside SELinux options. Claimed use cases include cross-compilation pipelines, network packet processing inside Workers, and sandboxes for running untrusted code from students against a full kernel.
Why it matters
If the approach holds up, it changes the unit of deployment for low-level code. Containers assume a host kernel; virtual machines ship a whole machine image; Unkernel ships the kernel with the workload as one portable module that runs anywhere Wasm does. That would make short-lived Linux jobs viable on edge platforms that bill per millisecond and per GB-second, and it removes environment drift by making the whole stack reproducible from a Git repository. The caveats are real, though: everything here rests on three tutorials from a single author with internally inconsistent sizes, prices and startup figures, and the English guide's claim that x86_64 binaries run unchanged inside a wasm32 sandbox is never explained. The direction is genuinely interesting for anyone deploying low-level software; the numbers deserve independent verification before production use.
- #webassembly
- #linux
- #serverless
- #wasi
- #cloud