Skip to content

Start Linux cold OCI runs before durable image publication - #190

Merged
reiase merged 9 commits into
DeepLink-org:mainfrom
zhaoyuuu0624:codex/oci-cold-start-profile
Nov 24, 2026
Merged

reiase merged 9 commits into
DeepLink-org:mainfrom
zhaoyuuu0624:codex/oci-cold-start-profile

Conversation

@zhaoyuuu0624

@zhaoyuuu0624 zhaoyuuu0624 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Change

On Linux x86-64, a cold pvisor run starts its first VM from the verified extracted OCI rootfs while a separate process publishes the reusable image. The worker batches local pool directory syncs by default and honors the existing override. Explicit pull returns after durable publication.

The runtime pins the lower for the publisher, the parent and its live forks. A stopped instance keeps its binding for restart. After host reboot, the binding requires the recorded durable revision. Removing the last instance or retrying a run can reclaim abandoned imports.

Scope

The fast path checks local pool metadata constraints before admission. Special files use the existing synchronous path. Warm images, other platforms and callers with explicit in-memory credentials use the ordinary create path.

Validation

On gpu03, both builds used a fresh store, the same locally served 3.60 GiB Vuls layer with zero resident fixture pages, and 2 vCPUs / 7 GiB per VM. Timing starts before the loopback registry starts. The table shows the first verified pair on the Image Pack V1 baseline, in elapsed seconds.

Build Cold OCI to parent response Fork to four verified children Cold OCI to four verified children Cold OCI to durable catalog
main at b40ee12c 135.939 0.520 136.601 132.270
This PR at f8390d02 26.414 0.470 26.927 107.976

The four children inherited the parent marker, isolated subsequent writes, and remained usable after parent removal. A new instance successfully reopened the published image. On the merged version all 885 active pvisor library tests passed in isolated processes, and macOS CLI compilation passed. On the preceding PR revision, Linux/KVM fault tests also verified cleanup after cancellation and recovery after a failed catalog write or publisher termination.

The original diagnostic prototype and measurements remain available at the earlier revision.

@zhaoyuuu0624
zhaoyuuu0624 marked this pull request as ready for review November 22, 2026 11:15
@zhaoyuuu0624 zhaoyuuu0624 changed the title bench(startup): profile cold OCI import and overlap publication with first use perf(startup): profile cold OCI import and overlap publication with first use Nov 22, 2026
@zhaoyuuu0624 zhaoyuuu0624 changed the title perf(startup): profile cold OCI import and overlap publication with first use perf(startup): refine cold OCI import and overlap publication with first use Nov 23, 2026
@zhaoyuuu0624
zhaoyuuu0624 marked this pull request as draft November 23, 2026 03:14
@zhaoyuuu0624 zhaoyuuu0624 changed the title perf(startup): refine cold OCI import and overlap publication with first use Start Linux cold OCI runs before durable image publication Nov 23, 2026
@zhaoyuuu0624
zhaoyuuu0624 marked this pull request as ready for review November 23, 2026 05:09
@reiase
reiase merged commit 197e735 into DeepLink-org:main Nov 24, 2026
59 checks passed
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.

2 participants