Warm a grant once at a time so overlapping warms never leak a helper

Đang mở
#102 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes, linux

Hướng nghiên cứu

Start with the host's PrepareTemplate warm map and lock, then trace the Hyperlight, gVisor, and runc backend warm maps and the existing loser check in #97. Run the warm-related table tests, or add the two cases described in the issue. Done means overlapping warms share one registered helper, and a helper ending during another's probe does not fail that warm.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Two clones of a cold grant can enter PrepareTemplate together, since the host checks its warm map before the warm and fills it only after. Both reach the backend, and on Hyperlight the second helper replaces a published first one in the backend's map, so the first lives on, never killed and never reported.

  • The host marks a grant as warming under its lock before it calls the backend, and a second caller waits for that warm's result instead of starting its own.
  • The Hyperlight backend refuses a warm for a grant whose helper is already published rather than replacing it in its map.
  • A warm the backend refuses leaves the running helper and its fibers untouched.
  • A helper that ends while another helper of the same grant is still probing never fails that probe's warm.
  • gVisor and runc are checked for the same replacement in their warm maps.
  • A table test starts two warms of one cold grant and checks that one helper runs, one warm is registered, and the second caller gets that warm.
  • A table test ends a second helper during the first's probe and checks that the first warm still succeeds.

Related to #97, whose loser check covers only a helper that lost its place while still probing.

Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.