Give each fiber a compute share of its engine, beside its bytes

Aperta
#67 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, linux

Direzione di ricerca

Start by reading how device budgets and byte accounting move with a session, and how the admin socket reports slice usage; the issue does not name files or tests. The work depends on an engine that runs kernels, while refengine has no metered compute, so identify that engine and its request path first. Done means compute shares are enforced and reported, parked sessions retain their share across engines, and latency plus non-greedy overhead are measured.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A grant's device budget caps how much of the engine's memory one fiber may hold. Nothing caps how much of the engine's compute it may use. One busy fiber can hold its slice within budget and still starve every other fiber of the same grant, since the engine runs their work one request at a time.

Wanted.

  • A compute share per fiber in the device budget, as a percent of the engine, next to bytes. A grant that sets none gets an equal share.
  • The engine meters each slice's work and delays a fiber over its share, so the others keep their turn. A fiber is never killed for compute, only slowed.
  • The share travels with the session. A parked session resumes on another engine with the same share, as its bytes do today.
  • The admin socket reports each slice's compute use beside its bytes.

Measure the slowest fiber's request latency under one greedy fiber, with and without the share, and the share's cost when no fiber is greedy.

Depends on a real engine. refengine fills memory and hashes it, so there is no work to meter yet. Build this with the first engine that runs kernels, such as one serving a model's KV cache, and design the budget field before it.

Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/fiberd

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.