by pojntfx on 6/30/23, 1:37 PM with 0 comments
It works like this:
1. Starting a go-nbd server and client locally with r3map's Device API
2. Connecting the NBD server to a remote fRPC[1] backend provided by ram-ul
3. Calling mkswap, swapon and swapoff, which enables paging out to the block device provided by the NBD client and thus to the connected remote fRPC backend.
Its mostly intended as a tech demo for go-nbd[2] and the WIP r3map[3] library (efficient distributed mmap with mounting and migration support), and just as a fun experiment in general.
[1] https://frpc.io/ [2] https://news.ycombinator.com/item?id=35359473 [3] https://github.com/pojntfx/r3map