vmm: guest event persistence holds the global state lock and blocks the async executor
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Trace HostApi.Notify into App::vm_event_report and inspect safe_write, the AppState mutex, and VM removal lifecycle. Add regression coverage for executor responsiveness, per-VM write ordering, cancellation, and removal safety; done means persistence no longer blocks the async executor while holding the global state lock.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
HostApi.Notify calls synchronous App::vm_event_report on an async worker. An instance.info event executes safe_write (including file and directory fsync) while holding the global AppState mutex. A shutdown.progress event reporting powering off also writes its started marker under that mutex.
Slow storage therefore delays unrelated VMs’ control-plane state operations as well as the async worker. This is a source-level finding, not a measured production latency claim.
Fix
Move persistence off the executor and outside the global state lock. Preserve per-VM write ordering and serialize with VM removal, including when the notification request is cancelled. Add regression tests for responsiveness and lifecycle safety.
The supervisor log fsync changes in #1263 do not cover this call path.
- Ngôn ngữ chính
- Rust
- Star
- 550
- Fork
- 97
- Merge trung bình
- 19 giờ 22 phút
- Pull request đã merge (30 ngày)
- 109
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 Dstack-TEE/dstack
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
Dstack-TEE/dstack#1301 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Dstack-TEE/dstack#1300 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Dstack-TEE/dstack#1299 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Dstack-TEE/dstack#1298 ·
-
P0
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Dstack-TEE/dstack#1297 ·
Tất cả issue của Dstack-TEE/dstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
state:needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
zed-industries/zed#64680 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
RustPython/RustPython#8802 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TheLarkInn/aipm#2390 ·