2009/8/18, Dale Emery <d...@dhemery.com>:
> Hi all,
>
> When I start Rybka under Scid (4.0 DEVEL), it creates one process per CPU,
> and each process runs at full CPU capacity. When I close the analysis
> window
> or quit Scid, only one Rybka process is killed (the one with the lowers
> PID,
> I think). The other processes go to 0% CPU, but they hang around in the
> process table.

If they are zombie process, this is normal.

> When I Force Quit Scid (which I have to do now and then), one Rybka proces
> is killed, but the others keep running at 100% CPU speed. This turns my Mac
> Pro into a mighty, mighty furnace. I live in Sacramento, and have found
> that
> in August a furnace is not only unnecessary, but downright undesirable.
>
> Naturally, none of my single-processor engines (Toga II, fruit, HIARCS SP)
> have this problem. The other multiprocessor chess engines that I use
> (HIARCS
> MP and Glaurung) seem to use threads rather than separate processes to dole
> out work to the processors. So they use only a single process, which dies
> when Scid quits or closes the analysis window. The problem happens only on
> Rybka, which uses separate processes.
>
> Is there a preference or option I can set, in either Scid or Rybka, to
> instruct Scid to kill ALL Rybka threads and not just the first one? (I know
> I could set Rybka to use only 1 CPU, but I'd rather be able to run it at
> full capacity.)

I can't help as I only have Rybka 3 1-CPU. But I checked the code and
it seems (nearly) ok for me. Maybe a race condition in Rybka +  Scid :
Scid sends a normal quit command and after that a kill to be sure no
process is left behind. Maybe the main Rybka process controlling the
slave processes does not have the time to terminate them.
Look at closeUCIengine procedure in scid/tcl/tools/uci.tcl : maybe a
pause of a couple of seconds around line 727 could do the trick.

Pascal

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to