Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: To Bob- how do you compute cpuload?

Author: Peter Fendrich

Date: 12:09:06 03/24/03

Go up one level in this thread


On March 24, 2003 at 13:28:43, Robert Hyatt wrote:

>On March 24, 2003 at 11:49:51, Peter Fendrich wrote:
>
>>We have a discussion in the WinBoard forum about how to compute cpuload and
>>Crafty is mentioned as good example.
>>
>>How do you compute it in Crafty under the windows environment?
>>
>>/Peter
>
>
>I believe I am using "GetThreadTimes()" to get the cpu times used by all the
>threads combined and "GetTicCount()" to get the elapsed time used.
>
>However for SMP it is a bit more complicated as I also time the spinwait code
>and subtract that from the cpu time used as that is time that is "wasted" and
>not
>used on actually searching.  That's why you generally see CPU utilization in the
>390+% range, rather than 400 even though all 4 cpus will be 100% busy running
>Crafty code.
Ok, I don't have SMP for searching but two threads (one for handling input).
It shouldn't be any problems with that I suppose.
Thanks,
Peter




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.