liamt19 / Lizard

Chess engine written in C#
MIT License
31 stars 2 forks source link

Enabled huge pages for the transposition table #44

Closed liamt19 closed 5 months ago

liamt19 commented 5 months ago

Only used for Linux systems, and might give a slight speedup. Vs main:

Elo   | 2.96 +- 2.11 (95%)
SPRT  | 4.0+0.04s Threads=1 Hash=16MB
LLR   | 2.95 (-2.94, 2.94) [0.00, 3.00]
Games | N: 28550 W: 7501 L: 7258 D: 13791
Penta | [241, 2837, 7858, 3116, 223]
http://somelizard.pythonanywhere.com/test/873/

And this is apparently not solely due to the alignment being a larger power of 2 (2^20 instead of 2^6). Align 2^20, madvise vs. no madvise:

Elo   | 5.97 +- 3.27 (95%)
SPRT  | 4.0+0.04s Threads=1 Hash=16MB
LLR   | 2.94 (-2.94, 2.94) [0.00, 3.00]
Games | N: 12172 W: 3240 L: 3031 D: 5901
Penta | [102, 1192, 3298, 1383, 111]
http://somelizard.pythonanywhere.com/test/971/