Adopt the GPU guard a previous fiberd left on a grant instead of stacking another

Đang mở
#51 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
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes, linux
Lĩnh vực
backend, operating-systems

Hướng nghiên cứu

Start by reading the GPU PoC in issue #4 and the fiberd startup and boot sweep paths that attach or clean up the grant cgroup guard. Compare the two proposed approaches: query and adopt an existing program, or detach stale programs after killing leaf processes. Done means repeated restarts do not stack guards until attachment fails with E2BIG, while running fibers remain guarded.

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

Mô tả

enhancement

The GPU PoC (#4, milestone M4b) attaches a GPU guard to every grant's <grant>/fibers/ cgroup with BPF_F_ALLOW_MULTI. fiberd releases the guard's descriptor and leaves the program attached when it stops, so fibers left running stay guarded until the next boot kills them.

So each fiberd restart that finds the cgroup still there attaches one more program beside the old ones. The kernel allows at most 64 programs per cgroup and attach type. After enough restarts the attach fails with E2BIG, and on a host with the NVIDIA driver that refuses the grant.

Options.

  • Before attaching, ask the kernel (BPF_PROG_QUERY) whether a guard program is already in effect on the cgroup, and adopt it instead of adding another.
  • Detach stale guard programs during the boot sweep, after every leaf under the cgroup has been killed.
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.