Live data from Hacker News

Show HN: Sub-millisecond VM sandboxes using CoW memory forking

github.com

11–20 of 85 posts

Re: Show HN: Sub-millisecond VM sandboxes using CoW memory forking

#14
Nice to see this work! I experimented with this for exe.dev before we launched. The VM itself worked really well, but there was a lot of setup to get the networking functioning. And in the end, our target are use cases that don't mind a ~1-second startup time, which meant doing a clean systemd start each time was easier.

That said, I have seen several use cases where people want a VM for something minimal, like a python interpreter, and this is absolutely the sort of approach they should be using. Lot of promise here, excited to see how far you can push it!

Re: Show HN: Sub-millisecond VM sandboxes using CoW memory forking

#18

Nice to see this work! I experimented with this for exe.dev before we launched. The VM itself worked really well, but there was a lot of setup to get the networking functioning. And in the end, our target are use cases that don't mind a ~1-second startup time, which meant doing a clean systemd start each time was easier. That said, I have seen several use cases where people want a VM for something minimal, like a pyt…

simonw seems like he's always wanting what you describe, maybe more for wasm though

Re: Show HN: Sub-millisecond VM sandboxes using CoW memory forking

#20
post #15

The tricky part of doing this in production is cloning sandboxes across nodes. You would have to snapshot the resident memory, file system (or a CoW layer on top of the rootfs), move the data across nodes, etc.

Is this relevant?

https://codesandbox.io/blog/how-we-clone-a-running-vm-in-2-s...

Post reply on HN