logoalt Hacker News

Gvisor on Raspbian

49 pointsby _ananos_today at 10:08 AM9 commentsview on HN

Comments

Llioratoday at 3:22 PM

Ran gVisor on a Pi 4 cluster for home IoT sandboxing. Memory overhead is real—about 120MB per sandbox vs 15MB for raw containers. On 4GB boards that limits you to ~25 isolated services before OOM kicks in. Also, syscall拦截 adds 30-40% CPU overhead on ARM. Works fine for untrusted Python scripts, but I wouldn’t run anything compute-heavy.

show 1 reply
geerlingguytoday at 1:11 PM

> Fair warning: compiling a kernel on the Pi itself takes several hours.

One nit: this should only take about 40 minutes on a Pi 5, assuming you're compiling with -j6 to use all the cores.

(Still faster to cross-compile)

show 3 replies
pelcgtoday at 3:13 PM

What use-cases are there for gVisor on Raspbian, given that the target is a Raspberry Pi?

show 1 reply