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?
Crafty problem with cutechess-cli
Moderators: hgm, Rebel, chrisw
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
-
- Posts: 2872
- Joined: Wed Mar 08, 2006 10:09 pm
- Location: Germany
- Full name: Werner Schüle
Re: Crafty problem with cutechess-cli
I think it is a Crafty problem. My .rc file e.g.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?
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
Re: Crafty problem with cutechess-cli
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
http://www.talkchess.com/forum/viewtopic.php?t=26895
Last edited by Charles B. on Tue Jul 07, 2009 4:50 pm, edited 1 time in total.
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Crafty problem with cutechess-cli
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
-
- Posts: 1763
- Joined: Sun Feb 26, 2006 1:49 pm
- Location: Edmonton, Alberta, Canada
- Full name: Peter Skinner
Re: Crafty problem with cutechess-cli
Are you sure that you don't have an extra hard return in your rc file? That can cause all sorts of problems.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 was kicked out of Chapters because I moved all the Bibles to the fiction section.
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: Crafty problem with cutechess-cli
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...
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...
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Crafty problem with cutechess-cli
Try putting "log off" just before the "exit" line.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...
.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: Crafty problem with cutechess-cli
Makes no difference at all.
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: Crafty problem with cutechess-cli
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.
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Crafty ignores "log off"
OK, I can now confirm what you have reported, and it occurs even when running Crafty from a command line. Here is my .craftyrc:
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
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
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