WeSearch

We made our sandbox filesystem 47× faster by deleting it

Stephen Akinyemi· ·10 min read · 0 reactions · 0 comments · 11 views
#technology#filesystem#performance
We made our sandbox filesystem 47× faster by deleting it
⚡ TL;DR · AI summary

The microsandbox filesystem has been significantly improved, achieving a speed increase of 47 times. This enhancement was made possible by replacing the user-space filesystem with a Linux disk image that the VM can mount directly. The changes have resulted in a more efficient system, with reduced code complexity and improved performance across platforms.

Key facts
Original article
Hacker News (Newest) · Stephen Akinyemi
Read full at Hacker News (Newest) →
Opening excerpt (first ~120 words) tap to expand

A user in our Discord said microsandbox felt slow. Listing every file in the Python standard library took 5.3 seconds inside a sandbox; in Docker it took milliseconds. We went digging. We fixed it in v0.4: we replaced our user-space filesystem with a Linux disk image that the VM mounts directly. The geometric mean speedup across our mixed guest-visible filesystem suite is 47×, with the worst-case rows more than 1,000× faster, and the host filesystem code is about 5,300 lines shorter. Where this started Before microsandbox, I'd been working on a distributed filesystem, and I came to this project with specific ideas about storage. The first rootfs I built reflected them: monofs, a content-addressed filesystem with block-level deduplication, compression, and distributed read replicas.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Hacker News (Newest).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments