Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UFFD #8

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

UFFD #8

wants to merge 16 commits into from

Conversation

CompuIves
Copy link
Member

No description provided.

CompuIves added 14 commits July 23, 2022 17:35
Signed-off-by: Ives van Hoorne <[email protected]>

update test

Co-authored-by: Luminita Voicu <[email protected]>

move test to valid headers
This allows us to run VMs while streaming memory changes to disk

support mmap shared

update log

add configuration for memory backing file

Progress

tweaks
Firecracker used to map over the mmap when it was a restore. For
CodeSandbox this is not needed, as we use UFFD and we don't have the
limitation that the map was used for.

In fact, this is problematic for the UFFD handler, because it implicitly
unregisters the UFFD handler from the reclaimed range.
Firecracker is taking significant time on saving the snapshot file. For
comparison: writing the memory snapshot by us (1GiB) takes 1s, and
writing the snapshot file by Firecracker (150KiB) takes 8.5s. We presume
this is because of the syncing of the metadata, which is why we disable
it for now. The filesystem should still handle persisting, and given the
fact that the snapshot/memory files are temporary anyway, we can afford
to not sync/flush.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant