Unofficial Hacker News companion — get notified on comment replies, and more.

Unkernel: Real Linux kernel, compiled to WebAssembly (opens external site)

622 points by nreece 5 days ago | unkernel.dev | 172 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. I work on a competing project (Neutrium, arm64 Linux in the browser). We run the real kernel under full arm64 emulation, not a kernel compiled to wasm.

    From what I measured, compiling the kernel to wasm is not worth it. In real work the kernel is used very little. Kernel time is only around 5-15% of total CPU time.

    Our numbers: - next dev with turbopack: sys 5.3 s vs 41 s core time - C compile: 3-11% - test suite: 5-16% - npm install is higher (28%), but most of it is page faults and TLB. The syscalls themselves are only 2-13% of that.

    So even if kernel cost goes to zero, you get maybe 1.1x. The other ~90% is arm64 user code, and both designs have to emulate it. That is the real problem.

    To be fair, their syscall path may be faster than ours.