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

cache ostree -> composefs metadata #3327

Open
cgwalters opened this issue Oct 28, 2024 · 0 comments
Open

cache ostree -> composefs metadata #3327

cgwalters opened this issue Oct 28, 2024 · 0 comments
Labels
area/composefs Issues related to composefs

Comments

@cgwalters
Copy link
Member

After #3326 we're now back to the situation where creating a deployment is O(metadata) - times two (once for the hardlink farm, once for composefs). Here with a nontrivial host each takes about 1.5-2s which isn't fatal or anything but is definitely noticeable.

For making the composefs it seems we're just getting hit by syscall overhead, especially for listing xattrs. But we also have the open() + ioctl() + close() for the verity digest.

We could significantly cut down all of this with what I think would be a simple hack - if we're booted from a composefs, then read it into memory and create a hash table mapping ostree checksum ➡️ composefs node, and use it as a lookaside in ostree_repo_checkout_composefs().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/composefs Issues related to composefs
Projects
None yet
Development

No branches or pull requests

1 participant