Keep the GPU guard current when NVIDIA majors appear after it attaches

Đang mở
#53 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

Hướng nghiên cứu

Start with pkg/sys/cgroup/devprog_linux.go and trace how NVIDIA majors are read from /proc/devices and used when the device program attaches. Compare the two options in the issue: a default-deny allow list or refreshing majors on each Clone. Done means the attached guard continues to deny newly appearing nvidia-uvm and nvidia-caps devices; the issue names no tests.

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) guards every grant's <grant>/fibers/ cgroup with a device program that denies the NVIDIA character majors (pkg/sys/cgroup/devprog_linux.go). It reads those majors from /proc/devices once, when it attaches, and falls back to 195 when the driver is not loaded.

So the guard goes stale when the majors change after the attach.

  • A driver loaded after fiberd starts (udev, nvidia-persistenced, the first nvidia-smi) gets dynamic majors for nvidia-uvm and nvidia-caps that the program does not deny.
  • Fibers keep the stale program until their grant's cgroup is made again.

Compute stays blocked, since nvidiactl and nvidia0..N are on 195. But the nvidia-uvm and nvidia-caps (MIG) nodes and their ioctls are reachable from a fiber that can make or see them.

Options.

  • Make the program default-deny with an allow list, as runc's device list does, so no major needs tracking.
  • Read the majors again at each Clone and attach one more program when the set grows.
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.