Skip to content
View original post on X: ModalOfficial· 40/100AI score40/100

Modal builds new filesystem stack to keep VM Sandboxes fast

AISummary

Modal says it built a new filesystem stack so its VM Sandboxes keep sub-second cold starts without losing performance. The stack makes a VM's ext4 driver treat Modal's lazily loaded ImageFS as a normal disk. Modal has published an engineering write-up on the challenges and decisions behind it.

Post on XView on X
@modal

When we introduced VM Sandboxes, we wanted to preserve Modal’s sub-second cold starts without compromising performance.

We ended up building a new filesystem stack that dramatically improved performance, and wrote about the engineering challenges and decisions that got us there.

Amit@amitpr
The secret to Modal's speed is our custom lazily loaded container filesystem, ImageFS. ImageFS is built on a massive tiered distributed filesystem, layering local NVMe disks, regional and p2p caches, and global blob stores. When we launched VM Sandboxes this month, we wanted to make sure they could take advantage of ImageFS in the same way our gVisor containers do. To do that, we built out a new filesystem stack that tricks a VM's ext4 driver into thinking it's talking to a normal disk.
View quoted post on X

Source: Modal · x.comPublished