Crafty problem with cutechess-cli

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Gian-Carlo Pascutto
Posts: 1184
Joined: Sat Dec 13, 2008 6:00 pm
Contact:

Crafty problem with cutechess-cli

Post by Gian-Carlo Pascutto » Tue Jul 07, 2009 11:08 am

In my .craftyrc I have:

log off
learn off
book off
hash 64M
hashp 8M

However, if I play games with cutechess-cli, crafty still keeps logging like a madman. It is really finding the file, because if I change the hash commands, the memory usage changes correspondingly.

How do I stop crafty from logging?

User avatar
Werner
Posts: 2419
Joined: Wed Mar 08, 2006 9:09 pm

Re: Crafty problem with cutechess-cli

Post by Werner » Tue Jul 07, 2009 2:39 pm

Gian-Carlo Pascutto wrote:In my .craftyrc I have:

log off
learn off
book off
hash 64M
hashp 8M

However, if I play games with cutechess-cli, crafty still keeps logging like a madman. It is really finding the file, because if I change the hash commands, the memory usage changes correspondingly.

How do I stop crafty from logging?
I think it is a Crafty problem. My .rc file e.g.

mt=1
egtb
tbpath=j:\tbs
hash=256M
hashp=32M
cache=32M
ponder=off
# smpnice=1
swindle=off
learn=0
log=off
whisper=2
exit

The tip was to include whisper=2 but the folder looks like that:

game.002
log.002
game.001
game.008
log.008
game.007
log.007
game.006
log.006
game.005
log.005
game.004
log.004
game.003
log.003
game.020
log.020
game.019
log.019
game.018
log.018
game.017
Werner

Charles B.

Re: Crafty problem with cutechess-cli

Post by Charles B. » Tue Jul 07, 2009 2:48 pm

Someone else posted about having a log file problem here. I doubt you will find joy/help in the thread though.

http://www.talkchess.com/forum/viewtopic.php?t=26895
Last edited by Charles B. on Tue Jul 07, 2009 2:50 pm, edited 1 time in total.

zullil
Posts: 5668
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Crafty problem with cutechess-cli

Post by zullil » Tue Jul 07, 2009 2:50 pm

Crafty-23.0 behaves correctly, at least when played from the command line or under xboard. No log files are created when my .craftyrc looks like this:

Code: Select all

smpmt=2
egtb
cache=64M
hash=1024M
hashp=256M
book random 1
book width 5
display nochanges
display novariation
display nostats
display noextstats
display nomovenum
display nomoves
display board
ponder on
speech on
alarm off
time sd/10
log off
exit

User avatar
Peter Skinner
Posts: 1760
Joined: Sun Feb 26, 2006 12:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner
Contact:

Re: Crafty problem with cutechess-cli

Post by Peter Skinner » Tue Jul 07, 2009 8:22 pm

Gian-Carlo Pascutto wrote:In my .craftyrc I have:

log off
learn off
book off
hash 64M
hashp 8M

However, if I play games with cutechess-cli, crafty still keeps logging like a madman. It is really finding the file, because if I change the hash commands, the memory usage changes correspondingly.

How do I stop crafty from logging?
Are you sure that you don't have an extra hard return in your rc file? That can cause all sorts of problems.
I got kicked out of Chapters because I moved all the Bible's to the fiction section.

Gian-Carlo Pascutto
Posts: 1184
Joined: Sat Dec 13, 2008 6:00 pm
Contact:

Re: Crafty problem with cutechess-cli

Post by Gian-Carlo Pascutto » Wed Jul 08, 2009 6:06 am

None of the suggestions work:

1) As I already said, I am sure it is finding the .craftyrc.
2) There are no extra newlines or so in the file.
3) I tried adding "exit" as last command, makes no difference.

BUT I do have a new observation: when I start a match, crafty does not make a game.001 or log.001, but starts from game.002 and log.002.

So it seems to obey the .craftyrc for the first game but not for subsequent games. This looks like a bug...

User avatar
Matthias Gemuh
Posts: 3238
Joined: Thu Mar 09, 2006 8:10 am
Contact:

Re: Crafty problem with cutechess-cli

Post by Matthias Gemuh » Wed Jul 08, 2009 6:37 am

Gian-Carlo Pascutto wrote:None of the suggestions work:

1) As I already said, I am sure it is finding the .craftyrc.
2) There are no extra newlines or so in the file.
3) I tried adding "exit" as last command, makes no difference.

BUT I do have a new observation: when I start a match, crafty does not make a game.001 or log.001, but starts from game.002 and log.002.

So it seems to obey the .craftyrc for the first game but not for subsequent games. This looks like a bug...
Try putting "log off" just before the "exit" line.

.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de

Gian-Carlo Pascutto
Posts: 1184
Joined: Sat Dec 13, 2008 6:00 pm
Contact:

Re: Crafty problem with cutechess-cli

Post by Gian-Carlo Pascutto » Wed Jul 08, 2009 8:24 am

Makes no difference at all.

Gian-Carlo Pascutto
Posts: 1184
Joined: Sat Dec 13, 2008 6:00 pm
Contact:

Re: Crafty problem with cutechess-cli

Post by Gian-Carlo Pascutto » Wed Jul 08, 2009 8:29 am

It's 100% a bug. log off in the .craftyrc turns of logging, but in NewGame, logging is always enabled again regardless of what was in the .craftyrc.

zullil
Posts: 5668
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Crafty ignores "log off"

Post by zullil » Wed Jul 08, 2009 12:53 pm

OK, I can now confirm what you have reported, and it occurs even when running Crafty from a command line. Here is my .craftyrc:

Code: Select all

smpmt=2
egtb
cache=64M
hash=1024M
hashp=256M
book random 1
book width 5
display nochanges
display novariation
display nostats
display noextstats
display nomovenum
display nomoves
display board
ponder on
speech on
alarm off
time sd/10
log off
exit
Here is a record of my interactions with crafty-23.0. I started with no log files present, and had game.002 and log.002 when I quit.

Code: Select all

Procyon: ~/Documents/Chess/Crafty/Crafty-23.0] ./crafty-23.0 
max threads set to 2.
EGTB access enabled
using tbpath=/Users/Louis/Documents/Chess/Crafty/TB
4 piece tablebase files found
1386kb of RAM used for TB indices and decompression tables
EGTB cache memory =   64M bytes.
hash table memory =  768M bytes.
pawn hash table memory =  256M bytes.
choose from book moves randomly (using weights.)
choose from 5 best moves.
don't display PV each time it changes.
don't display PV at end of each iteration.
don't display statistics at end of each search.
don't display extended statistics at end of each search.
don't display move numbers in variations.
don't display ply-1 moves as they are searched.
pondering enabled.
Audio output enabled
 game/10 minutes primary time control


Crafty v23.0 (2 cpus)

White(1): e4
              time used:   5.61
               book moves {e5, c5, e6, Nf6, c6, d5}
               book   0.0s      1%    d5! exd5

Black(1): d5 
              time used:   0.08
White(2): exd5 [pondering]
               book moves {Qxd5}
               book   0.0s     56%    Qxd5! Nc3
White(2): resign
result 0-1
Updating book database
White(2): new
parallel threads terminated.
White(1): e4
              time used:  17.28
               book moves {e5, c5, e6, Nf6, c6, d5}
               book   0.0s     10%    e6! d4

Black(1): e6 
              time used:   0.02
White(2): d4 [pondering]
               book moves {d5}
               book   0.0s     99%    d5 Nc3
White(2): resign
result 0-1
Updating book database
White(2): quit

Code: Select all

Procyon: ~/Documents/Chess/Crafty/Crafty-23.0/Logs] ls
game.002 log.002

Code: Select all

Procyon: ~/Documents/Chess/Crafty/Crafty-23.0/Logs] more log.002 
White(1): e4
              time used:  17.28
               book moves {e5, c5, e6, Nf6, c6, d5}
               book   0.0s     10%    e6! d4

Black(1): e6 
              time used:   0.02
White(2): d4 [pondering]
               book moves {d5}
               book   0.0s     99%    d5 Nc3
White(2): resign
result 0-1
Updating book database
White(2): quit

Post Reply