Files
infrastructure/llm-server/host/ansible/roles/gpu_fan_control
spektr ed446d4b17 GNAI-010 v0.19: Luefterkurven-Service gpu_fan_control als Dauerloesung (10.10)
Rolle gpu_fan_control im Host-Projekt: Systemdienst gnai-gpu-fan-control
steuert beide Karten PCI-stabil aus der Junction-Temperatur (Anker
50/58/66/72/76C -> 0/80/140/200/255 PWM, 5s-Zyklus, fallende Hysterese,
EXIT-Failsafe auf Werksteuerung, Re-Assert je Zyklus). Preview, Deploy,
Idempotenz und Kurzlastsanity bestanden. BFCL-Restserie laeuft wieder
unter Luefterschutz.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-05 13:36:00 +01:00
..

gpu_fan_control

Installs gnai-gpu-fan-control, a root system service that drives the fan PWM of the configured amdgpu cards (PCI addresses, stable across DRM renumbering) from their junction temperature.

Rationale and measurements: GNAI-010 section 10.10 — the factory fan curves ramp far too slowly for the cramped dual-GPU layout (SW CTF incident 2026-11-03); with a junction based curve the hot slot holds a verified plateau of 76 celsius under sustained inference load.

Behaviour:

  • Linear interpolation between the curve anchors from defaults/main.yml (idle below 50 celsius rests at PWM 0, full duty is reached by 76 celsius).
  • Targets are raised immediately, lowered only after falling at least two PWM steps below the current value (falling hysteresis).
  • The service re-asserts pwm1_enable=1 every cycle so an amdgpu reload cannot silently restore factory control mid-load.
  • The EXIT trap restores factory control (pwm1_enable=2) on every configured card, so a stopped service never leaves a frozen PWM.