New Stockfish with Lazy_SMP, but what about the TC bug ?

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

Moderators: hgm, Rebel, chrisw

Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: New Stockfish with Lazy_SMP, but what about the TC bug ?

Post by Dann Corbit »

mcostalba wrote:
Dann Corbit wrote: What I proposed solves both issues (thousands of timer calls in one search and running over time).

The fact that is easy and obvious is irrelevant.

I do not think that doing it the way other people do it is better.
Do you realize that your solution to fix time lose is exactly equivalent (but uglier) to increase move overhead at 200 msecs?
It was not obvious to me that this was the case.
Strange, then, that SF loses on time.
Do you realize that your solution to reduce check time overhead fixes a non-issue?
I did not realize that you already benchmarked this idea and saw that it caused no improvement.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: New Stockfish with Lazy_SMP, but what about the TC bug ?

Post by mcostalba »

Dann Corbit wrote: It was not obvious to me that this was the case.
Strange, then, that SF loses on time.
Default move overhead of SF is set at 30msecs, nevertheless it _is_ strange that SF lost on time becuase it happens only on TCEC machine so far.

For superfinal move overhead will be set at 1000msec.
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: New Stockfish with Lazy_SMP, but what about the TC bug ?

Post by Dann Corbit »

mcostalba wrote:
Dann Corbit wrote: It was not obvious to me that this was the case.
Strange, then, that SF loses on time.
Default move overhead of SF is set at 30msecs, nevertheless it _is_ strange that SF lost on time becuase it happens only on TCEC machine so far.

For superfinal move overhead will be set at 1000msec.
It is actually strange that SF does not lose on time for you on other platforms.

The lags are almost unrelated to inaccuracy of sleep (which will respond within its stated resolution range for Sleep) but rather are caused by the lag between signalling a thread for the ready state and when it actually begins to run.

When the machine is jugged, this lag can be surprisingly substantial.
If you have every CPU on the machine pegged doing chess calculations, then thread startup time becomes less and less deterministic.
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: New Stockfish with Lazy_SMP, but what about the TC bug ?

Post by syzygy »

mcostalba wrote:
Dann Corbit wrote: What I proposed solves both issues (thousands of timer calls in one search and running over time).

The fact that is easy and obvious is irrelevant.

I do not think that doing it the way other people do it is better.
Do you realize that your solution to fix time lose is exactly equivalent (but uglier) to increase move overhead at 200 msecs?

Do you realize that your solution to reduce check time overhead fixes a non-issue?
I have only tried to explain that five times or so ;-)
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: New Stockfish with Lazy_SMP, but what about the TC bug ?

Post by bob »

syzygy wrote:
mcostalba wrote:
Dann Corbit wrote: What I proposed solves both issues (thousands of timer calls in one search and running over time).

The fact that is easy and obvious is irrelevant.

I do not think that doing it the way other people do it is better.
Do you realize that your solution to fix time lose is exactly equivalent (but uglier) to increase move overhead at 200 msecs?

Do you realize that your solution to reduce check time overhead fixes a non-issue?
I have only tried to explain that five times or so ;-)
And you have done so quite well. Thread unblock / schedule-to-run delay is completely unrelated to how long a thread is blocked due to any sort of sleep or anything else. And changing how often you sample the clock and how long you sleep has zero effect on this either. Once you block, the delay will happen.