Rudimentary GPU load balancing

Offen
#89 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
20/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
cpp, linux
Bereich
backend

Rechercherichtung

The issue describes a script invoked by vglrun, using nvidia-smi, amdconfig, and ps to choose a GPU and X screen, but names no source files or tests. First read how vglrun handles VGL_DISPLAY and -d, then investigate how GPU load maps to X screens. Done means selecting the least-loaded GPU's screen reliably, with the proposed auto behavior and accommodation for #10 resolved.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement funding needed

This issue is to track an idea for a script-based GPU load balancer that would be invoked by vglrun. Ideally this script would, if VGL_DISPLAY/-d is auto:

  1. Call nvidia-smi and amdconfig to build a list of available GPUs for which load information can be obtained, as well as the load of each GPU.
  2. Somehow figure out which X screen is attached to the least-loaded GPU. I'm not quite sure how to do this. nvidia-smi can be used to figure out whether any Xorg processes are attached to the least-loaded GPU (not sure whether amdconfig can do the same thing), and ps can obtain the command line (and thus the X display number) of the Xorg process, but that doesn't tell me which X screen is attached to which GPU (there can be multiple screens per Xorg process.)
  3. Set VGL_DISPLAY to the X screen of the least-loaded GPU.
  4. ???
  5. Profit.

This does not depend on #10, but it would need to accommodate that new feature. The idea is that #10 would work the way the old GLP feature used to work on Solaris/SPARC, i.e. it would be activated by specifying a device path rather than an X display in VGL_DISPLAY/-d. Similarly, this feature could be extended by specifying autoegl instead of auto, thus instructing the script to find an EGL device path instead of an X display. If (2) above proves impossible or unwieldy, then this feature might have to rely on EGL.

Vorherrschende Sprache
C++
Sterne
830
Forks
116
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus VirtualGL/virtualgl

Alle Issues in VirtualGL/virtualgl

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.