CPU usage

Archive of the old Parsimony forum. Some messages couldn't be restored. Limitations: Search for authors does not work, Parsimony specific formats do not work, threaded view does not work properly. Posting is disabled.

CPU usage

Postby Janis » 29 Dec 2003, 10:14

Geschrieben von: / Posted by: Janis at 29 December 2003 10:14:23:

Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
Janis
 

Re: CPU usage

Postby Qalter » 29 Dec 2003, 11:06

Geschrieben von: / Posted by: Qalter at 29 December 2003 11:06:31:
Als Antwort auf: / In reply to: CPU usage geschrieben von: / posted by: Janis at 29 December 2003 10:14:23:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
have you playd with ponder ON?
Qalter
 

Ups. my name is Walter and NOT Qalter :)

Postby Walter » 29 Dec 2003, 11:13

Geschrieben von: / Posted by: Walter at 29 December 2003 11:13:56:
Als Antwort auf: / In reply to: Re: CPU usage geschrieben von: / posted by: Qalter at 29 December 2003 11:06:31:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
have you playd with ponder ON?
Walter
 

Re: CPU usage

Postby Günther Simon » 29 Dec 2003, 11:15

Geschrieben von: / Posted by: Günther Simon at 29 December 2003 11:15:37:
Als Antwort auf: / In reply to: Re: CPU usage geschrieben von: / posted by: Qalter at 29 December 2003 11:06:31:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
have you playd with ponder ON?

Is this a new so called 'Hyperthreading'machine?
I remember that Olivier has(d?) the same problem
with his new machine.
Regards,
Günther
Günther Simon
 

Re: CPU usage

Postby Olivier Deville » 29 Dec 2003, 11:16

Geschrieben von: / Posted by: Olivier Deville at 29 December 2003 11:16:36:
Als Antwort auf: / In reply to: CPU usage geschrieben von: / posted by: Janis at 29 December 2003 10:14:23:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?

Hi Janis ! I am interested if you get an answer, because I have the same problem on my new P4-3Ghz (even with ponder off).

Olivier


ChessWar
Olivier Deville
 

too late ;-) (n/t)

Postby Günther Simon » 29 Dec 2003, 11:18

Geschrieben von: / Posted by: Günther Simon at 29 December 2003 11:18:11:
Als Antwort auf: / In reply to: Re: CPU usage geschrieben von: / posted by: Olivier Deville at 29 December 2003 11:16:36:

...
Hi Janis ! I am interested if you get an answer, because I have the same problem on my new P4-3Ghz (even with ponder off).

Olivier
Günther Simon
 

Re: Ups. my name is Walter and NOT Qalter :) thank god ! /

Postby U.Tuerke » 29 Dec 2003, 11:29

Geschrieben von: / Posted by: U.Tuerke at 29 December 2003 11:29:07:
Als Antwort auf: / In reply to: Ups. my name is Walter and NOT Qalter :) geschrieben von: / posted by: Walter at 29 December 2003 11:13:56:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
have you playd with ponder ON?
U.Tuerke
 

Re: CPU usage (for Olivier too)

Postby Günther Simon » 29 Dec 2003, 11:29

Geschrieben von: / Posted by: Günther Simon at 29 December 2003 11:29:23:
Als Antwort auf: / In reply to: Re: CPU usage geschrieben von: / posted by: Günther Simon at 29 December 2003 11:15:37:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
have you playd with ponder ON?

Is this a new so called 'Hyperthreading'machine?
I remember that Olivier has(d?) the same problem
with his new machine.
Regards,
Günther
I wonder why you guys dont use Google ;)
You will find any solution to comp problems somewhere in the net.
I did a query and got the results below.
From my understanding (I dont have a hyperthreading machine)
it seems you should just set hyperthreading _off_.
Reading some of those query results it seems also like
hyperhthreading is much more like a hype too ;)
The good thing might be that it should be possible to
play with ponder on, if you are able to give both engines
one of the 'two' threads. (one is virtually of course)
http://www.google.de/search?q=hyperthre ... l=de&meta=
Best regards,
Günther
Günther Simon
 

Re: CPU usage

Postby Janis » 29 Dec 2003, 11:37

Geschrieben von: / Posted by: Janis at 29 December 2003 11:37:40:
Als Antwort auf: / In reply to: Re: CPU usage geschrieben von: / posted by: Qalter at 29 December 2003 11:06:31:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
have you playd with ponder ON?
Yes, I have tried both ponder on and off but cpu usage was 50% in both cases.
Janis
 

Re: CPU usage (for Olivier too)

Postby JankS » 29 Dec 2003, 13:16

Geschrieben von: / Posted by: JankS at 29 December 2003 13:16:32:
Als Antwort auf: / In reply to: Re: CPU usage (for Olivier too) geschrieben von: / posted by: Günther Simon at 29 December 2003 11:29:23:

Thanks (sometimes really obvious things are not coming into the mind), now i studied a bit and understood i bought cat in a bag ...
But it seems that now HT definitely should be turned off when running single chess engine tournaments - this could speed up cpu almost 2 times. However if engine authors will start to optimize for HT technology allowing engine to calculate on one thread and ponder on another or winboard gui will allow one engine to use one thread (or logical cpu) and another engine - second thread, things can start to change dramatically :)!
JankS
 

Re: CPU usage (for Olivier too)

Postby Janis » 29 Dec 2003, 13:17

Geschrieben von: / Posted by: Janis at 29 December 2003 13:17:55:
Als Antwort auf: / In reply to: Re: CPU usage (for Olivier too) geschrieben von: / posted by: JankS at 29 December 2003 13:16:32:

Sorry, I posted last message with wrong name!
Janis
 

Hyperthreading

Postby Matt McKnight » 29 Dec 2003, 16:02

Geschrieben von: / Posted by: Matt McKnight at 29 December 2003 16:02:30:
Als Antwort auf: / In reply to: Re: CPU usage (for Olivier too) geschrieben von: / posted by: JankS at 29 December 2003 13:16:32:
Thanks (sometimes really obvious things are not coming into the mind), now i studied a bit and understood i bought cat in a bag ...
But it seems that now HT definitely should be turned off when running single chess engine tournaments - this could speed up cpu almost 2 times. However if engine authors will start to optimize for HT technology allowing engine to calculate on one thread and ponder on another or winboard gui will allow one engine to use one thread (or logical cpu) and another engine - second thread, things can start to change dramatically :)!
Hyperthreading is just Intel's latest hype-word for the way they pipeline the architecture. This has nothing to do with actual "threads." I do not believe that engine authors can do much with their code to take any kind of advantage from this. The only thing would be to use the most modern compilers, with P4 optimizations and such.
If you run a two-engine match in winboard, the two engines will run on separate threads already. Threading is an OS term, and something controlled completely by the OS, has nothing to do with hardware, or "logical cpus"
However, I have to say I'm not sure why having HT enabled in the BIOS causes this 50% cpu problem. I would be very interested to know if this is just a fluke in the windows task manager reporting. After disabling the HT and getting 100% from an engine, does the NPS change by something on the order of 2x? Or is the 50% just an inaccurate representation of the exact same speed? I don't know everything about this subject except for some fundamentals:
1) threading is an OS-level device, not hardware.
2) emulating a 'logical' cpu would be worthless and a step backwards. Except that it would do exactly what you are describing by giving both processes only 50% of the cpu. So effectively you are using a two processor machine, but at half the speed.
3) there _should_ (huge emphasis) never be a need to enable/disable the pipelining scheme.

This isn't meant to say that authors can't come up with a good way to use threads in their engine. One way to take advantage of so called 'hyper-threading' (or any pipelining) might be to do different 'parts' in threads. Example: eval thread, move-gen thread, etc... Because you glean the most speedup from pipelining if you are mixing separate threads through the pipeline (hence the term Hyper-threading). This causes less data/pipeline hazards which in turn gives you optimal speed. I haven't spent much time thinking about how to do things in turn wisely, like generating moves for the next ply while evaluating some positions or forward looking the hash, etc. So multiple threads might not be practical for an application like chess, but I definately agree that overall design and implementation of the different 'parts' of the engine can perhaps be improved upon using threading.
Well anyway, most of this is just conjecture on my part, but the reason for it is my incomplete understanding of Intel's Hyper-threading. I know enough about HT to realize that I know jack about all of it's different 'features.' It just really doesn't make sense, and I hate the feeling that it's name is the only root of confusion. I'm sure everyone will remember those great 'Turbo' buttons on the front of old 386/486 machines. I'd say that HT is nothing more than one of these buttons that make people think their machine is going to be faster.
Matt
Matt McKnight
 

Re: CPU usage

Postby Norm Pollock » 29 Dec 2003, 16:35

Geschrieben von: / Posted by: Norm Pollock at 29 December 2003 16:35:45:
Als Antwort auf: / In reply to: CPU usage geschrieben von: / posted by: Janis at 29 December 2003 10:14:23:
Always running engine tournaments on my old PC P3-800 I have noticed 100% cpu usage but now running engine matches on my new PC P4-2.6 I noticed in window task manager that cpu load stays at 50% and very rarely moves some percent above 50%. Both versions had the same Windows 2000 but setings probably could be different. Could you advise how to force engines to use all 100% of cpu power?
I hope you find a way to solve this problem.
But what would be so bad about having 2 games going concurrently (not simultaneously) each using 50% of the cpu?
Norm Pollock
 


Return to Archive (Old Parsimony Forum)

Who is online

Users browsing this forum: Google [Bot] and 22 guests