agent-image warm-restore ~5–6× slower on WHP/HVF under 4 KiB-only paging
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 36/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- performance
Hướng nghiên cứu
Start with the kernel paging change and its TODO mentioned in the issue, then trace how plat-hyperlight snapshots guest memory and how Hyperlight restores it. The target is 2 MiB-page snapshot support that preserves guest memory correctness and reduces warm-restore time on WHP and HVF; compare agent warm-restore benchmarks before and after.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Since v0.19.1, warm-restore of the large agent image (1536 MiB scratch) is
~5–6× slower on the hypervisors that walk the guest's page tables during
snapshot restore — WHP (Windows x86 and Windows arm64) and HVF (macOS arm64).
It is flat on KVM (Linux x86 and Linux arm64), and flat on the small
python/python-shell images everywhere. This issue tracks reclaiming that
time; the ceilings have been recalibrated to the new baseline in the meantime
so the nightly stops filing noise.
Numbers (agent, warm-restore/hello, ms)
| host | before (≤ v0.19.0) | after (v0.19.1) |
|---|---|---|
| windows-arm64 (WHP) | ~25 | ~150 |
| windows x86 (WHP) | ~7 | ~40 |
| macos-arm64 (HVF) | ~0.3 | ~1.5 (tiny; shows up in cold-snap/parallel-exec instead) |
| linux x86 (KVM) | ~12 | ~12 (flat) |
| linux-arm64 (KVM) | flat | flat |
Cause
The kernel now maps guest memory with 4 KiB pages only on plat-hyperlight
(no 2 MiB huge pages). That was a correctness fix — the 2 MiB-page snapshot
was silently dropping guest memory — but it multiplies the number of page-table
entries a restore has to walk. On KVM the cost is page-size-agnostic, so it is
invisible there; on WHP and HVF it is linear in the entry count, so the big
image pays for it. Only the agent image (1536 MiB) is large enough to show it.
Real fix
Add 2 MiB-page snapshot support upstream in Hyperlight so plat-hyperlight can
go back to huge pages without the correctness problem. The kernel carries a
TODO at the paging change; this is the issue to land that work against.
Interim
- Agent ceilings for windows, windows-arm64 and macos-arm64 raised to the new
baseline (this PR). When the real fix lands, tighten them back down.
Why it slipped into the release
The agent benchmark runs nightly only — it is excluded on ci/arm64
pull requests (scope == 'change' in .github/workflows/arm64-jobs.yml), and
the python/python-shell benches that do run on PRs don't regress. So no
blocking check saw it before v0.19.1 merged. Worth deciding whether a cheap
agent warm-restore smoke check should run on ci/arm64 PRs to close the gap.
- Ngôn ngữ chính
- Rust
- Star
- 72
- Fork
- 14
- Merge trung bình
- 15 giờ 29 phút
- Pull request đã merge (30 ngày)
- 40
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hyperlight-dev/hyperlight-unikraft
-
dependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hyperlight-dev/hyperlight-unikraft#136 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci/nightly
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
hyperlight-dev/hyperlight-unikraft#290 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci/nightly
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
hyperlight-dev/hyperlight-unikraft#288 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci/nightly
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
hyperlight-dev/hyperlight-unikraft#285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci/nightly
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
hyperlight-dev/hyperlight-unikraft#262 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hyperlight-dev/hyperlight-unikraft
Issue tương tự
-
area:compat area:operations documentation ready-for-agent type:afk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ZcashFoundation/zinder#552 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
storytold/vectorcraft#9229 ·
Maintainer thường phản hồi trong vòng 1 ngày