Raw signalOct 17, 20261 min read1 source

Building fast filesystems for VMs

In one minute

Modal published an engineering account of redesigning the filesystem stack for its VM Sandboxes.

Its initial implementation exposed ImageFS to guests through virtio-fs. In a microbenchmark of 100,000 operations, Modal measured chown at 9.87 seconds over virtio-fs, compared with 2.31 seconds under gVisor and 1.58 seconds with ImageFS directly. The post also says recursive chown rose from four seconds to more than a minute, while pnpm and bun installs were about three times slower.

Modal’s alternative puts ext4 and filesystem metadata inside the guest and uses virtio-blk to carry blocks to the host. The company reports a chown taking about 2.1 microseconds inside guest ext4, versus about 99 microseconds over virtio-fs. ext4 journals changes and sends them in asynchronous batches, reducing per-operation trips across the VM boundary. These are Modal’s own measurements and describe its implementation; the post does not establish a general benchmark across VM providers.

Evidence / sources

  1. 1modal.com/blog/vm-sandbox-filesystem
All Signals

Next reads

Read next

Open the graph
  1. 01archiveSignalsOpen the signals and the raw-signal archive.
  2. 02sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract