-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
allows setting volatile overlay mount option #5366
base: master
Are you sure you want to change the base?
allows setting volatile overlay mount option #5366
Conversation
given that buildkit is generally very IO intensive, some preliminary tests have shown that adding the volatile option could yield up to a 15% performance improvements in some cases. ref: https://docs.kernel.org/filesystems/overlayfs.html#volatile-mount Signed-off-by: Marcos Lilljedahl <[email protected]>
Bit confused. What sets the Do we capture fsync error on |
You can set this in containerd via snapshotter options.
IIUC that's only for temp mounts, I see that I could have also been bad measure from the benchmark even though I ran the same test multiple times and took the p99 value out of all samples. I'll try re-running the tests again to see if I still get the same results. |
If we think this is safe(for buildkit's use-cases) then we should add it to all our overlay mounts, not only with containerd worker, and not requiring custom config from the user. Still, this would need some clarification:
|
The scope of this change is much smaller and just allows Dagger to even try this in the first place without a full fork of buildkit. All it's doing is stopping one part of code that's looking for
From the kernel docs Marcos linked to:
|
@sipsma I get that but I much more like that we implement a feature in buildkit instead of half-complete updates that only work if library is called in specific context and can easily break as there isn't anything in BuildKit actually using it. If you want to split work up into multiple PRs and create follow-up issues then that fine if properly documented this way.
Do I understand correctly from this that in order for |
given that buildkit is generally very IO intensive, some preliminary
tests have shown that adding the volatile option could yield up to
a 15% performance improvements in some cases.
ref: https://docs.kernel.org/filesystems/overlayfs.html#volatile-mount
Signed-off-by: Marcos Lilljedahl [email protected]