i7 Hyper-threading

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

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
mwyoung
Posts: 2727
Joined: Wed May 12, 2010 8:00 pm

i7 Hyper-threading

Post by mwyoung » Fri Dec 24, 2010 5:19 am

After loading my new i7 laptop with a few chess engines. I am finding Rybka 4, Fritz 12, and Houdini are running faster using 8 logical cores. This is true with NPS and timed test positions. As this is my first i7 cpu, does Hyper-threading with the i7 help instead of hurt chess engines performance. This was not true in the past. In my testing I am clearly faster with Hyper-threading turned on running my chess engines.

Example Fritz 12

Fritz benchmark 4 cores. 5380 Nps 11.21

Fritz benchmark with HT 8 logical cores. 6995 Nps 14.57

LaurenceChen
Posts: 101
Joined: Fri Jun 09, 2006 2:58 am

Re: i7 Hyper-threading

Post by LaurenceChen » Fri Dec 24, 2010 6:02 am

mwyoung wrote:After loading my new i7 laptop with a few chess engines. I am finding Rybka 4, Fritz 12, and Houdini are running faster using 8 logical cores. This is true with NPS and timed test positions. As this is my first i7 cpu, does Hyper-threading with the i7 help instead of hurt chess engines performance. This was not true in the past. In my testing I am clearly faster with Hyper-threading turned on running my chess engines.

Example Fritz 12

Fritz benchmark 4 cores. 5380 Nps 11.21

Fritz benchmark with HT 8 logical cores. 6995 Nps 14.57
What happens when you run engine vs engine with hyperthreading on?
Which engine gets the true CPU and which one gets the logical one?
Assuming that you are not going to run engine vs engine in your laptop, then hyperthreading should not hurt the performance of the chess engine.

mwyoung
Posts: 2727
Joined: Wed May 12, 2010 8:00 pm

Re: i7 Hyper-threading

Post by mwyoung » Fri Dec 24, 2010 6:36 am

LaurenceChen wrote:
mwyoung wrote:After loading my new i7 laptop with a few chess engines. I am finding Rybka 4, Fritz 12, and Houdini are running faster using 8 logical cores. This is true with NPS and timed test positions. As this is my first i7 cpu, does Hyper-threading with the i7 help instead of hurt chess engines performance. This was not true in the past. In my testing I am clearly faster with Hyper-threading turned on running my chess engines.

Example Fritz 12

Fritz benchmark 4 cores. 5380 Nps 11.21

Fritz benchmark with HT 8 logical cores. 6995 Nps 14.57
What happens when you run engine vs engine with hyperthreading on?
Which engine gets the true CPU and which one gets the logical one?
Assuming that you are not going to run engine vs engine in your laptop, then hyperthreading should not hurt the performance of the chess engine.

I am running Ponder ON with HT ON. Rybka 4 with 4CPU. Houdini with 4 CPU. I am running each engine with 2GB of hash.

The engines are working flawlessly with HT On with the i7. This is great, I am getting better NPS with ponder on using 4 cores for each engine. Then I can get on my desktop PC Q6600 with ponder off and 4 cores. Looks like Intel has got HT working much better with their i7 Chip.

PauloSoare
Posts: 1335
Joined: Thu Mar 09, 2006 4:30 am
Location: Cabo Frio, Brasil

Re: i7 Hyper-threading

Post by PauloSoare » Fri Dec 24, 2010 6:51 am

I read in Rybka Forum that Rybka has no
advantage with Hyper-threading.

stevenaaus
Posts: 604
Joined: Wed Oct 13, 2010 7:44 am
Location: Australia
Contact:

Re: i7 Hyper-threading

Post by stevenaaus » Fri Dec 24, 2010 6:52 am

After loading my new i7 laptop with a few chess engines. I am finding Rybka 4, Fritz 12, and Houdini are running faster using 8 logical cores.
It's interesting you've found such a large apparent speed-up by enabling HT. In the P4, hyperthreading was quite a non-feature (ie, it made very little difference). But i don't know much about the latest i7 architecture, so maybe it's more than another Intel gimmick.

Have you tried running super pi. It's a fairly decent CPU benchmark.

mwyoung
Posts: 2727
Joined: Wed May 12, 2010 8:00 pm

Re: i7 Hyper-threading

Post by mwyoung » Fri Dec 24, 2010 7:08 am

stevenaaus wrote:
After loading my new i7 laptop with a few chess engines. I am finding Rybka 4, Fritz 12, and Houdini are running faster using 8 logical cores.
It's interesting you've found such a large apparent speed-up by enabling HT. In the P4, hyperthreading was quite a non-feature (ie, it made very little difference). But i don't know much about the latest i7 architecture, so maybe it's more than another Intel gimmick.

Have you tried running super pi. It's a fairly decent CPU benchmark.
Must be more then a gimmick, I have had HT CPU's in the past. None worked like this i7 Mobile chip HT.

I am running Rybka-4 4 cores, and Houdini 4 cores with ponder on. Rybka is hitting 230 Knps, Houdini is hitting 3700Knps. The i7 has clocked itself to 2Ghz (132x15.0).

stevenaaus
Posts: 604
Joined: Wed Oct 13, 2010 7:44 am
Location: Australia
Contact:

Re: i7 Hyper-threading

Post by stevenaaus » Fri Dec 24, 2010 8:15 am

Yeah, since after the P4, Intel's CPUs have been pretty good.

And thinking about it, Super Pi probably isn't a good test for multithreading anyway.

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

Re: i7 Hyper-threading

Post by hgm » Fri Dec 24, 2010 8:21 am

LaurenceChen wrote:What happens when you run engine vs engine with hyperthreading on?
Which engine gets the true CPU and which one gets the logical one?
There is no 'true CPU' with HT on. Just two logical ones (per core).

User avatar
Houdini
Posts: 1471
Joined: Mon Mar 15, 2010 11:00 pm
Contact:

Re: i7 Hyper-threading

Post by Houdini » Fri Dec 24, 2010 8:48 am

mwyoung wrote:After loading my new i7 laptop with a few chess engines. I am finding Rybka 4, Fritz 12, and Houdini are running faster using 8 logical cores. This is true with NPS and timed test positions. As this is my first i7 cpu, does Hyper-threading with the i7 help instead of hurt chess engines performance. This was not true in the past. In my testing I am clearly faster with Hyper-threading turned on running my chess engines.

Example Fritz 12

Fritz benchmark 4 cores. 5380 Nps 11.21

Fritz benchmark with HT 8 logical cores. 6995 Nps 14.57
Mark,

I've never experienced any useful improvement from hyper-threading for Houdini. Even if the nps is slightly higher, the overhead of the additional threads could very well reduce the actual playing strength.

Could you try the "autotune" feature of Houdini? This feature was intended for picking the best Split_Depth parameter, but it also functions as an accurate benchmark for multi-thread node speeds.

Double-click on the Houdini executable to open it in a console window.
Then enter the following commands to "autotune" for 4 threads.

Code: Select all

setoption name threads value 4
autotune
Houdini will run for about 10 minutes analyzing a number of positions for different values of split_depth. Make sure you're doing nothing else on your computer, just leave it running for 10 minutes. At the end you'll get a summary of the node speeds.

Then repeat the procedure for 8 threads.

Code: Select all

setoption name threads value 8
autotune
What results do you get?

yanquis1972
Posts: 1766
Joined: Tue Jun 02, 2009 10:14 pm

Re: i7 Hyper-threading

Post by yanquis1972 » Fri Dec 24, 2010 11:25 am

fwiw, with 8 cores my best result came w/ a split depth of 12 (by about ~3-4% over the default of 10). my guess is the best result for four cores is 10 but i'll let someone else confirm this.

Post Reply