Mate in 15, How Long Does It Take To Solve?

Endgame analysis using tablebases, EGTB generation, exchange, sharing, discussions, etc..
Post Reply
User avatar
Ed Trice
Posts: 58
Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

Image

This mate in 15 was solved in 7:16 on my 3.9 GHz Intel Core i7-860 (the slowest computer I have). I am wondering, how long does it take to solve on other systems?
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
dcorbit
Posts: 12
Joined: Mon Jun 09, 2008 10:18 pm

Re: Mate in 15, How Long Does It Take To Solve?

Post by dcorbit »

7r/kpr1b1pn/p3P3/q1p1N1p1/P1Qp2P1/1R5P/1PP1R1B1/6K1 w - - bm Rxb7+; c0 "Ed Trice"; dm 15;
User avatar
Kirill Kryukov
Site Admin
Posts: 7399
Joined: Sun Dec 18, 2005 9:58 am
Sign-up code: 0
Location: Mishima, Japan
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Kirill Kryukov »

Nice time I'm sure, however what I wonder is if this kind of test makes a reliable benchmark. In my experience, multi-threaded engines often show huge variation in time they take to solve the same position, in different runs (same position, same engine unloaded and loaded fresh each time).

If you repeat this test several times, how far are the time values one from another? I.e., sample size and standard deviation would be nice to know (before we invest time in benchmarking our much slower machines). Even small sample of 5 to 10 runs will help a lot.
User avatar
Ed Trice
Posts: 58
Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

I think that is true for when you vary the hash table size, but once one thread reports a mate that is found, and updates the other threads, they should all "rush towards the goal" very quickly, unless the losing side finds a postponing move.

I will do a few runs as you suggest and report the times.
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
User avatar
Ed Trice
Posts: 58
Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

Ok, I ran these tests:

1. Computer as is (browser launched, already on, then launched Shredder and loaded Houdini).
2. Restarted computer, cleared the hash table, Shredder would boot with Houdini as the engine.
3. Shut down the computer, let it cool down a few minutes, then repeated everything in test #2.

The results:

1. Saw the first mate @ 5:17, announced mate in 15 @ 9:43
2. Saw the first mate @ 4:58, announced mate in 15 @ 8:02
3. Saw the first mate @ 4:22, announced mate in 15 @ 7:43

So there was some variance depending on the "state of the computer" at the time of the test.

I would not have expected this with the hash table the same, but as you noted, this is probably "not deterministic" since the parallel searchers have slight changes from test to test.
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
User avatar
Kirill Kryukov
Site Admin
Posts: 7399
Joined: Sun Dec 18, 2005 9:58 am
Sign-up code: 0
Location: Mishima, Japan
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Kirill Kryukov »

Thanks for checking, Ed. Yeah, too large variation for a useful benchmark, as I expected. A reliable multi-threaded chess benchmark is something I am looknig for a long time. As it appears so far, it's better to use non-chess benchmarks for multi-core benchmarking.
User avatar
Ed Trice
Posts: 58
Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

Well, look at the last two times. The difference is only 19 seconds.

I don't see how that is all that great of a difference in time for such a hard position.

I am wondering, how long does it take other computers to solve the mate? 20 minutes? 1 hour? Longer?

I will test it on the i7-2600K I will be building for someone next week. They asked for 5.4 GHz+, we'll see if I can deliver on that request.
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
ernest
Posts: 63
Joined: Tue Nov 21, 2006 6:31 pm
Sign-up code: 0
Location: Paris

Re: Mate in 15, How Long Does It Take To Solve?

Post by ernest »

Ed Trice wrote:So there was some variance depending on the "state of the computer" at the time of the test.
Hi Ed,
I don't understand :o
If those tests were done with MP, why do you relate the "variance" to the "state of the computer"?
Isn't that the same as saying that the variance is due to running 3 times around the table (indian style) between tests?
User avatar
Ed Trice
Posts: 58
Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

Small changes matter.

In test #1, my system had been up and running almost 72 hours. It was hot, no doubt some of the RAM was fragmented, several program were open and had been running, and my browser had at least 15 tabs open. Therefore, as I quit some programs and launched Shredder, the allocation of RAM for the hash table and the program were not in what I would called an "optimized state". I also had to unload the current chess engine and load the Houdini engine, which again will move memory around.

The movement of memory will impact software that uses memory, even if only very slightly.

In test #2, I rebooted, Houdini was the engine of choice that came up (no memory movement for that operation), and I had a fresh RAM allocation.

In test #3, my CPU temps were almost 10 C cooler after the reboot, meaning my overclock was probably 0.02 Ghz = 20 MHz faster.

Each time, performance was slightly better as reported by the shorter time to discover the mate.
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
User avatar
Kirill Kryukov
Site Admin
Posts: 7399
Joined: Sun Dec 18, 2005 9:58 am
Sign-up code: 0
Location: Mishima, Japan
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Kirill Kryukov »

I tried to benchmark my Phenom II x4 905e (2.5 GHz), using 2 cores (other cores were busy). I stopped it after one hour, it was already showing mate in 16 at that time. :-) For a benchmark use, I suggest: 1. Something that takes shorter time to compute. 2. Using some non-controversial free engine.
ernest
Posts: 63
Joined: Tue Nov 21, 2006 6:31 pm
Sign-up code: 0
Location: Paris

Re: Mate in 15, How Long Does It Take To Solve?

Post by ernest »

Ed Trice wrote:Small changes matter.
Yes, but have you done 3 successive tests, in conditions as identical as possible?
I am sure that you will then see the same large variance!

...simply because this is MP!
User avatar
Ed Trice
Posts: 58
Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

The purpose of the test was to try and see if the time of 7:16 was "extraordinary" or not. I have been dealing with superfast systems for so long, my friends have told me that I "should not complain" that it "took so long" to solve that mate in 15.

After all, it's the slowest system I have, and I must admit, I have gotten used to all of this high speed computing (if a computer takes longer than 8 seconds to boot Windows I get impatient).

If other programs could solve it in 15-20 minutes, I would guess it was not that special of a result.
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
ernest
Posts: 63
Joined: Tue Nov 21, 2006 6:31 pm
Sign-up code: 0
Location: Paris

Re: Mate in 15, How Long Does It Take To Solve?

Post by ernest »

Ed Trice wrote:The purpose of the test was to try and see if the time of 7:16 was "extraordinary" or not.
OK Ed, I did the 3 consecutive tests, on the same Houdini 1.01 engine, but 32-bit and on my (lowly) Core 2 Duo @3GHz (2threads), 512 MB hash.
1st try: mate in 15 obtained in 26 minutes, at depth 31
2nd try: only mate in 62 reached after 12 and half hours, depth still only 29
3rd try: only mate in 29 reached after more than 6 hours, depth 30

Quite a good example of MP (basic) non-reproducibility... :)
And no, there was no thunder and lightning between tests! :P

New game
7r/kpr1b1pn/p3P3/q1p1N1p1/P1Qp2P1/1R5P/1PP1R1B1/6K1 w - - 0 1
Analysis by Houdini 1.01 w32 2_CPU:
1st try

1.Rxb7+ Rxb7 2.Nc6+ Kb6 3.Nxa5 Rc7 4.Bb7 Ra8 5.Bxa8 d3 6.Qxd3 Kxa5 7.Qxh7 c4 8.Qe4 Bc5+ 9.Kh2 g6 10.Qxg6 Bd6+ 11.Kg2 Be7 12.Qe8 Bf6 13.Rf2 Be5 14.Rf5 Rc5 15.Rxg5 Bxb2 16.Rxc5+ Kb4 17.e7 Ka3 18.Rxc4 Ka2 19.Qd7 a5 20.e8Q Kb1
+- (44.53) Depth: 23/71 00:11:10 2068mN
1.Rxb7+ Rxb7 2.Nc6+ Kb6 3.Nxa5 Rc7 4.Bb7 Ra8 5.Bxa8 d3 6.Qxd3 Kxa5 7.Qxh7 c4 8.Qe4 Bc5+ 9.Kh2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Joined: Thu Oct 28, 2010 1:13 am
Sign-up code: 10159
Location: Henlopen Acres, Delaware
Contact:

Re: Mate in 15, How Long Does It Take To Solve?

Post by Ed Trice »

ernest wrote:
Ed Trice wrote:The purpose of the test was to try and see if the time of 7:16 was "extraordinary" or not.
OK Ed, I did the 3 consecutive tests, on the same Houdini 1.01 engine, but 32-bit and on my (lowly) Core 2 Duo @3GHz (2threads), 512 MB hash.
1st try: mate in 15 obtained in 26 minutes, at depth 31
2nd try: only mate in 62 reached after 12 and half hours, depth still only 29
3rd try: only mate in 29 reached after more than 6 hours, depth 30

Quite a good example of MP (basic) non-reproducibility... :)
And no, there was no thunder and lightning between tests! :P
Wow, that is what I call a huge variation in reported times.

I take it the 26 minutes is a good result then. And mate in 62? That's 123 plies!
5.0 Ghz Intel Gulftown Supercomputers
http://www.liquidnitrogenoverclocking.com
Post Reply