Support GPU

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go, kubernetes, linux

调研方向

Start with the linked proposal at docs/proposals/gpu.md, then inspect the engine template, FIBERD_ENGINE IPC, device channel, budget enforcement, and conformance C8. The issue calls for a CUDA engine on proc, with runc as a later backend, plus seccomp and GPU runner validation. Done means one warm GPU context serves multiple fibers, device budgets and classes are enforced, eviction happens before park, and GPU conformance passes.

由索引模型根据 Issue 内容生成。

描述

enhancement P0

fiberd already has the seam a GPU plugs into. An engine template owns device state, lends each fiber a slice over IPC (FIBERD_ENGINE), and reports it with DEVICE lines. fiberd enforces each grant's device budget, sends EVICT before a park, and feeds device occupancy to the pressure ladder. A home hands the engine its devices through a device channel: a static list, a Kubernetes DRA claim or Slurm GRES. Conformance C8 pins the budget. But the only engine is refzygote's simulated one, so no real GPU has run behind the seam.

flowchart LR
  H[home: device channel] --> E["engine zygote, owns the GPU context"]
  E -->|"FIBERD_ENGINE IPC, a slice per fiber"| F1[fiber]
  E --> F2[fiber]
  E -->|"DEVICE fence bytes"| D[fiberd: budget, EVICT before a park, pressure]

What is missing.

  • A real engine. A reference engine that holds a CUDA context in the zygote and serves fibers over IPC. A fiber never opens the GPU itself, because a CUDA context does not survive a fork and CRIU cannot dump one without NVIDIA's checkpoint support.
  • Park with device state. Today a park evicts the fiber's slice, so a resumed fiber starts its device state over. Decide whether that is the contract, or whether to keep the slice through a park, for example with cuda-checkpoint and CRIU's CUDA plugin.
  • Device class. fiberd admits a grant that asks for a device class whenever the engine reports any capacity. It does not compare device_budget.class with the engine's.
  • The fiber filter. Check the engine and its fibers against the seccomp filter. GPU drivers live on ioctl and mmap of /dev/nvidia*, which the filter allows, but nobody has run one under it.
  • Backends. proc and runc first. gVisor needs nvproxy and Hyperlight has no device path, so both stay out of the first cut.

Done when. A real GPU template on proc serves many fibers from one warm context. Each fiber is held to its device budget and evicted before its park. A conformance run passes on a GPU runner, and the class a grant asks for is enforced.

Proposal can be found here.

主要语言
Go
星标
5
派生
5
平均合并
15 小时 27 分钟
30 天内合并 PR
41

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/fiberd 的其他 Issue

查看 Azure/fiberd 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。