Crafty 23.1 JA quirks

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.1 JA quirks

Post by bob »

F. Bluemers wrote:I found the cause of the double created games and logs.
both Jim and Peter used

Code: Select all

log=off
in their crafty.rc files
so I used

Code: Select all

log=on 
.Crafy does not like that,it seems .

Code: Select all

log on
works as it should.
there's no difference. Crafty parses the "=" out using strtok() so whether you use a space or = has no effect on the result, which will be the same either way.
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: Crafty 23.1 JA quirks

Post by beachknight »

bob wrote:
F. Bluemers wrote:I found the cause of the double created games and logs.
both Jim and Peter used

Code: Select all

log=off
in their crafty.rc files
so I used

Code: Select all

log=on 
.Crafy does not like that,it seems .

Code: Select all

log on
works as it should.
there's no difference. Crafty parses the "=" out using strtok() so whether you use a space or = has no effect on the result, which will be the same either way.
Is there a performance difference between the modes with?
i. log off
ii. log on

For blitz games, I mean: Do writing logs hurt the performance of crafty?

Best,
hi, merhaba, hallo HT
jhaglund
Posts: 173
Joined: Sun May 11, 2008 7:43 am

Re: Crafty 23.1 JA quirks

Post by jhaglund »

For blitz games, I mean: Do writing logs hurt the performance of crafty?
Not under normal circumstances.

If it output MB of text at each move it could slow a bit (modify trace() function to output to logfile)... but then you wouldn't be worried about the performance of play but the data it output anyway.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.1 JA quirks

Post by bob »

beachknight wrote:
bob wrote:
F. Bluemers wrote:I found the cause of the double created games and logs.
both Jim and Peter used

Code: Select all

log=off
in their crafty.rc files
so I used

Code: Select all

log=on 
.Crafy does not like that,it seems .

Code: Select all

log on
works as it should.
there's no difference. Crafty parses the "=" out using strtok() so whether you use a space or = has no effect on the result, which will be the same either way.
Is there a performance difference between the modes with?
i. log off
ii. log on

For blitz games, I mean: Do writing logs hurt the performance of crafty?

Best,
Very slightly, yes. Nothing is free when doing system calls.
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: Crafty 23.1 JA quirks

Post by F. Bluemers »

Yes,you are right. There was another difference that seemed unimportant.

Code: Select all

#egtb
#adaptive 750K 24M 192M 24M 48M
#tbpath=d:\progra~1\arena\nalimov
cache=32M
ponder off
#
# (for use use with ponder on)
# mode=tournament 
#
# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on 
#
# (default)       
learn 7   
#    
# (default)  
book random 1   
#  
bookw freq 0.7
bookw ratio 0.8
bookw eval 0.6
bookw learn 1
bookw cap 0.5
book width 4
#
#(default = book on)
book on   
#         
show book
log=on
#
# (Increases Crafty's MaxThreads to 2 for a dual CPU computer )
mt=2
#    
# (Make Crafty not use cpu on opponents time)    
#smpnice=1  
# 
# (Makes crafty use a lot more time on the first 8 moves out of book)    
timebook 80 8    
#adaptive NPS a
hash 45M
hashp 16M
exit
If the first line is empty,it works fine.
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.1 JA quirks

Post by bob »

F. Bluemers wrote:Yes,you are right. There was another difference that seemed unimportant.

Code: Select all

#egtb
#adaptive 750K 24M 192M 24M 48M
#tbpath=d:\progra~1\arena\nalimov
cache=32M
ponder off
#
# (for use use with ponder on)
# mode=tournament 
#
# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on 
#
# (default)       
learn 7   
#    
# (default)  
book random 1   
#  
bookw freq 0.7
bookw ratio 0.8
bookw eval 0.6
bookw learn 1
bookw cap 0.5
book width 4
#
#(default = book on)
book on   
#         
show book
log=on
#
# (Increases Crafty's MaxThreads to 2 for a dual CPU computer )
mt=2
#    
# (Make Crafty not use cpu on opponents time)    
#smpnice=1  
# 
# (Makes crafty use a lot more time on the first 8 moves out of book)    
timebook 80 8    
#adaptive NPS a
hash 45M
hashp 16M
exit
If the first line is empty,it works fine.
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
Can't reproduce that here. The _only_ time it tries to create a new log file is when it first starts, and whenever it receives a "new" command.
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: Crafty 23.1 JA quirks

Post by F. Bluemers »

bob wrote:
F. Bluemers wrote:Yes,you are right. There was another difference that seemed unimportant.

Code: Select all

#egtb
#adaptive 750K 24M 192M 24M 48M
#tbpath=d:\progra~1\arena\nalimov
cache=32M
ponder off
#
# (for use use with ponder on)
# mode=tournament 
#
# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on 
#
# (default)       
learn 7   
#    
# (default)  
book random 1   
#  
bookw freq 0.7
bookw ratio 0.8
bookw eval 0.6
bookw learn 1
bookw cap 0.5
book width 4
#
#(default = book on)
book on   
#         
show book
log=on
#
# (Increases Crafty's MaxThreads to 2 for a dual CPU computer )
mt=2
#    
# (Make Crafty not use cpu on opponents time)    
#smpnice=1  
# 
# (Makes crafty use a lot more time on the first 8 moves out of book)    
timebook 80 8    
#adaptive NPS a
hash 45M
hashp 16M
exit
If the first line is empty,it works fine.
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
Can't reproduce that here. The _only_ time it tries to create a new log file is when it first starts, and whenever it receives a "new" command.
Seems that the last rc file i tried was not even parsed by crafty,
and as that worked ok for logs,I started to suspect "log on" itself.
Crafy creates new game and log files when it encounters "log on".
You can see that if you put it one or more times in the rc file or type it on the commandline.
Best
Fonzy
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.1 JA quirks

Post by bob »

F. Bluemers wrote:
bob wrote:
F. Bluemers wrote:Yes,you are right. There was another difference that seemed unimportant.

Code: Select all

#egtb
#adaptive 750K 24M 192M 24M 48M
#tbpath=d:\progra~1\arena\nalimov
cache=32M
ponder off
#
# (for use use with ponder on)
# mode=tournament 
#
# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on 
#
# (default)       
learn 7   
#    
# (default)  
book random 1   
#  
bookw freq 0.7
bookw ratio 0.8
bookw eval 0.6
bookw learn 1
bookw cap 0.5
book width 4
#
#(default = book on)
book on   
#         
show book
log=on
#
# (Increases Crafty's MaxThreads to 2 for a dual CPU computer )
mt=2
#    
# (Make Crafty not use cpu on opponents time)    
#smpnice=1  
# 
# (Makes crafty use a lot more time on the first 8 moves out of book)    
timebook 80 8    
#adaptive NPS a
hash 45M
hashp 16M
exit
If the first line is empty,it works fine.
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
Can't reproduce that here. The _only_ time it tries to create a new log file is when it first starts, and whenever it receives a "new" command.
Seems that the last rc file i tried was not even parsed by crafty,
and as that worked ok for logs,I started to suspect "log on" itself.
Crafy creates new game and log files when it encounters "log on".
You can see that if you put it one or more times in the rc file or type it on the commandline.
Best
Fonzy
you are right, but it would never occur to me to put "log=on" in the .craftyrc file, since that is the default setting. I don't put defaults in there at all.