mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware

Reply
 
Thread Tools
Old 2008-10-17, 02:22   #12
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by geoff View Post
Hyperthreading can sometimes work well even when both processes are executing the same type of instructions. For example if two 32-bit processes are executing instructions that operate on the lower 32 bits of an %xmm register, then I think hyperthreading can combine both instructions and execute them together as one 2x32-bit vector operation.
So, two similar processes of a sieve/TF program running simulatenously, or two LL/LLR/PRP/etc. processes running on similarly-sized numbers, would gain a greater advantage than if you were running, say, one sieve/TF process and one LL/LLR/PRP process?
mdettweiler is offline   Reply With Quote
Old 2008-10-17, 02:50   #13
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

48516 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
So, two similar processes of a sieve/TF program running simulatenously, or two LL/LLR/PRP/etc. processes running on similarly-sized numbers, would gain a greater advantage than if you were running, say, one sieve/TF process and one LL/LLR/PRP process?
Not necessarily, it depends on how the programs are written, but just because two programs are making heavy use of the same type of instructions doesn't always mean that nothing will be gained by hyperthreading. Some programs work best when running two copies of the same program, others work better when run together with a completely different program. Yet others are not suitable for hyperthreading at all, usually because they are so tightly coded that there are no spare resources to share with another process.

I don't understand enough about hyperthreading to predict how two programs will work together, I just recommend experimenting for yourself.
geoff is offline   Reply With Quote
Old 2008-10-17, 02:55   #14
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

624910 Posts
Default

Quote:
Originally Posted by geoff View Post
Not necessarily, it depends on how the programs are written, but just because two programs are making heavy use of the same type of instructions doesn't always mean that nothing will be gained by hyperthreading. Some programs work best when running two copies of the same program, others work better when run together with a completely different program. Yet others are not suitable for hyperthreading at all, usually because they are so tightly coded that there are no spare resources to share with another process.

I don't understand enough about hyperthreading to predict how two programs will work together, I just recommend experimenting for yourself.
Oh, I see--apparently I made a little blooper when reading your earlier post and thought you said that hyperthreading generally performs best when run with two similar applications. Now I get it.

Unfortunately I don't have a hyperthreaded CPU any more (though in a way that can also be seen as fortunately so, since my hyperthreaded P4 was replaced with a much faster Core 2 Duo when it got fried by mysterious unknown forces), so I can't test any of this out for myself--I'm just speaking entirely based on experience from my old CPU, which admittedly isn't too much (since for most of that CPU's tenure I was actually somewhat mistaken about how hyperthreading actually worked).
mdettweiler is offline   Reply With Quote
Old 2008-10-27, 03:17   #15
starrynte
 
starrynte's Avatar
 
Oct 2008
California

22·59 Posts
Default

question: is it more efficient to run one copy of prime95 on both cores of a dual core machine for 2 hours a day, or one copy on each core, 1 hour a day each. (i ask this because factoring apparently doesn't produce a "helper thread", unlike primality test. speaking of which, how does the helper thread work while running primality tests?)
starrynte is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperthreading vs Prime95 igorsol Software 2 2007-04-13 12:09
Should hyperthreading be used? Electrolyte Hardware 5 2006-11-08 01:29
Prime95, hyperthreading, multiple processors, Win2003, etc... pcr Software 8 2005-12-22 14:43
Hyperthreading RickC Hardware 14 2003-12-04 14:23
Hyperthreading Prodigious Software 4 2002-12-17 12:31

All times are UTC. The time now is 14:53.


Fri Aug 6 14:53:44 UTC 2021 up 14 days, 9:22, 1 user, load averages: 3.33, 3.02, 2.90

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.