Commit Graph
12 Commits
Author SHA1 Message Date
andrew 9d464e5b7d Add balance_engine_throughputs as a configuration option
Load balances tests with relation to each engine. If set to true, the effective throughput during work allocation will be scaled linearly with the number of tests which share the same dev engine.

Namely, it can be used in a large framework to ensure equal allocation of resources across various engines. This comit will be followed by one which allows the user to specify an engine to the client, via --engine MyEngine, to force their worker to selfishly select their engine.

We will account for cases where the selfish-engine is not a top-prio workload, and not play the low prio one.
We will account for the other workers, by ignoring this worker's contribution to overall worker distrubtion. This ensures that it is a strict net gain to attach your own machines to a framework
2024-01-11 21:17:59 -05:00
andrew 0807d2c2d5 Kick Server/Client to v23 2023-12-04 07:57:33 -05:00
andrew 1ac76bdcc1 Optimize default SPSA to avoid CPU downtime
Left Column indicates the number of threads of a match
N= represents the number of games ( not game pairs )
The values in the table are the % of CPU time wasted.

This is based on LTC data from Torch.
The Single Modeling area can be used to understand SPRT tests as well.

We find that sufficiently large N is needed to avoid massive waste.
Multiple distribution is significanly more prone to waste CPU time

Results for Single Modeling:
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
|    |      N=1 |      N=2 |       N=3 |      N=4 |       N=8 |      N=16 |      N=32 |
+====+==========+==========+===========+==========+===========+===========+===========+
|  1 |        0 |        0 |         0 |        0 |         0 |         0 |         0 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
| 16 | 0.187964 | 0.154541 | 0.0953438 | 0.111055 | 0.0682209 | 0.0419675 | 0.0234031 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
| 30 | 0.233956 | 0.250168 |  0.247093 | 0.160325 |   0.17584 | 0.0490092 | 0.0233125 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
| 60 |   0.3319 | 0.283755 |  0.310635 | 0.315316 | 0.0914697 | 0.0474954 | 0.0229517 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+

Results for Multiple Modeling:
+----+----------+----------+----------+----------+----------+----------+-----------+
|    |      N=1 |      N=2 |      N=3 |      N=4 |      N=8 |     N=16 |      N=32 |
+====+==========+==========+==========+==========+==========+==========+===========+
|  1 |        0 |        0 |        0 |        0 |        0 |        0 |         0 |
+----+----------+----------+----------+----------+----------+----------+-----------+
| 16 | 0.187964 | 0.108087 | 0.112321 |  0.18708 | 0.178225 | 0.109092 | 0.0847329 |
+----+----------+----------+----------+----------+----------+----------+-----------+
| 30 | 0.233956 | 0.228522 |  0.26862 | 0.263978 | 0.167372 | 0.182215 | 0.0831574 |
+----+----------+----------+----------+----------+----------+----------+-----------+
| 60 |   0.3319 | 0.352034 | 0.270229 | 0.291731 | 0.219136 | 0.178662 | 0.0936702 |
+----+----------+----------+----------+----------+----------+----------+-----------+
2023-11-22 16:25:08 -05:00
andrew 5b56253dcf Force reimport of libs in some python versions 2023-11-18 09:47:36 -05:00
andrew d4917c6c35 Kick to v21... 2023-11-18 09:25:44 -05:00
andrew c64725f181 Kick to v20; additionally chmod cutechess-ob from worker.py 2023-11-18 09:14:07 -05:00
andrew 64523f93e0 Generic, public settings for config.json example 2023-11-16 20:32:02 -05:00
andrew 74f613ac78 Return to master, and the base config 2023-11-16 20:25:11 -05:00
andrew ec427d0ef2 Auto updating step 1 2023-11-16 20:25:11 -05:00
andrew 4ec9d5b529 First step towards auto-extracting client
client.py will pull from github, as requested by the server
client.py will extract and put all files locally ( except replacing itself ? )

Moved cutechess directly into the Client folder to it gets pulled.
May need to chmod +x the cutechess-ob for Linux on demand.

In the future, the cleanup script will delete everythinge except:
client.py, and any credentials.* files.
Such that one can run an openbench client in any directory, from a single file.
2023-11-16 20:25:11 -05:00
andrew b101e5be23 Finalize config changes 2023-11-16 20:25:11 -05:00
andrew 37cc4a5b96 Load modular configs for Books + Engines
Produce some verification of correctness for those configs
Begin future client auto-updating things, with new config fields

client_repo_url, and client_repo_ref specifically.
2023-11-16 20:25:11 -05:00