Limit benching to 60s, before killing engines/threads and raising an exception (#225)
Adds a fourth possible OpenBenchBadBenchException exception during benching, for exceeding the max bench duration. This ensures that engines that infinitely stall, do not also lock up OpenBench clients. Additionally, make sure to clean up possible zombie processes that existed even in the case of a proper bench.
This commit is contained in:
1 parent
e2673c3cd1
commit
9e94da6b1f
3 files changed
+27
-9
No files matched your search
+2
-2
@@ -21,10 +21,10 @@
|
||||
# The sole purpose of this module is to invoke create_genfens_opening_book().
|
||||
#
|
||||
# This will execute engines with commands like the following:
|
||||
# ./engine "genfens N seed S book <None|Books/book.epd> <?exta>" "quit"
|
||||
# ./engine "genfens N seed S book <None|Books/book.epd> <?extra>" "quit"
|
||||
#
|
||||
# This work is split over many engines. If a workload requires 1024 openings,
|
||||
# and there are 16 threads, then each thread will generate 128 openings. The
|
||||
# and there are 16 threads, then each thread will generate 64 openings. The
|
||||
# openings are saved to Books/openbench.genfens.epd
|
||||
#
|
||||
# create_genfens_opening_book() may raise utils.OpenBenchFailedGenfensException.
|
||||
|
||||
Reference in new issue
Block a user