Skip to content

Add experimental host tmpdir support #9308

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bduffany
Copy link
Member

@bduffany bduffany commented May 13, 2025

This PR introduces a new experimental-host-tmpdir platform property that mounts /tmp/ from a directory on the host, in order to avoid I/O overhead from overlayfs. It is intended to help diagnose whether /tmp/ FS operations are causing test timeouts. If setting this property reliably fixes test timeouts, we can consider making this an official platform property and/or executor flag. A benchmark writing 10K files under /tmp/ with touch then reading them back with cat (in batches of 100 files) is 1.5X faster with this property enabled.

Separately, it would be nice if we had a way to trace FS operations to answer this question more directly. I think an eBPF-based solution probably makes the most sense here, since cgroups do not provide any way to track FS operations.

@bduffany bduffany force-pushed the ociruntime-host-tmpdir branch 2 times, most recently from 8366bb8 to 9015d2d Compare May 13, 2025 16:30
@bduffany bduffany force-pushed the ociruntime-host-tmpdir branch from 9015d2d to 88d5476 Compare May 13, 2025 16:31
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