diff --git a/messung/gpu/kern/windows/netz_durchsatz.ps1 b/messung/gpu/kern/windows/netz_durchsatz.ps1 new file mode 100644 index 00000000..22c587f3 --- /dev/null +++ b/messung/gpu/kern/windows/netz_durchsatz.ps1 @@ -0,0 +1,26 @@ +# Durchsatz der Wertnetz-Datenfabrik auf der RTX (netz/durchsatz.py), ohne Fenster, Prioritaet BelowNormal, Prozessname +# pokerbench-gpukern-netzdurchsatz.exe, Code aus dem Messordner D:\Projects\pf-gpu-kern-mess (nicht der Live-Ordner, nicht der Dienst). +# Bricht ab, wenn der Laeufer spielt (laeufer.pid). Protokoll nur anhaengen: D:\Projects\pokerfreak-daten\gpu\netz\durchsatz.jsonl +# powershell -NoProfile -ExecutionPolicy Bypass -File netz_durchsatz.ps1 [-SpeicherGB 6] +param([double]$SpeicherGB = 6) +$sperre = 'D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\betrieb\scratch\laeufer.pid' +if (Test-Path $sperre) { "Laeufer spielt: keine Messung"; exit 1 } +$wurzel = 'D:\Projects\pf-gpu-kern-mess' +$daten = 'D:\Projects\pokerfreak-daten\gpu\netz' +New-Item -ItemType Directory -Force -Path $daten | Out-Null +$exe = 'D:\Projects\venv-gpu\Scripts\pokerbench-gpukern-netzdurchsatz.exe' +if (-not (Test-Path $exe)) { Copy-Item 'D:\Projects\venv-gpu\Scripts\python.exe' $exe } +$skript = Join-Path $wurzel 'messung\gpu\kern\netz\durchsatz.py' +$prot = Join-Path $daten 'durchsatz.jsonl' +$laeufe = @( + @('river', 4000, 0.5), @('river', 4000, 0.1), + @('turn', 96, 0.5), @('turn', 96, 0.1) +) +foreach ($l in $laeufe) { + if (Test-Path $sperre) { "Laeufer spielt: Abbruch"; exit 1 } + $p = Start-Process -FilePath $exe -ArgumentList @('-u', $skript, 'cuda', '--strasse', $l[0], '--n', $l[1], '--ziel', $l[2], '--speicher-gb', $SpeicherGB, '--saat', '2', '--protokoll', $prot) ` + -WorkingDirectory $wurzel -NoNewWindow -PassThru -Environment @{ GPU_KERN_CUDA_SCHED = 'block' } + try { $p.PriorityClass = 'BelowNormal' } catch {} + $p.WaitForExit() +} +Get-Content $prot -Tail 4