创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

Modal 推出 ImageFS-blk 块级文件系统

AI 总结

Modal 发文介绍其为 VM Sandboxes 重构的文件系统栈。早期方案用 virtio-fs 把虚机内的文件操作转发到宿主机上的 ImageFS,但元数据操作必须跨 VM 边界确认,Modal 称单次 chown 就要三次宿主机往返、耗时 99 微秒。团队随后改为 virtio-blk 块设备思路,让 ext4 与元数据留在 guest 内,宿主机只按块提供数据,形成 ImageFS-blk。Modal 自报 bun install 基准从 12.5 秒降到 1.07 秒,并称 VM Sandboxes 已正式可用、由 ImageFS-blk 支撑。

深度见解

Modal 表示沙箱中的一切都或多或少依赖文件系统速度,并称在启用预取后借助该方案恢复了亚秒级冷启动。

At Modal, we like to think that we know a thing or two about squeezing nanoseconds out of systems. We love to obsess over making our systems performant and capable from the ground up, and we have to! We build for the thousands of GPUs waiting for that latest RL rollout, for the millions of agent sessions waiting on the next tool call, and even for the human waiting for their project to compile. To us, it’s all the same: make stuff go really fast.

We recently shipped VM Sandboxes, supporting ever more sophisticated agentic workloads at scale, and with the same performance expectations that came with our gVisor-based platform. A fundamental building block of a Sandbox is its filesystem: everything in the Sandbox depends, in one way or another, on the speed of its filesystem. Today, we’ll be talking about how we evolved our filesystem stack to become the performant backbone behind VM Sandboxes.

Background: ImageFS and fast cold starts

We solved the “container filesystem” problem in April 2022 by shipping ImageFS, our distributed lazy-loading filesystem for containers. In a nutshell, ImageFS works by pulling only the minimum amount of metadata upfront, mounting it through a Rust-based FUSE (Filesystem in Userspace) server, and then presenting it to the container. ImageFS lazily fetches file contents from a tiered content-addressed cache, from local memory, to regional CDNs, all the way up to global blob storage. ImageFS also implements smart prefetching in the background, so accesses almost always hit files already sitting on local disk or in memory.

#Modal#ImageFS#ImageFS-blk#VM Sandboxes#virtio-fs#virtio-blk#OverlayFS#ext4#FUSE

原文约 9 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。