AMAZINGINDEX.COM 每日 AI 简报
53.0
VOL. 2026.06
2026.06.16
← 返回 2026.06.16 日报
日报快照 · Daily Snapshot
NO. 017

1秒内启动单进程Linux内核

#ARTICLE HackerNews 2026.06.16
推荐指数 54.0 NO. 017 · 2026.06.16
发布2026/06/15Score60Comments29

通过精简initrd和裁剪内核模块,实现Linux只运行单个用户进程而非完整操作系统,冷启动时间压到1秒以内。对Serverless冷启动、边缘计算和微VM场景有直接参考价值。

1秒内启动单进程Linux内核

这个项目和真正的unikernel(如MirageOS、IncludeOS)路线不同,它保留了Linux内核的硬件兼容性,只是极致裁剪用户空间。之前AWS Firecracker、Google gVisor走的也是这条中间路线,但它们启动仍需数百毫秒到数秒。

这个方案的价值在于展示了手工优化的天花板在哪——作者用cpio而非initramfs、静态链接musl、砍掉systemd,把启动链压到最短。如果你在做Serverless平台或边缘容器,可以借鉴这个思路评估自己的base image还能瘦多少。

缺点是它目前只是x86 QEMU demo,ARM和裸机适配需要额外工作,且单进程模型意味着没有shell调试,生产化还要补监控和crash处理。

意见分歧 30 条评论

核心争论:单进程Linux是实用优化还是无意义炫技,实际场景能否抵消硬件初始化开销

megous

You may also want to build and run busybox for your tiny userspace. Other things you may want to experiment with is gen_init_cpio.c from linux kernel tree. It makes creating initramfs file structure easier from scripts. And finally if sys/isolinux is also fun to use for minimal boot images.

M95D

I... fail to see the point of running just one process. If it's just a PoC, then: 1) I remember seeing a linux firewall/gateway set up to run with just the kernel, without any userspace at all. Completely unhackable. 2) To print some text or run a simple program, I belive DOS without a memory m

kube-system

Wouldn't this be useful for embedded types of applications where you have a very specific task you want to do and you want to do it now.... like that firewall example?

替代方案: busyboxgen_init_cpiosyslinux/isolinuxDOSRTOSbare metalFirecrackerp-bootunikernels
查看原文 →