diff --git a/messung/farm/abend-0512/b263a0-proben.cmd b/messung/farm/abend-0512/b263a0-proben.cmd new file mode 100644 index 00000000..30172871 --- /dev/null +++ b/messung/farm/abend-0512/b263a0-proben.cmd @@ -0,0 +1,20 @@ +@echo off +rem temperatur 05.12. abends: Tor 5 fuer A0 = b263403f ohne Antwortkurve (Schalter 80D9D8E9), wie 8691e2: Startprobe, Last, Warteschlange gegen live-20261204, betrieb.json +set W=D:\Projects\pokerfreak-daten\pruefstand\sharingan-splash-0312\werkzeuge +set A=D:\Projects\pokerfreak-daten\pruefstand\warteschlange +set E=D:\Projects\pf-temperatur\pokerbench-temperatur-uhr-b263403f.exe +set Q=D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\kern_schalter.txt +set Z=D:\Projects\pokerfreak-daten\pruefstand\basis-rein-temperatur-b263403f-ohnekurve +set K=%Z%\kern_schalter.txt +if exist %Z%\FERTIG (echo ZIEL %Z% schon fertig - Abbruch & exit /b 3) +if exist %A%\b263403f-ohnekurve-alle\*.* (echo ZIEL %A%\b263403f-ohnekurve-alle hat Inhalt - Abbruch & exit /b 3) +if not exist %Z% mkdir %Z% +if not exist %K% copy /y %Q% %K% >nul +powershell -NoProfile -Command "'EXE ' + (Get-FileHash %E%).Hash; 'SCHALTER ' + (Get-FileHash %K%).Hash; 'QUELLE ' + (Get-FileHash %Q%).Hash; Select-String -Path %K% -Pattern '^MOTOR_EXE=' | %% Line; if ((Get-FileHash %E%).Hash -ne 'D1F49E6AB8144EEF2F91803D3B7393C999B4AC75818A27A745C2C3DA9BD507AA' -or (Get-FileHash %K%).Hash -ne '80D9D8E9119ED148577ECFD829A3B9C1A048875AF21394441E8BF989CA1D6735') { 'SHA ABWEICHEND'; exit 5 }" +if errorlevel 5 exit /b 5 +powershell -NoProfile -ExecutionPolicy Bypass -File D:\Projects\pokerfreak-daten\pruefstand\basis-0312\basis_rt_b263a0.ps1 +python -X utf8 D:\Projects\pokerfreak-daten\pruefstand\basis-0312\farm_uhrgrund.py %Z%\probe\antworten.json +python -X utf8 D:\Projects\pokerfreak-daten\pruefstand\basis-0312\farm_uhrgrund.py %Z%\last6\antworten.json +cd /d %W% +python -X utf8 farm_warteschlange.py D:\Projects\pf-schatten-d647bb1c %E% %K% %A%\live-20261204 2026-12-04 %A%\b263403f-ohnekurve-alle +powershell -NoProfile -Command "if (-not (Test-Path D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\betrieb.json)) { Copy-Item %Z%\betrieb.json D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\betrieb.json; 'betrieb.json kopiert' } else { 'betrieb.json liegt schon dort - nicht ueberschrieben' }" diff --git a/messung/farm/abend-0512/basis_rt_b263a0.ps1 b/messung/farm/abend-0512/basis_rt_b263a0.ps1 new file mode 100644 index 00000000..5dd2bd7f --- /dev/null +++ b/messung/farm/abend-0512/basis_rt_b263a0.ps1 @@ -0,0 +1,23 @@ +# basis-rein-temperatur A0 = b263403f ohne Antwortkurve (Tor 5, 05.12. abends): Startprobe Kaltstart, frist 4,0, Lastprobe, _hand, Strassen-Lage, Marke Uhr-All-in +$zielOrdner = 'D:\Projects\pokerfreak-daten\pruefstand\basis-rein-temperatur-b263403f-ohnekurve'; New-Item -ItemType Directory -Force $zielOrdner | Out-Null +$py = 'C:\Users\marcm\AppData\Local\Programs\Python313\python.exe'; $werkzeuge = 'D:\Projects\pokerfreak-daten\pruefstand\sharingan-splash-0312\werkzeuge' +foreach ($pidDatei in 'D:\Projects\pokerfreak\scratch\laeufer.pid', 'D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\betrieb\scratch\laeufer.pid') { + if (Test-Path $pidDatei) { "SPIELT $pidDatei" | Set-Content "$zielOrdner\abbruch.txt"; exit 1 } } +$exeDatei = 'D:\Projects\pf-temperatur\pokerbench-temperatur-uhr-b263403f.exe'; $schalterDatei = 'D:\Projects\pokerfreak-daten\pruefstand\basis-rein-temperatur-b263403f-ohnekurve\kern_schalter.txt' +Set-Location $werkzeuge +& $py -X utf8 farm_hand_probe.py $exeDatei $schalterDatei 'D:\Projects\pokerfreak-daten\gedaechtnis2-live\strom.jsonl' "$zielOrdner\hand.json" *> "$zielOrdner\hand.txt" +& $py -X utf8 farm_rein_startprobe.py $exeDatei $schalterDatei "$zielOrdner\probe" --n 1000 --kalt --frist-rest 4.0 *> "$zielOrdner\probe.txt" +$os1 = Get-CimInstance Win32_OperatingSystem; $frei = [math]::Round($os1.FreePhysicalMemory / 1MB, 1); $belegt = [math]::Round(($os1.TotalVisibleMemorySize - $os1.FreePhysicalMemory) / 1MB, 1) +& $py -X utf8 farm_betrieb_json.py "$zielOrdner\probe" (Get-FileHash $schalterDatei).Hash (Get-FileHash $exeDatei).Hash $frei $belegt *> "$zielOrdner\betrieb.txt" +& $py -X utf8 farm_flop_exakt_lage.py "$zielOrdner\probe\antworten.json" *> "$zielOrdner\flop_exakt.txt" +& $py -X utf8 farm_lastprobe.py $exeDatei $schalterDatei "$zielOrdner\probe" "$zielOrdner\last6" --n 6 --kalt --strasse FLOP,TURN,RIVER --frist-rest 4.0 *> "$zielOrdner\last6.txt" +& $py -X utf8 farm_flop_exakt_lage.py "$zielOrdner\last6\antworten.json" *> "$zielOrdner\last6_flop_exakt.txt" +& $py -X utf8 farm_strassen_lage.py "$zielOrdner\probe\antworten.json" *> "$zielOrdner\strassen_lage.txt" +& $py -X utf8 farm_strassen_lage.py "$zielOrdner\probe\antworten.json" 4.0 *> "$zielOrdner\strassen_lage_frist4.txt" +& $py -X utf8 farm_strassen_lage.py "$zielOrdner\last6\antworten.json" 4.0 *> "$zielOrdner\last6_strassen_frist4.txt" +'FERTIG' | Set-Content "$zielOrdner\FERTIG" +# Zaehlung Zuggrund "Uhr: Tafel (All-in aus unfertiger Loesung" (temperatur 05.12.) +$marke = 'Uhr: Tafel (All-in aus unfertiger Loesung' +foreach ($datei in "$zielOrdner\probe\antworten.json", "$zielOrdner\last6\antworten.json") { + $anzahl = (Select-String -Path $datei -SimpleMatch $marke -AllMatches | % { $_.Matches.Count } | Measure-Object -Sum).Sum + "MARKE $datei $anzahl" | Add-Content "$zielOrdner\marke_uhr_allin.txt" } diff --git a/messung/farm/abend-0512/tor1_a0.py b/messung/farm/abend-0512/tor1_a0.py new file mode 100644 index 00000000..d88236e4 --- /dev/null +++ b/messung/farm/abend-0512/tor1_a0.py @@ -0,0 +1,67 @@ +"""(farm 05.12. 20:0x: Kopie von tor1_ident.py fuer A0 = b263403f ohne Antwortkurve, Schalter 80D9D8E9) +Tor 1, Arm B neu fuer temperatur-uhr b263403f (Vorbild: D:\\Projects\\pf-temperatur\\tor1\\tor1_lauf.py und tor1_river_neu.py, Fassung 86911151). +Env = MOTOR_ZEILE der Entwurfs-Schalterdatei (ohne Straddle, ohne TEMPERATUR_JAM, mit ANTWORTKURVE, flopbib C:). Arm A wird nicht gerechnet. +Aufruf: python -X utf8 tor1_0995.py teil -> aus-B-.jsonl (zusammenhaengender Teil der 7.779 Anfragen, wie 86911151) + python -X utf8 tor1_0995.py river

-> aus-B-river-neu.part

.jsonl (Anteil der 460 River-Zeilen, mit MOTOR_TEMPERATUR_MS=60000) + python -X utf8 tor1_0995.py fuegen -> aus-B-river-neu.jsonl + .kopf.json aus den Teilen""" +import json, os, subprocess, sys, time +EXE = r"D:\Projects\pf-temperatur\pokerbench-temperatur-uhr-b263403f.exe" +SCHALTER = r"D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\kern_schalter.txt" +O = r"D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\tor1\B" +EIN = r"D:\Projects\pf-basis-rein-cf10eedc\tor1\ein-tor1.jsonl" +D = r"D:\Projects\pf-basis-rein-cf10eedc\tor1\daten" +modus = sys.argv[1] +os.makedirs(O, exist_ok=True) +zeilen = open(EIN, "rb").read().splitlines(keepends=True) + +def umgebung(): + zeile = next(z for z in open(SCHALTER, encoding="utf-8-sig") if z.startswith("MOTOR_ZEILE=")).split("=", 1)[1].strip() + env = {k: v for k, v in os.environ.items() if not k.startswith("MOTOR_") and k != "R0"} + for kv in zeile.split(";"): + if "=" in kv: + k, v = kv.split("=", 1); env[k.strip()] = v.strip() + return env + +def befehl(): + return [EXE, "dienst", "sechs100", D, "2000-600-400", "200", os.path.join(D, "sechs100-v2.bin"), "genau", + "hu=%s,%s" % (os.path.join(D, "hu100-v1.bin"), os.path.join(D, "hu200-v2.bin"))] + +def kopfenv(env): return {x: y for x, y in env.items() if x.startswith(("MOTOR_", "R0"))} + +if modus == "teil": + T, N = int(sys.argv[2]), int(sys.argv[3]); env = umgebung() + k = (len(zeilen) + N - 1) // N; teil = zeilen[T * k:(T + 1) * k] + aus = os.path.join(O, f"aus-B-{T}.jsonl") + if os.path.exists(aus): sys.exit("existiert: " + aus) + json.dump({"arm": "B", "exe": EXE, "env": kopfenv(env), "von": T * k, "anzahl": len(teil)}, open(aus + ".kopf.json", "w"), indent=1) + t0 = time.time() + with open(aus + ".tmp", "wb") as a, open(aus + ".log", "wb") as l: + p = subprocess.Popen(befehl(), stdin=subprocess.PIPE, stdout=a, stderr=l, env=env) + p.stdin.write(b"".join(teil)); p.stdin.close(); p.wait() + os.replace(aus + ".tmp", aus) + print("B", T, "fertig", len(teil), "Anfragen in", round(time.time() - t0), "s", flush=True) +elif modus in ("river", "riverlive", "fuegen"): + ids = [i for i, z in enumerate(zeilen) if json.loads(z).get("street") == "RIVER"] + assert len(ids) == 460, len(ids) + if modus in ("river", "riverlive"): + name = "river-neu" if modus == "river" else "river-live" + P, N = int(sys.argv[2]), int(sys.argv[3]); env = umgebung() + if modus == "river": env["MOTOR_TEMPERATUR_MS"] = "60000" + k = (len(ids) + N - 1) // N; mein = ids[P * k:(P + 1) * k] + aus = os.path.join(O, f"aus-B-{name}.part{P}.jsonl") + if os.path.exists(aus): sys.exit("existiert: " + aus) + t0 = time.time() + p = subprocess.run(befehl(), input=b"".join(zeilen[i] for i in mein), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, env=env) + antw = [json.loads(z) for z in p.stdout.decode("utf-8").splitlines() if z.strip()] + assert len(antw) == len(mein), (len(antw), len(mein)) + with open(aus + ".tmp", "w", encoding="utf-8") as f: + for i, a in zip(mein, antw): f.write(json.dumps({"zeile": i, "antwort": a}) + "\n") + os.replace(aus + ".tmp", aus) + json.dump({"arm": "B", "exe": EXE, "env": kopfenv(env), "anzahl": len(ids)}, open(os.path.join(O, f"aus-B-{name}.part{P}.jsonl.kopf.json"), "w"), indent=1) + print(modus, P, "fertig", len(mein), "in", round(time.time() - t0), "s", flush=True) + else: + N = int(sys.argv[2]); gesamt = [] + for P in range(N): gesamt += open(os.path.join(O, f"aus-B-river-neu.part{P}.jsonl"), encoding="utf-8").read().splitlines(keepends=True) + assert len(gesamt) == 460 + open(os.path.join(O, "aus-B-river-neu.jsonl"), "w", encoding="utf-8", newline="\n").write("".join(gesamt)) + print("gefuegt", len(gesamt)) diff --git a/messung/farm/abend-0512/tor3-a0.ps1 b/messung/farm/abend-0512/tor3-a0.ps1 new file mode 100644 index 00000000..61bac4c8 --- /dev/null +++ b/messung/farm/abend-0512/tor3-a0.ps1 @@ -0,0 +1,12 @@ +# temperatur 05.12. abends: Tor 3 fuer A0 = temperatur-uhr b263403f ohne Antwortkurve (Schalter 80D9D8E9) - Duplikat gegen SHARINGAN B, 15 min, wie 86911151 (gepaart, Rake, ohne Antwortspeicher) +$ErrorActionPreference = 'Continue' +if (Test-Path 'D:\Projects\pokerfreak\scratch\laeufer.pid') { 'SPIELT'; exit 2 } +$da = & C:\pf-arbeit\abend\warte-kandidat.ps1 -K b263403f; $da | ? { $_ -is [string] }; if (-not ($da | Select-Object -Last 1)) { exit 4 } +$sollExe = 'D1F49E6AB8144EEF2F91803D3B7393C999B4AC75818A27A745C2C3DA9BD507AA'; $sollSch = '80D9D8E9119ED148577ECFD829A3B9C1A048875AF21394441E8BF989CA1D6735' # temperatur/Flop-Suche 05.12. +if ((Get-FileHash D:\Projects\pf-temperatur\pokerbench-temperatur-uhr-b263403f.exe).Hash -ne $sollExe -or (Get-FileHash D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\kern_schalter.txt).Hash -ne $sollSch) { 'SHA ABWEICHEND - nicht gestartet'; exit 5 } +'SHA geprueft: Exe b263403f und A0-Schalter (main 20:0x)' +& D:\Projects\pf-batterie\messung\farm\pokerbench-temperatur-duplikat.ps1 -Kandidat b263403f-ohnekurve -Minuten 15 -Tischliste '1,1,1,3,3,3,5,5,5,1,3,5' +$rc = $LASTEXITCODE; "RUECKGABE duplikat $rc" +Get-Content D:\Projects\pf-batterie\messung\farm\temperatur-b263403f-ohnekurve-tor3\kette.log -Tail 4 +Get-Content D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\duplikat-sharingan-b.json -TotalCount 12 -EA 0 +exit $rc diff --git a/messung/farm/abend-0512/tor8-a0.ps1 b/messung/farm/abend-0512/tor8-a0.ps1 new file mode 100644 index 00000000..a65660cc --- /dev/null +++ b/messung/farm/abend-0512/tor8-a0.ps1 @@ -0,0 +1,22 @@ +# Flop-Suche/temperatur 05.12. abends: Tor 8 fuer A0 = temperatur-uhr b263403f ohne Antwortkurve (Schalter 80D9D8E9), Werkzeug claude/abnahme-bench c5336aba6, 3 Arme (basis, kandidat, ohne_frist), T=1 (Speicher: je Arm Motor+CFR ~19,5 GB + Slumbot-Motor 9,5 GB) +$ErrorActionPreference = 'Continue' +if (Test-Path 'D:\Projects\pokerfreak\scratch\laeufer.pid') { 'SPIELT'; exit 2 } +$z = 'C:\pf-arbeit\pf-abnahme-c5336aba6' +if (-not (Test-Path "$z\messung\fremd\fremd_tor.py")) { New-Item -ItemType Directory -Force $z | Out-Null; tar -xf "$z.tar" -C $z } +$aus = 'D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\tor8' +if ((Test-Path $aus) -and (Get-ChildItem $aus).Count -gt 0) { "ZIEL $aus hat Inhalt - Abbruch"; exit 3 } +$da = & C:\pf-arbeit\abend\warte-kandidat.ps1 -K b263403f; $da | ? { $_ -is [string] }; if (-not ($da | Select-Object -Last 1)) { exit 4 } +$sollExe = 'D1F49E6AB8144EEF2F91803D3B7393C999B4AC75818A27A745C2C3DA9BD507AA'; $sollSch = '80D9D8E9119ED148577ECFD829A3B9C1A048875AF21394441E8BF989CA1D6735' # temperatur/Flop-Suche 05.12. +if ((Get-FileHash D:\Projects\pf-temperatur\pokerbench-temperatur-uhr-b263403f.exe).Hash -ne $sollExe -or (Get-FileHash D:\Projects\pokerfreak-daten\pruefstand\temperatur-uhr-b263403f-ohnekurve\kern_schalter.txt).Hash -ne $sollSch) { 'SHA ABWEICHEND - nicht gestartet'; exit 5 } +'SHA geprueft: Exe b263403f und A0-Schalter (main 20:0x)' +Set-Location $z +"EXE basis " + (Get-FileHash D:\Projects\pf-temperatur\pokerbench-temperatur-rein-2a0b655f.exe).Hash + " SCHALTER basis " + (Get-FileHash messung\live\basis_rein_temperatur\kern_schalter.txt).Hash +python -X utf8 messung\fremd\fremd_tor.py --aus D:/Projects/pokerfreak-daten/pruefstand/temperatur-uhr-b263403f-ohnekurve/tor8 --daten D:/Projects/pokerfreak-daten/grundstrategie-mitzaehler ` + --basis D:/Projects/pf-temperatur/pokerbench-temperatur-rein-2a0b655f.exe messung/live/basis_rein_temperatur/kern_schalter.txt ` + --kandidat D:/Projects/pf-temperatur/pokerbench-temperatur-uhr-b263403f.exe D:/Projects/pokerfreak-daten/pruefstand/temperatur-uhr-b263403f-ohnekurve/kern_schalter.txt ` + --bots slumbot,cfr6 --cfr6 D:/Projects/fremd/deepcfr6-target/release/examples/nplayer_serve.exe D:/Projects/fremd/k50 D:/Projects/fremd/six/p.gz ` + --frist-datei D:/Projects/pokerfreak-daten/pruefstand/temperatur-uhr-86911151/frist-verteilung-0412.json ` + --sitzungen 1 --je-motor 3 --cfr6-straenge 1 --minuten 15 --ohne-frist 2>&1 | % { "$_" } +$rcTor = $LASTEXITCODE; "RUECKGABE fremd_tor $rcTor" +Get-Process nplayer_serve -ErrorAction SilentlyContinue | % { Stop-Process -Id $_.Id -Force; 'beendet nplayer_serve ' + $_.Id } +exit $rcTor diff --git a/messung/farm/schlange/kritischer-pfad-0512.ps1 b/messung/farm/schlange/kritischer-pfad-0512.ps1 index 14cb6779..e2e68e97 100644 --- a/messung/farm/schlange/kritischer-pfad-0512.ps1 +++ b/messung/farm/schlange/kritischer-pfad-0512.ps1 @@ -2,7 +2,7 @@ $Q = 'D:\Projects\pf-batterie\messung\farm\schlange' $grund = 'manuell farm 05.12. ' + (Get-Date -Format 'HH:mm') + ': Owner - Farm nur kritischer Pfad (exakt-Bau 3e88ab53/Flop-Fenster, jamprobe-allein, temperatur, sim-gekauft); fortsetzen durch farm nach Freigabe' function Erlaubt([string]$id) { $id -match '^(flop-fenster-.*|innovation-jamprobe-allein.*|innovation-vorflopselbst-bitgleich|innovation-vorflopselbst-streng|innovation-richterlock-antworten-.*|innovation-score-referenz-.*|gpukern-(?!straddlebeleg|vorflopexakt).*|motor-pi-aus-pruefung|richterlock-.*|mehrweg-bibtx-.*|farm-nacht-.*|temperatur-.*|sim-?gekauft.*|simpool.*)$' } -$rang = @{ 'temperatur' = -12; 'temperatur-tore' = -11; 'flop-fenster' = -8; 'motor-pi' = -8; 'gpu-kern' = -8; 'richter-lock' = -8; 'mehrweg-flop' = 1; 'farm-nacht' = 2; 'innovation-rest' = 3; 'innovation' = -5; 'sim-gekauft' = -5; 'sim-fassung-pool' = -5 } +$rang = @{ 'temperatur-a0' = -13; 'temperatur' = -12; 'temperatur-tore' = -11; 'flop-fenster' = -8; 'motor-pi' = -8; 'gpu-kern' = -8; 'richter-lock' = -8; 'mehrweg-flop' = 1; 'farm-nacht' = 2; 'innovation-rest' = 3; 'innovation' = -5; 'sim-gekauft' = -5; 'sim-fassung-pool' = -5 } foreach ($f in Get-ChildItem "$Q\laufend" -Filter *.json) { $id = $f.BaseName if (Erlaubt $id) { continue } @@ -22,7 +22,7 @@ foreach ($f in Get-ChildItem "$Q\auftraege" -Filter *.json) { # 05.12. abends (main): simpool und vorflopselbst-streng nur in Luecken - solange ein temperatur-Auftrag wartet oder laeuft, warten sie als .luecke $tempDa = @(Get-ChildItem "$Q\auftraege\temperatur-*.json", "$Q\laufend\temperatur-*.json" -EA 0).Count -gt 0 -foreach ($f in @(Get-ChildItem "$Q\auftraege" -File -EA 0 | ? { $_.Name -match '^(simpool-.*|innovation-vorflopselbst-streng.*)\.json(\.luecke)?$' })) { +foreach ($f in @(Get-ChildItem "$Q\auftraege" -File -EA 0 | ? { $_.Name -match '^(simpool-.*|innovation-vorflopselbst-streng.*|innovation-score-referenz-flop|innovation-richterlock-antworten-.*)\.json(\.luecke)?$' })) { if ($tempDa -and $f.Name -like '*.json') { Rename-Item $f.FullName "$($f.Name).luecke"; "LUECKE gehalten $($f.Name)" } elseif (-not $tempDa -and $f.Name -like '*.luecke') { Rename-Item $f.FullName ($f.Name -replace '\.luecke$', ''); "LUECKE frei $($f.Name)" } }