Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: About csrss.exe and testers wanted

Author: Daniel Shawul

Date: 01:27:18 11/30/04

Go up one level in this thread


On November 30, 2004 at 03:44:13, Russell Reagan wrote:

>On November 30, 2004 at 02:22:49, Daniel Shawul wrote:
>
>>   So it doesn't matter how much cpu it uses?
>>Because it sometimes uses upto 20% cpu. I am not creating and destryoing lots of
>>search threads, 400 splits in a 10 second search maximum.
>
>My guess is that your code is making system calls to do synchronization (maybe
>EnterCriticalSection, OpenMutex, and so on) instead of using a spin lock.

  I do use spinlocks :)
  I replaced the critical section code with spinlocks some time ago
but it brought nothing at all. When i flipped from mutexes to critical sections
that really brought something. But here on my single cpu critical sections are
as fast if not faster than spinlocks. May be the story is different in multiple
cpus,that's why i still kept the spinlocks.
May be you can check it at your dual and see cssrs.exe is using reasonable cpu
time.


>However, guessing is a sure fire way to waste a lot of time.
>
>Profile your code. It will tell you exactly where your program is spending its
>time and which system calls (if any) are being called. Then you will know, and
>we won't have to guess :)
   i found it hard to debug parallel search programs because i can't reproduce
errors. If it breaks at wac 107 now,it will not break at that position when i
try to fix the problem. So i have to use my brain to debug the code than the
debugger.
daniel



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.