Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Some strange things about Crafty 1917

Author: Robert Hyatt

Date: 14:09:04 09/17/04

Go up one level in this thread


On September 17, 2004 at 14:05:10, Dann Corbit wrote:

>There is a memory leak somewhere (maybe in the tablebase code?)
>After letting Crafty run all night analyzing WAC at 3 minutes per position with
>494 megs ram allocated (14M tablebase, 384M hash, 96 pawn hash) Windows task
>manager indicated a peak physical memory usage of 800MB and a virtual memory
>size of 2,090,964K = 2GB.
>
>Crafty solved 299/300 on WAC, but some strange things surfaced.  The one problem
>not solved was NOT one of the few difficult ones like WAC.230, WAC.141 but was
>instead WAC.274.  Also, in the log file, we see a couple "captured a king"
>messages.

This indicates a serious problem.  Often caused by bugs as I am testing, but for
released versions, most commonly they are caused by compiler optimizer bugs
instead.

19.17 has been running and has played several hundred games, plus a lot of long
testing on the 4-way opteron before AMD zapped it to use for another project.
In looking at all the log files, I _never_ see that error message...

I tried wac274 and get Rg2 from ply 2 on, with the score climbing each
iteration.  Something looks broken there...  IE what compiler version, options,
etc??





>
>Do other builds of crafty have the same result with the same memory allocations?
>
>Hardware was 2.2 GHz AMD 64 bit with Windows 2003 OS.
>
>Here is the output record:
>8/1p6/p5R1/k7/Prpp4/K7/1NP5/8 w - - acd 19; acn 1507728474; acs 1000; am Rd6; bm
>Rb6 Rg5+; ce -207; id "WAC.274"; pv Ka2 Nxc2 Rg5+ b5 axb5 axb5 Rg8 Rb3 Nxc4+
>bxc4 Ra8+ Kb6 Rb8+ Kc5 Rc8+ Kd5 Rc5+ Ke4 Rxc4 Rc3 Ra4 Ne3 Rb4 Rc4 Rb7;
>
>Here is the log file for an analysis of WAC.274:
>
>EPD Kit revision date: 1996.04.21
>found computer opening book file [./bookc.bin].
>ERROR "krafty fischer " is unknown rc-file option
>hash table memory =   96M bytes.
>pawn hash table memory =   12M bytes.
>EGTB cache memory =    8M bytes.
>draw score set to    0.00 pawns.
>choose from book moves randomly (using weights.)
>choose from 5 best moves.
>book learning enabled
>result learning enabled
>position learning enabled
>resign after 5 consecutive moves with score < -9.
>5 piece tablebase files found
>13980kb of RAM used for TB indices and decompression tables
>
>Crafty v19.17
>
>White(1): hash 500M
>hash table memory =  384M bytes.
>White(1): hashp 100M
>pawn hash table memory =   96M bytes.
>White(1): st 999
>search time set to 999.00.
>White(1): epdpfga wac274.epd wac274.out
>PFGA: EPD record: 1   ID: WAC.274
>              clearing hash tables
>              time surplus   0.00  time limit 16:39 (16:39)
>              depth   time  score   variation (1)
>captured a king
>piece=2,from=0,to=17,captured=3
>ply=8
>captured a king
>piece=2,from=0,to=17,captured=3
>ply=8
>                8->   0.16  -0.18   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 c3 5. Nd3 Rc4
>                9     0.22  -0.26   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 c3 5. Nd3 Ra4+ 6. Kb1 Ne3
>                9->   0.36  -0.26   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 c3 5. Nd3 Ra4+ 6. Kb1 Ne3
>               10     0.46  -0.34   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 c3 5. Nd3 Rc4 6. Rd5 Ne3
>               10->   0.79  -0.34   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 c3 5. Nd3 Rc4 6. Rd5 Ne3
>               11     0.99  -0.43   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 Ne1 5. Rc8 c3 6. Nd1 Ra4+ 7.
>                                    Kb3 c2 8. Nb2
>               11->   1.69  -0.43   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 Ne1 5. Rc8 c3 6. Nd1 Ra4+ 7.
>                                    Kb3 c2 8. Nb2
>               12     2.30  -0.60   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nd1 Ra3+ 6. Kb2 d3 7.
>                                    Rc8 Kb4 8. Nf2
>               12->   4.00  -0.60   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nd1 Ra3+ 6. Kb2 d3 7.
>                                    Rc8 Kb4 8. Nf2
>               13     6.29  -0.83   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Rg5 Ra3+ 6. Kb1 Ne3 7.
>                                    Rg8 d3 8. Rg3 Nc2 <HT>
>               13->  10.60  -0.83   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Rg5 Ra3+ 6. Kb1 Ne3 7.
>                                    Rg8 d3 8. Rg3 Nc2 <HT>
>               14    13.69     -1   1. Ka2
>               14    24.69  -1.51   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 Ne1 5. Nd1 c3 6. Nxc3 Nd3 7.
>                                    Ne4 Nxc5 8. Nxc5 Rc4
>               14->  41.41  -1.51   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rc5 Ne1 5. Nd1 c3 6. Nxc3 Nd3 7.
>                                    Ne4 Nxc5 8. Nxc5 Rc4
>               15     1:01  -1.84   1. Ka2 Nxc2 2. Rd6 c3 3. Nd3 Kxa4 4.
>                                    Rd8 Rb5 5. Rd7 Nb4+ 6. Nxb4 Rxb4 7.
>                                    Rc7 b5 8. Rc6 Rb2+ 9. Ka1 Re2 10. Rxa6+
>                                    Kb3
>               15->   1:43  -1.84   1. Ka2 Nxc2 2. Rd6 c3 3. Nd3 Kxa4 4.
>                                    Rd8 Rb5 5. Rd7 Nb4+ 6. Nxb4 Rxb4 7.
>                                    Rc7 b5 8. Rc6 Rb2+ 9. Ka1 Re2 10. Rxa6+
>                                    Kb3
>               16     2:27  -2.07   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nxc4+ bxc4 6. Ra8+ Kb6
>                                    7. Rb8+ Kc5 8. Rc8+ Kd5 9. Rc5+ Ke4
>                                    10. Rxc4 Rc3 11. Ra4 Ne3 12. Rb4
>               16->   3:46  -2.07   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nxc4+ bxc4 6. Ra8+ Kb6
>                                    7. Rb8+ Kc5 8. Rc8+ Kd5 9. Rc5+ Ke4
>                                    10. Rxc4 Rc3 11. Ra4 Ne3 12. Rb4
>               17     5:11  -2.07   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nxc4+ bxc4 6. Ra8+ Kb6
>                                    7. Rb8+ Kc5 8. Rc8+ Kd5 9. Rc5+ Ke4
>                                    10. Rxc4 Rc3 11. Ra4 Ne3 12. Rb4 Rc1
>               17->   6:47  -2.07   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nxc4+ bxc4 6. Ra8+ Kb6
>                                    7. Rb8+ Kc5 8. Rc8+ Kd5 9. Rc5+ Ke4
>                                    10. Rxc4 Rc3 11. Ra4 Ne3 12. Rb4 Rc1
>               18    10:51  -2.07   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nxc4+ bxc4 6. Ra8+ Kb6
>                                    7. Rb8+ Kc5 8. Rc8+ Kd5 9. Rc5+ Ke4
>                                    10. Rxc4 Rc3 11. Ra4 Ne3 12. Rb4 Rc4
>                                    13. Rb7
>               18->  15:38  -2.07   1. Ka2 Nxc2 2. Rg5+ b5 3. axb5 axb5
>                                    4. Rg8 Rb3 5. Nxc4+ bxc4 6. Ra8+ Kb6
>                                    7. Rb8+ Kc5 8. Rc8+ Kd5 9. Rc5+ Ke4
>                                    10. Rxc4 Rc3 11. Ra4 Ne3 12. Rb4 Rc4
>                                    13. Rb7
>              time=16:39  cpu=83%  mat=1  n=1507728474  fh=88%  nps=1.51M
>              ext-> chk=89949468 cap=1965980 pp=11206314 1rep=6264649
>mate=828068
>              predicted=0  nodes=1507728474  evals=789977595  50move=0
>              endgame tablebase-> probes=482049  hits=74636
>White(1):



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.