Hashtables size in ChessWar

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
Olivier Deville
Posts: 937
Joined: Wed Mar 08, 2006 9:13 pm
Location: Aurec, France

Re: Hashtables size in ChessWar

Post by Olivier Deville »

bob wrote:I looked at the code and it looks to be ok. I didn't notice the "level 40 5 0" which says "40 moves in 5 minutes, then 40 moves in 5 minutes". That is about 7 seconds per move, which using your numbers is 14.4M nodes searched, which wants about 1M hash positions or 16MB. No clue why it is crashing. Can you start Crafty in a normal console window and give it those two commands (the adaptive and level commands in that order) and tell me what happens???
Screenshot in your mailbox.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Hashtables size in ChessWar

Post by bob »

Olivier Deville wrote:
bob wrote:I looked at the code and it looks to be ok. I didn't notice the "level 40 5 0" which says "40 moves in 5 minutes, then 40 moves in 5 minutes". That is about 7 seconds per move, which using your numbers is 14.4M nodes searched, which wants about 1M hash positions or 16MB. No clue why it is crashing. Can you start Crafty in a normal console window and give it those two commands (the adaptive and level commands in that order) and tell me what happens???
Screenshot in your mailbox.
I looked at it and see nothing wrong. Crafty sets the hash size and simply exits. I don't know if it (a) had a problem with the malloc() since there is no error displayed or (b) it received an end-of-file indication which would make it terminate, or (c) something else. Not a clue here as everything thru the level command looks perfectly normal except there is no output for setting the pawn hash size. Let me release the latest source to see if the problem was fixed between the version you are using as I think this adaptive issue was discovered prior to the last ACCA event we had and the fix might well not be public... although you should still get an error from crafty about the malloc() failing because it would ask for too little memory in rare cases...