Pause calculation / analysis engines

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Rapakei
Posts: 12
Joined: Fri Mar 08, 2019 4:18 pm
Full name: Raph Eijkenboom

Pause calculation / analysis engines

Post by Rapakei » Thu May 02, 2019 9:58 am

Hello chess friends,

Is possible to do, I give an example:

Today I start party nr 1 a few hours of calculation / analysis and then put him on a break and then continue on another day with calculation / analysis without losing any information / calculation. Do you understand what I mean?

I work with Chessbase.

Regards, Raph

User avatar
hgm
Posts: 24737
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Pause calculation / analysis engines

Post by hgm » Thu May 02, 2019 12:26 pm

Most engines do not offer a pause functionality. The UCI protocol does not have or allow it, and although WB protocol defines 'pause' and 'resume' commands, hardly any WB engine supports those.

What I usually do when I want to suspend a multi-day analysis in progress because I want to use the computer for some other heavy-duty task in between, is use the Windows task manager to set an affinity of the task to be suspended to a single hyper thread, and put its priority 'below normal'. Then it hardly loads the system.

Rapakei
Posts: 12
Joined: Fri Mar 08, 2019 4:18 pm
Full name: Raph Eijkenboom

Re: Pause calculation / analysis engines

Post by Rapakei » Thu May 02, 2019 2:36 pm

hgm wrote:
Thu May 02, 2019 12:26 pm
Most engines do not offer a pause functionality. The UCI protocol does not have or allow it, and although WB protocol defines 'pause' and 'resume' commands, hardly any WB engine supports those.

What I usually do when I want to suspend a multi-day analysis in progress because I want to use the computer for some other heavy-duty task in between, is use the Windows task manager to set an affinity of the task to be suspended to a single hyper thread, and put its priority 'below normal'. Then it hardly loads the system.

In that case, therefore, should the Chessbase program remain open?

saving the party's calculations and continuing those calculations later is also not an option?

Spill_The_Tea
Posts: 23
Joined: Mon Dec 17, 2018 2:33 am
Full name: Jase de Lace

Re: Pause calculation / analysis engines

Post by Spill_The_Tea » Fri May 03, 2019 12:25 am

I have never used it before, but I believe Komodo has an option to save Hash to a file to be able to load for later use.
I think in theory, this is what you are looking for?

Guenther
Posts: 3344
Joined: Wed Oct 01, 2008 4:33 am
Location: Regensburg, Germany
Full name: Guenther Simon
Contact:

Re: Pause calculation / analysis engines

Post by Guenther » Fri May 03, 2019 6:24 am

Rapakei wrote:
Thu May 02, 2019 9:58 am
Hello chess friends,

Is possible to do, I give an example:

Today I start party nr 1 a few hours of calculation / analysis and then put him on a break and then continue on another day with calculation / analysis without losing any information / calculation. Do you understand what I mean?

I work with Chessbase.

Regards, Raph
Do a forum search for 'persistent hash'. There are engines which support this option, e.g. Rybka, Komodo, Houdini (6?),
some AsmFish flavours, Andscacs IIRC and others. They independently save the hash from your calculations to a file and can reload
the filled/learned file for further calculations. This is independent from the GUI of course.
https://rwbc-chess.de
Greg Strong@ovyron wrote: What I think is that you have a very, very, VERY strong desire to post, and very little self-control.
All the time. In every conversation. You must post. Something. It's like you just can't help yourself.

User avatar
hgm
Posts: 24737
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Pause calculation / analysis engines

Post by hgm » Fri May 03, 2019 9:29 am

Saving the hash and restarting the analysis after reloading it is not the same as continuing the analysis undisturbed. If you are satisfied with that you might as well just have terminated the analysis (but not quit the GUI or unload the engine), and restart the analysis when you are done with the other task. You can do that with any engine, it doesn't require any special support at all.

adams161
Posts: 556
Joined: Sun May 13, 2007 7:55 pm
Location: Tacoma, WA USA

Re: Pause calculation / analysis engines

Post by adams161 » Fri May 03, 2019 9:42 am

Rapakei wrote:
Thu May 02, 2019 2:36 pm
In that case, therefore, should the Chessbase program remain open?
If you want to slow the engine down to one thread and below normal priority in the task manager leave chessbase open. Chessbase will be a different process in the task manager than the engine. the engine might be stockfish in the task manager or pulsar.exe. Slow that process down, not the client, Chessbase. Chessbase can remain open and be not high load. It is the engine process that is the load.

User avatar
Eelco de Groot
Posts: 4265
Joined: Sun Mar 12, 2006 1:40 am
Location: Groningen

Re: Pause calculation / analysis engines

Post by Eelco de Groot » Fri May 03, 2019 10:10 am

hgm wrote:
Fri May 03, 2019 9:29 am
Saving the hash in memory and restarting the analysis after reloading it is not the same as continuing the analysis undisturbed. If you are satisfied with that you might as well just have terminated the analysis (but not quit the GUI or unload the engine), and restart the analysis when you are done with the other task. You can do that with any engine, it doesn't require any special support at all.
Saving/keeping the hash (in working memory) and restarting the analysis, not after reloading but just after stopping the engine I often do when I want better analysis (at cost of result not being totally reproducible anymore in one thread mode). I usually use just single thread so this works a bit better, because Stock already emulates this somewhat when using more threads. Not a whole restart but sending up another search with a different thread and slightly different depth whenever using more than one thread. Difficult to test with the framework but I do not doubt that it works, just to restart the engine from depth 0. As far as I know Chessbase only allows one instance so, IMO serious weakness compared to other GUIs. For instance I have 14 instances of Shredder open right now, all halted and completely not useful anymore but the hash is still there. Winboard has even smaller footprint I think.
Last edited by Eelco de Groot on Fri May 03, 2019 10:30 am, edited 1 time in total.
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

User avatar
hgm
Posts: 24737
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Pause calculation / analysis engines

Post by hgm » Fri May 03, 2019 10:17 am

Not sure what you mean by 'saving the hash' here. When you stop the engine, and later set it analyzing again, the hash would always still be there, right? It does not clear the hash at the start of every analysis.

User avatar
Eelco de Groot
Posts: 4265
Joined: Sun Mar 12, 2006 1:40 am
Location: Groningen

Re: Pause calculation / analysis engines

Post by Eelco de Groot » Fri May 03, 2019 10:38 am

Yes, that is what I meant Harm, I edited my post a little when I saw it was confusing. As far as I know, Windows keeps the hash intact although I have not really tested it, I don't play correspondence chess or things like that. But certainly for short perods of time you can do this now. Windows should write the hashtables to disk if it needs the working memory, and be able to pick it up from there again.
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

Post Reply