00~move the writable upper to disk instead — likely via virtio-fs sta… - #782
Draft
Lucky Abolorunke (Oneimu) wants to merge 3 commits into
Draft
00~move the writable upper to disk instead — likely via virtio-fs sta…#782Lucky Abolorunke (Oneimu) wants to merge 3 commits into
Lucky Abolorunke (Oneimu) wants to merge 3 commits into
Conversation
…cking, i.e., a writable virtio-fs share backed by host disk, the
Collaborator
Actually, for "full" snapshots this remains true, and we do not have a "process memory only" snapshot mode currently, we decided to discard that.
I think we should commit to one and revisit later if needed. gVisor sandboxclass does not expose similar knobs and this could get out of hand. |
…to ateom binary, root-gate device nodes, and restrict userxattr to disk mode
…hes, fix tarutil device node restoring, and add PAX user xattr preservation for opaque OverlayFS directories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[POC}
The problem we're trying to solve
Substrate runs AI agents inside tiny virtual machines (micro-VMs). Each agent thinks it has its own computer with its own disk. But here's the catch: that "disk" is
fake — it's actually the VM's RAM. Every file the agent writes (logs, downloaded packages, code checkouts) is really sitting in memory.
That was a deliberate choice because it's fast, but it has two costs:
agents ruin that math.
file data, snapshots are bigger, and pausing/resuming gets slower.
Ben's suggestion: what if agent file writes went to the host machine's actual disk instead of RAM? Disk is cheap and plentiful. The catch: disk writes are slower.
Nobody knows yet if the trade is worth it — that's your investigation.
What we just built
A switch. The runtime now has a flag with two positions:
standard mechanism for letting a VM read/write a host folder. Conveniently, Substrate already used this exact mechanism for another feature (durable volumes), so we
copied a proven pattern rather than inventing one.