One more issue with king safety/attack for Stockfish

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

Moderators: hgm, Rebel, chrisw

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: One more issue with king safety/attack for Stockfish

Post by zullil »

Max wrote: Wed Jul 17, 2019 4:59 pm
Spliffjiffer wrote: Wed Jul 17, 2019 4:35 pm i dont wanna talk away the problems SF has when it comes to sacrifices in terms of make kings naked but "my" latest SF ("Fix bench", Sun Jul 14 15:21:08 2019 +0200 by MC) finds Qg6 in about 13 seconds (tried 2 times) on an old APU 7870k-4 cores-CPU while SF10 needs much longer in this particular case...maybe just a compiler issue though or even pure luck ?
Perhaps multicore luck? The same Stockfish 140719 64 BMI2 needs here with 1 thread depth 37 and about 4 minutes to find Qg6.

Code: Select all

26 [+3.22]  20.... Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 23.Rd1 Qg6 24.Rxd8+ Rxd8 25.Bf5 Qf6 26.Qc3 Bxe3 27.Qxe3 Nb7 28.Rh1 Nd6 29.Rh7 Kb7 30.a4 Nxf5 31.exf5 Rd7 32.Qb3+ Kc7 33.Qe6 Qxe6 34.fxe6 Re7 35.b4 Kd6  (5.92)
27 [+3.31]  20.... Bxe4+ 21.dxe4  (7.02)
27 [+3.43]  20.... Bxe4+  (12.59)
27 [+3.75]  20.... Bxe4+ 21.dxe4  (13.96)
27 [+3.46]  20.... Bxe4+  (16.12)
27 [+3.58]  20.... Bxe4+ 21.dxe4 Bxe3 22.Bxg4+ Kb8 23.Qxe3 Qd4 24.Qg5 Qd6 25.Rad1 Qf6 26.Rxd8+ Rxd8 27.Qe3 Nb7 28.Rh1 Nd6 29.Rd1 Nb7 30.Rxd8+ Qxd8 31.Qc3 Qd6 32.b4 c5 33.a4 Ka8 34.b5 Qd4 35.Qxd4 cxd4  (16.54)
28 [+3.49]  20.... Bxe4+  (17.42)
28 [+3.68]  20.... Bxe4+ 21.dxe4  (19.13)
28 [+3.46]  20.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xg4 29.Bxg4+ Kc7 30.a5 Bc5 31.b4 Bxb4 32.Be6 Nd6 33.a6 Bc5 34.Kg2 Kb6 35.f3 Nf5 36.Rb1+ Kxa6 37.g4 Ne3+ 38.Kg3 Bd4 39.Kf2 Rh8 40.Kg3  (288.38)
39 [-4.96]  20.... Qg6 21.Rh1 Rxh1 22.Qxh1 Bxe3 23.Qh4 Nc4 24.Kg1 Bb6 25.a4 Bxe4 26.dxe4 Rf8 27.Rf1 Qxe4 28.Qxg4+ Qxg4 29.Bxg4+ Kc7 30.a5 Bc5 31.b4 Bxb4 32.Be6 Nd6 33.a6 Bc5 34.Kg2 Kb6 35.f3 Nf5 36.Rb1+ Kxa6 37.g4 Ne3+ 38.Kg3 Bd4 39.Kf2 Rh8 40.Kg3  (292.99)

[-4.96 ]  Depth: 39/59  Nodes: 448540K (1531 kn/s) Time: 292.99 s
NPS: 1530918  Hash: 100%  Load: ---- TB hits: 1248 Current: Qg6 (1/46) 
Qg6 should be found at depth 35 by Stockfish-dev, if you use the default setting: Hash = 16 MB, no endgame tables, etc
Spliffjiffer
Posts: 416
Joined: Thu Aug 02, 2012 7:48 pm
Location: Germany

Re: One more issue with king safety/attack for Stockfish

Post by Spliffjiffer »

yes, when i use only 1 core (but 1024 hash as before) SF needs about 2,5 minutes to find Qg6 at depth 35 as you assumed !
but if i switch back to 4 cores (hash cleaned, Arena-GUI restarted) it always takes only 10 to 20 seconds to find Qg6...quite strange...i used SF BYO (Stockfish Build on Your Own) to compile the fish maybe some "tweak" inside the compile-action involved to get the right move that quickly compared to the deterministic result i get, as you, with only 1 core !??
Wahrheiten sind Illusionen von denen wir aber vergessen haben dass sie welche sind.
Max
Posts: 247
Joined: Tue Apr 13, 2010 10:41 am

Re: One more issue with king safety/attack for Stockfish

Post by Max »

zullil wrote: Wed Jul 17, 2019 5:19 pm Qg6 should be found at depth 35 by Stockfish-dev, if you use the default setting: Hash = 16 MB, no endgame tables, etc
You are absolute right, my run was with tablebase and 512MB hash.
Hope we're not just the biological boot loader for digital super intelligence. Unfortunately, that is increasingly probable - Elon Musk
Paloma
Posts: 1167
Joined: Thu Dec 25, 2008 9:07 pm
Full name: Herbert L

Re: One more issue with king safety/attack for Stockfish

Post by Paloma »

zullil wrote: Wed Jul 17, 2019 5:19 pm Qg6 should be found at depth 35 by Stockfish-dev, if you use the default setting: Hash = 16 MB, no endgame tables, etc
One question: when i build a new comp, what RAM size should i choose?

I see you set Hash to 16MB, my current Ram size is 16 MB so i can use 8MB Hash.

When i buy Ryzen 3900X as CPU i would like get 32MB RAM or should i choose 64 MB?

Mostly i analysing Test-Pos more hours, so i can choose 48MB Hash when i have 64 MB RAM.

What do you recommend? 64 or 32?

Edit:
zullil: I have 64 GB (not MB :D ). I often use 32 GB hash for long searches.

of course i meant GB. Your 16 MB has confused me. :)
Last edited by Paloma on Thu Jul 18, 2019 12:43 am, edited 2 times in total.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: One more issue with king safety/attack for Stockfish

Post by zullil »

Paloma wrote: Thu Jul 18, 2019 12:15 am
zullil wrote: Wed Jul 17, 2019 5:19 pm Qg6 should be found at depth 35 by Stockfish-dev, if you use the default setting: Hash = 16 MB, no endgame tables, etc
One question: when i build a new comp, what RAM size should i choose?

I see you set Hash to 16MB, my current Ram size is 16 MB so i can use 8MB Hash.

When i buy Ryzen 3900X as CPU i would like get 32MB RAM or should i choose 64 MB?

Mostly i analysing Test-Pos more hours, so i can choose 48MB Hash when i have 64 MB RAM.

What do you recommend? 64 or 32?
I have 64 GB (not MB :D ). I often use 32 GB hash for long searches.

I used 16 MB only because that is the Stockfish default, and I wanted to use default settings.
User avatar
Eelco de Groot
Posts: 4561
Joined: Sun Mar 12, 2006 2:40 am
Full name:   

Re: One more issue with king safety/attack for Stockfish

Post by Eelco de Groot »

If you make very small changes, with one thread the time to solution greatly varies so mainly search luck seems important. With many threads the chance of success is of course higher so SF not finding it quickly with one thread maybe does not matter very much. I could not find something easily repaired but did not even look at the PV I must say. Kaissa has a bit more search luck anyway and I helped a bit with some scoutsearching :wink: 71 million nodes needed. No compare to the fast programs mentioned I suppose.

After switching to 20.dxe4 instead of 20. Nxe4, the program has to find the answer 20. dxe4 Qg6 again but this time maybe, barely, a draw. Not sure though, it is not 0.00 and almost -0.8 at times. 20. Rh1 (from the game) also slightly negative so that move is not chosen.

[d]2kr3r/p5p1/2pq4/n1b1pb2/4p1p1/2NPB1P1/PPP1BPK1/R3QR2 w - -

Engine: Kaissa IV NoContempt (Version 154B, 512 MB)
by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

Code: Select all

23/34  0:01   +3.60    20.Nxe4 Bxe4+ 21.dxe4 Bxe3 22.Bxg4+ Kb7 
                       23.Qxe3 Qg6 24.Qf3 Rd4 25.Bf5 Qh5 
                       26.Qxh5 Rxh5 27.Rfd1 Nc4 28.Rxd4 exd4 
                       29.Rd1 c5 30.Be6 Ne5 31.f4 Nc6 
                       32.Bd5 Kb6 33.e5 (2.994.240) 1763 

24/39  0:02   +3.82    20.Nxe4 Bxe4+ 21.dxe4 Bxe3 22.Bxg4+ Kb7 
                       23.Qxe3 Qg6 24.Qf3 c5 25.Rad1 Nc6 
                       26.c3 Rxd1 27.Rxd1 Kb6 28.Qe2 a6 
                       29.Bh3 Qh6 30.Rh1 Qf6 31.Bg4 Rf8 
                       32.Rh5 Ne7 33.f3 (3.612.328) 1769 

25/39  0:03   +3.96++  20.Nxe4 (5.358.083) 1777 

25/40  0:03   +3.90    20.Nxe4 Bxe4+ 21.dxe4 Bxe3 22.Bxg4+ Kb8 
                       23.Qxe3 Qg6 24.Bf5 Qf6 25.Rad1 Nb7 
                       26.Rxd8+ Rxd8 27.Rh1 Nd6 28.Bg4 Qg6 
                       29.Bf3 Qf6 30.Rh5 Re8 31.Qc5 Nb5 
                       32.c3 Qd6 33.Qxd6+ (5.560.104) 1777 

26/42  0:03   +3.80--  20.Nxe4 Bxe4+ (6.942.926) 1765 

26/42  0:04   +3.71--  20.Nxe4 Bxe4+ (7.395.413) 1764 

26/42  0:04   +3.80++  20.Nxe4 (8.230.612) 1761 

26/42  0:05   +3.85    20.Nxe4 Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 
                       23.Qc3 Nb7 24.Rad1 Bd4 25.Qb3 Qg6 
                       26.Bf5 Qf6 27.Rh1 c5 28.a4 Bxe3 
                       29.Rxd8+ Rxd8 30.Qxe3 Rf8 31.Bg4 c4 
                       32.Rd1 Qg6 33.f3 (8.813.450) 1754 

27/36  0:05   +3.76--  20.Nxe4 Bxe4+ (9.365.136) 1755 

27/36  0:05   +3.85++  20.Nxe4 (10.386.190) 1751 

27/39  0:06   +4.00++  20.Nxe4 (11.016.993) 1754 

27/44  0:07   +4.19++  20.Nxe4 (12.370.487) 1751 

27/49  0:08   +4.00    20.Nxe4 Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 
                       23.Qc3 Nb7 24.Rad1 Bd4 25.Qxd4 exd4 
                       26.Bf4 c5 27.Bxd6+ Rxd6 28.Rh1 Re8 
                       29.Rh7 Rxe4 30.Rxg7 Re8 31.Rh1 c4 
                       32.b3 cxb3 33.cxb3 (14.653.490) 1747 

28/38  0:08   +3.90--  20.Nxe4 Bxe4+ (15.246.219) 1747 

28/38  0:09   +3.81--  20.Nxe4 Bxe4+ (15.772.920) 1748 

28/44  0:10   +3.90++  20.Nxe4 (17.699.530) 1750 

28/44  0:10   +4.10++  20.Nxe4 (18.805.684) 1752 

28/46  0:11   +4.15    20.Nxe4 Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 
                       23.Qc3 Nb7 24.Rh1 Bxe3 25.Qxe3 Qg6 
                       26.Bf5 Qf7 27.Rad1 Rxh1 28.Rxd8+ Nxd8 
                       29.Kxh1 Nb7 30.Qc3 Nd6 31.Qxe5 Qf6 
                       32.f4 Kb7 33.Bg4 (19.599.021) 1751 

29/40  0:11   +4.05--  20.Nxe4 Bxe4+ (20.579.970) 1751 

29/44  0:13   +4.15++  20.Nxe4 (23.224.608) 1751 

29/46  0:14   +3.96--  20.Nxe4 Bxe4+ (26.155.839) 1751 

29/49  0:18   +4.12++  20.Nxe4 (32.825.500) 1748 

29/49  0:20   +4.29    20.Nxe4 Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 
                       23.Qc3 Nb7 24.Rh1 Bd4 25.Qb3 Bxe3 
                       26.Qxe3 Qg6 27.Bf5 Qf6 28.Rxh8 Rxh8 
                       29.Rd1 Rd8 30.Rh1 Nd6 31.Rh5 Nb5 
                       32.Bg4 Qg6 33.Qg5 (35.259.233) 1747 

30/45  0:23   +4.38++  20.Nxe4 (41.312.414) 1748 

30/48  0:24   +4.19--  20.Nxe4 Bxe4+ (43.647.669) 1748 

30/48  0:25   +4.05--  20.Nxe4 Bxe4+ (44.105.712) 1748 

30/48  0:26   +4.19++  20.Nxe4 (45.833.518) 1746 

30/49  0:27   +4.05    20.Nxe4 Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 
                       23.Qc3 Nb7 24.Rh1 Bd4 25.Bxd4 exd4 
                       26.Qc4 Qc5 27.Qxc5 Nxc5 28.Rxh8 Rxh8 
                       29.Rd1 Rd8 30.e5 Kc7 31.b4 Ne4 32.a3 Nc3 
                       33.Rh1 (47.930.770) 1742 

31/44  0:29   +4.15++  20.Nxe4 (50.910.115) 1741 

31/47  0:32   +4.24++  20.Nxe4 (55.898.189) 1738 

31/50  0:34   +4.38++  20.Nxe4 (59.290.220) 1740 

31/51  0:35   +4.24    20.Nxe4 Bxe4+ 21.dxe4 Bb6 22.Bxg4+ Kb8 
                       23.Qc3 Nb7 24.Rh1 Bd4 25.Bxd4 exd4 
                       26.Qc4 Rhe8 27.Rae1 Qg6 28.Bh5 Qe6 
                       29.Qxe6 Rxe6 30.e5 Kc7 31.f4 Re7 
                       32.Bf3 Nc5 33.b4 (61.614.825) 1738 

32/52  0:38   +4.15--  20.Nxe4 Bxe4+ (66.394.016) 1733 

32/52  0:41   +4.06--  20.Nxe4 Qg6 (71.224.182) 1734 

32/52  0:41   +3.92--  20.Nxe4 Qg6 (72.300.311) 1734 

32/52  0:44   +3.72--  20.Nxe4 Qg6 (77.912.569) 1735 

32/52  0:47   +3.45--  20.Nxe4 Qg6 (82.772.772) 1736 

32/52  0:48   +3.09--  20.Nxe4 Qg6 (84.269.283) 1736 

32/52  0:50   +2.62--  20.Nxe4 Qg6 (88.190.059) 1735 

32/52  0:54   +2.01--  20.Nxe4 Qg6 (94.491.129) 1736 

32/52  0:59   +1.76    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rad1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Rh1 Rxh1 27.Kxh1 Qh6+ 28.Qxh6 gxh6 
                       29.Kg2 Nb7 30.Nd1 Kc7 31.Ne3 h5 
                       32.b4 Nd8 33.f3 (102.949.164) 1735 

33/47  1:03   +1.86++  20.dxe4 (109.671.184) 1737 

33/49  1:05   +1.92    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rfd1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Rh1 Rxh1 27.Kxh1 Qh6+ 28.Kg2 Qxe3 
                       29.fxe3 Nb7 30.Nd1 c5 31.Nf2 Nd6 
                       32.Bxg4 Bb7 33.Bf3 (113.650.487) 1739 

34/52  1:09   +1.83--  20.dxe4 Bxe3 (120.557.213) 1738 

34/55  1:12   +1.74--  20.dxe4 Bxe3 (126.260.204) 1739 

34/55  1:16   +1.77    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rfd1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Rh1 Rxh1 27.Kxh1 Qh6+ 28.Kg2 Qxe3 
                       29.fxe3 Nb7 30.Nd1 c5 31.Nf2 Nd6 
                       32.Bxg4 Bb7 33.Nd3 (133.295.788) 1738 

35/52  1:22   +1.77    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rfd1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Rh1 Rxh1 27.Kxh1 Qh6+ 28.Kg2 Qxe3 
                       29.fxe3 Nb7 30.Nd1 c5 31.Nf2 Nd6 
                       32.Bxg4 Bb7 33.Kf3 (143.825.122) 1739 

36/42  1:26   +1.87++  20.dxe4 (151.464.019) 1742 

36/56  1:30   +1.72    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rfd1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Rh1 Rxh1 27.Kxh1 Qh6+ 28.Kg2 Qxe3 
                       29.fxe3 Nb7 30.Nd1 c5 31.Nf2 Nd6 
                       32.Bxg4 Bb7 33.Kf3 (158.650.941) 1744 

37/60  1:39   +1.81++  20.dxe4 (173.028.854) 1746 

37/60  1:47   +1.91++  20.dxe4 (188.645.570) 1747 

37/60  1:58   +2.05++  20.dxe4 (207.174.635) 1751 

37/60  2:00   +1.83    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rad1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Rh1 Rxh1 27.Kxh1 Qh6+ 28.Kg2 Qxe3 
                       29.fxe3 Kc7 30.Nd1 c5 31.Nf2 Kd6 
                       32.b3 Nc6 33.a3 (211.584.811) 1751 

38/49  2:19   +1.92++  20.dxe4 (243.975.695) 1753 

38/54  2:24   +2.02++  20.dxe4 (253.190.505) 1753 

38/56  2:28   +2.16++  20.dxe4 (260.361.781) 1754 

38/56  2:31   +2.15    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rad1 Qf6 24.Rxd8 Rxd8 25.Be2 Rh8 
                       26.Nd1 Nb7 27.Rh1 Rxh1 28.Kxh1 Qd6 
                       29.Kg1 Nc5 30.Qg5 Nxe4 31.Qxg7 Qe6 
                       32.Qf8 c5 33.Ne3 (266.318.670) 1756 

39/55  2:45   +2.25++  20.dxe4 (290.103.003) 1757 

39/71  2:59   +2.06--  20.dxe4 Bxe3 (314.975.546) 1757 

39/71  3:26   +2.20++  20.dxe4 (363.130.189) 1761 

39/71  3:38   +2.20    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bd7 
                       23.Na4 Qh6 24.Qxh6 Rxh6 25.Rh1 Bc8 
                       26.Rxh6 gxh6 27.Be2 Rd4 28.Nc3 Nb7 
                       29.Rh1 Kc7 30.Kf1 Nc5 31.Rh5 Rd2 
                       32.Rxe5 Kd6 33.Rh5 (385.960.014) 1764 

40/59  4:01   +2.25    20.dxe4 Bxe3 21.Ba6+ Kb8 22.Qxe3 Bc8 
                       23.Rad1 Qf6 24.Rxd8 Rxd8 25.Be2 Nb7 
                       26.Rh1 Rd4 27.Rh8 Rd8 28.Rxd8 Qxd8 
                       29.a3 Be6 30.Na4 Qd4 31.Qxd4 exd4 
                       32.f4 c5 33.b3 (427.536.216) 1768 

41/56  4:14   +2.16--  20.dxe4 Bxe3 (449.310.117) 1768 

41/56  4:23   +2.07--  20.dxe4 Bxe3 (465.737.750) 1768 

41/56  4:51   +1.92--  20.dxe4 Qg6 (516.195.418) 1771 

41/56  5:05   +1.73--  20.dxe4 Qg6 (541.632.537) 1770 

41/56  5:26   +1.46--  20.dxe4 Qg6 (577.872.053) 1771 

41/56  5:52   +1.10--  20.dxe4 Qg6 (624.998.076) 1770 

41/56  6:28   +0.63--  20.dxe4 Qg6 (686.900.790) 1770 

41/62  8:04   +0.22    20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Rac1 Bd4 
                       26.Ne4 Bxb2 27.Rc2 Bd4 28.Bd2 Bb6 
                       29.Bxa5 Bxa5 30.Rxc6+ Kb8 31.Rg6 Rd4 
                       32.Rb1+ Bb6 33.Re1 (857.052.471) 1770 

42/60  9:38   +0.12--  20.Bg5 exd3 (1.023.653.554) 1768 

42/60  10:56  +0.03--  20.Bg5 exd3 (1.161.216.799) 1768 

42/60  12:41  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rfb1 Kd7 30.Rb4 Rc4 31.Rxc4 Nxc4 
                       32.Rb4 Nd6 33.Rxg4 (1.345.319.488) 1766 

43/59  14:02  +0.09++  20.Bg5 (1.488.298.765) 1766 

43/65  17:30  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rc5 (1.843.038.491) 1754 

44/65  19:40  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rc5 (2.068.512.463) 1752 

45/67  21:38  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rc5 (2.272.066.741) 1750 

46/64  25:01  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rc5 (2.628.349.687) 1751 

47/72  30:50  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rbc2 (3.241.659.546) 1751 

48/70  36:05  +0.08++  20.Bg5 (3.796.061.600) 1753 

48/70  38:17  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Rae1 Nc4 
                       26.Ne4 Bb6 27.Rc1 Nd6 28.Rxc6+ Kd7 
                       29.Nc5+ Kxc6 30.Nxd3 Bd4 31.Be3 Bxe3 
                       32.fxe3 Kd5 33.Nf2 (4.025.435.742) 1752 

49/69  44:27  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rbc2 (4.680.323.965) 1754 

50/82  52:03  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Rac1 Bd4 
                       26.Ne4 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rbc2 (5.486.480.419) 1756 

51/67  61:46  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rbc2 (6.527.798.823) 1761 

52/75  75:12  0.00     20.Bg5 exd3 21.Bxd3 Bxd3 22.cxd3 Qxd3 
                       23.Qe4 Rd4 24.Qxd3 Rxd3 25.Ne4 Bd4 
                       26.Rac1 Bxb2 27.Rc2 Rd4 28.Rxb2 Rxe4 
                       29.Rc1 Rh5 30.Be7 Kd7 31.Bc5 Ke6 
                       32.Bxa7 Ra4 33.Rbc2 (7.981.722.898) 1768 

53/80  101:52 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Nb7 
                       26.Rh1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rxh1+ 
                       29.Kxh1 Bd4 30.b4 a5 31.bxa5 Nc5 
                       32.Kg1 Nxd3 33.Rd1 (10.853.980.857) 1775 

54/79  156:48 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Nb7 
                       26.Rh1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rxh1+ 
                       29.Kxh1 Bd4 30.b4 a5 31.bxa5 Nc5 
                       32.Kg1 Nxd3 33.Rd1 (16.654.021.967) 1770 

55/76  197:58 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Nb7 
                       26.Rh1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rxh1+ 
                       29.Kxh1 Bd4 30.b4 a5 31.bxa5 Nc5 
                       32.Kg1 Nxd3 33.Rd1 (21.017.239.226) 1769 

56/83  252:46 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Bb4 
                       26.Rc1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rh5 
                       29.Bh4 Rfh8 30.Ng5 Bd2 31.Nxf3 Bxc1 
                       32.Rxc1 Rf8 33.g4 (26.859.679.253) 1770 

57/82  301:27 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Nb7 
                       26.Rh1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rxh1+ 
                       29.Kxh1 Bd4 30.Be3 Bxb2 31.Bxa7 Kc7 
                       32.Ng5 Ra8 33.Be3 (31.996.526.797) 1769 

58/77  361:26 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Nb7 
                       26.Rh1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rxh1+ 
                       29.Kxh1 Bd4 30.Be3 Bxb2 31.Bxa7 Kc7 
                       32.Ng5 Ra8 33.Be3 (38.389.950.322) 1770 

59/77  545:03 0.00     20.Bg5 exd3 21.Bxd3 Rdf8 22.Qe2 Qe6 
                       23.Rae1 Bxd3 24.cxd3 Qf5 25.Ne4 Nb7 
                       26.Rh1 Qf3+ 27.Qxf3 gxf3+ 28.Kg1 Rxh1+ 
                       29.Kxh1 Bd4 30.Be3 Bxb2 31.Bxa7 Kc7 
                       32.Ng5 Ra8 33.Be3 (57.314.434.508) 1752 

best move: Be3-g5 time: 545:03.531 min  n/s: 1.752.548  nodes: 57.314.434.508 
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
mwyoung
Posts: 2727
Joined: Wed May 12, 2010 10:00 pm

Re: One more issue with king safety/attack for Stockfish

Post by mwyoung »

Paloma wrote: Thu Jul 18, 2019 12:15 am
zullil wrote: Wed Jul 17, 2019 5:19 pm Qg6 should be found at depth 35 by Stockfish-dev, if you use the default setting: Hash = 16 MB, no endgame tables, etc
One question: when i build a new comp, what RAM size should i choose?

I see you set Hash to 16MB, my current Ram size is 16 MB so i can use 8MB Hash.

When i buy Ryzen 3900X as CPU i would like get 32MB RAM or should i choose 64 MB?

Mostly i analysing Test-Pos more hours, so i can choose 48MB Hash when i have 64 MB RAM.

What do you recommend? 64 or 32?

Edit:
zullil: I have 64 GB (not MB :D ). I often use 32 GB hash for long searches.

of course i meant GB. Your 16 MB has confused me. :)
I would go with 64 GB. With a 3900x or my 2950x. It does not take long to fill 58 GB of ram. And it helps find the answers much quicker in some positions.

I think it is well worth the investment for a chess computer. For analysis or LTC engine testing....
"The worst thing that can happen to a forum is a running wild attacking moderator(HGM) who is not corrected by the community." - Ed Schröder
But my words like silent raindrops fell. And echoed in the wells of silence.
User avatar
Master Om
Posts: 449
Joined: Wed Nov 24, 2010 10:57 am
Location: INDIA

Re: One more issue with king safety/attack for Stockfish

Post by Master Om »

Brainfish at ply 38 found it equal.

[pgn][Event "?"] [Site "?"] [Date "????.??.??"] [Round "?"] [White "?"] [Black "?"] [Result "*"] [Analysis "Brainfish x64"] [AnalysisTime "203"] [FEN "2kr3r/p5p1/2pq4/n1b1pb2/4p1p1/2NPB1P1/PPP1BPK1/R3QR2 w - - 0 20"] [SetUp "1"] 20. Bg5 exd3 21. Bxd3 Rdf8 22. Rd1 Bd4 23. Qe2 Qg6 24. Bxf5+ Qxf5 25. Ne4 Nc4 26. Bh4 Qf3+ 27. Qxf3 gxf3+ 28. Kh3 Nxb2 29. Rd2 Nc4 30. Rd3 Nb2 {(0:03:23) 2739121kN}{[%eval 0,39,Brainfish x64][%meval 203s|TB:178k]} *[/pgn]
Always Expect the Unexpected