←back to thread

169 points hunvreus | 1 comments | | HN request time: 0.201s | source
Show context
CompuIves ◴[] No.43655010[source]
Oh wow! Unexpected and cool to see this post on Hacker News! Since then we have evolved our VM infra a bit, and I've written two more posts about this.

First, we started cloning VMs using userfaultfd, which allows us to bypass the disk and let children read memory directly from parent VMs [1].

And we also moved to saving memory snapshots compressed. To keep VM boots fast, we need to decompress on the fly as VMs read from the snapshot, so we chunk up snapshots in 4kb-8kb pieces that are zstd compressed [2].

Happy to answer any questions here!

[1]: https://codesandbox.io/blog/cloning-microvms-using-userfault...

[2]: https://codesandbox.io/blog/how-we-scale-our-microvm-infrast...

replies(2): >>43658063 #>>43659379 #
1. zekrioca ◴[] No.43659379[source]
The example code present in the link is not available. Would you know where it went? Thanks, great article!