mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-01-07, 05:37   #1
Freightyard
 
Nov 2008
San Luis Obispo CA

12810 Posts
Default Migration from Core 2 Quad to i7 965

Copied my Prime95 directory over to my new machine, but Prime95 is only running at 50% CPU load (not using 8 threads for hyperthreading).

What is the setting to change this?
Freightyard is offline   Reply With Quote
Old 2009-01-07, 07:03   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

23×1,171 Posts
Default

Are you using v25.8? It is better than 25.6 for this.
Uncwilly is online now   Reply With Quote
Old 2009-01-07, 08:07   #3
Freightyard
 
Nov 2008
San Luis Obispo CA

12810 Posts
Default

Yes, 25.8. It reports "setting affinity to run worker on logical CPUs 0,1".. "2,3"... "4,5"... "6,7"

But notice the CPU usage for each pair below -- they are mirror images of each other. Where "0" is busy, "1" is idle, and vise-versa. The total is only 50%.

Click image for larger version

Name:	CPUload.jpg
Views:	159
Size:	103.7 KB
ID:	3149

Last fiddled with by Freightyard on 2009-01-07 at 08:08
Freightyard is offline   Reply With Quote
Old 2009-01-07, 08:30   #4
Freightyard
 
Nov 2008
San Luis Obispo CA

12810 Posts
Default

Ah--- but if I run TWO copies of v25.8 I attain 100%!

Click image for larger version

Name:	CPUload2.jpg
Views:	96
Size:	96.8 KB
ID:	3150
Freightyard is offline   Reply With Quote
Old 2009-01-07, 15:20   #5
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·3,677 Posts
Default

Quote:
Originally Posted by Freightyard View Post
Ah--- but if I run TWO copies of v25.8 I attain 100%!
You never need to run two copies of v25.8. Use Test/Worker Threads dialog box. Either increase the number of workers or (probably better for you because of hyperthreading) set each worker to use 2 CPUs for each LL test.
Prime95 is offline   Reply With Quote
Old 2009-01-07, 21:47   #6
Freightyard
 
Nov 2008
San Luis Obispo CA

27 Posts
Default

Well 2 CPUs fixed it. Funny, I tried both of those previously and Prime95 ignored it--8 threads created four new empty worker windows that ignored extra lines in worktodo; and the CPUs box was shaded-out or changed back to 1 last time I tried that.

No matter. It's at 100% now. Thank you.
Freightyard is offline   Reply With Quote
Old 2009-01-08, 04:22   #7
Freightyard
 
Nov 2008
San Luis Obispo CA

8016 Posts
Default

Or, maybe not...

Is TF work single-threaded only? I decided to try a day's worth of TF for fun. I absolutely could not get CPU load over 50% with only 4 workers (1, 2, or even 4 CPUs). With 8 workers... 100%. (Core i7 965)

So, does # of threads depend on the type of work? I realize the "normal" situation wouldn't bounce between TF and LL, but ideally one wouldn't have to tweak to keep CPU load at 100%--the program would just select what is best. I suppose this could get complicated if one had 2 workers (x1 thread) doing TF and 3 workers (x2 threads) doing LL.

No complaints... Just learning by doing here...
Freightyard is offline   Reply With Quote
Old 2009-01-08, 09:38   #8
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

13258 Posts
Default

Quote:
Originally Posted by Freightyard View Post
Or, maybe not...

Is TF work single-threaded only? I decided to try a day's worth of TF for fun. I absolutely could not get CPU load over 50% with only 4 workers (1, 2, or even 4 CPUs). With 8 workers... 100%. (Core i7 965)
No complaints... Just learning by doing here...
I think it depends how Windows interprets the hyperthreaded cpus. They are no real cpus.

But let it work with 8 threads - that will be fine.
joblack is offline   Reply With Quote
Old 2009-01-08, 11:31   #9
lycorn
 
lycorn's Avatar
 
Sep 2002
Oeiras, Portugal

23·181 Posts
Default

Quote:
Originally Posted by Freightyard View Post
Is TF work single-threaded only?
Yes.
lycorn is offline   Reply With Quote
Old 2009-01-08, 12:47   #10
Freightyard
 
Nov 2008
San Luis Obispo CA

2008 Posts
Default

Quote:
Originally Posted by lycorn View Post
Yes.
So, then a Core i7 has to use 8 workers during TF to keep busy, but one must switch back to 4 workers for LL--assuming it is more efficient to assign one hyperthreading core (2 threads) per exponent than to test 8 exponents at a time.

Fair enough.

Quote:
Originally Posted by joblack View Post
I think it depends how Windows interprets the hyperthreaded cpus. They are no real cpus.
Windows interprets a quad-core with H.T. as 8 CPUs. But if you try do LL testing on 8 exponents (8 workers) simultaneously--anyone correct me if I'm wrong here--each core is then working on 2 exponents (which causes great competition for cache/memory) and the iteration time increases substantially. It makes more sense to have each hyperthreaded core (2 "CPUs") work on one exponent -- thus 4 workers having 2 threads each. LL testing can assign multiple threads to work on the same exponent concurrently.

However, Trial Factoring cannot utilize multiple threads for each exponent. So with 4 workers (4 exponents) there are only 4 threads operating and the hyperthreaded core is only 50% utilized. EVEN IF YOUR SETTINGS SPECIFY 2 CPUs. Hence, you apparently need to run 8 workers for TF work on a Hyperthreading quad-core.

Last fiddled with by Freightyard on 2009-01-08 at 13:05
Freightyard is offline   Reply With Quote
Old 2009-01-08, 20:13   #11
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

22×7×59 Posts
Default

Quote:
Originally Posted by Freightyard View Post
However, Trial Factoring cannot utilize multiple threads for each exponent. So with 4 workers (4 exponents) there are only 4 threads operating and the hyperthreaded core is only 50% utilized. EVEN IF YOUR SETTINGS SPECIFY 2 CPUs. Hence, you apparently need to run 8 workers for TF work on a Hyperthreading quad-core.
You must take the 50 % CPU utilisation with huge boulder of salt : Windows sees 8 CPU's but you know there are only 4, Hyperthreading lets you try to use the wasted cycles of each CPU, this results, on older architectures, in a 0 to 5 % increase of throughput. This means that the 50 % CPU utilisation that you see is really 100% of the real core and 0% of the 5% that could still be squeezed in => 95%. (I am not shure about the 5% on i7 architecture, but it is certainely not 100%.)

Jacob
S485122 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Core to Quad Core Upgrade Rodrigo Hardware 6 2010-11-29 18:48
exclude single core from quad core cpu for gimps jippie Information & Answers 7 2009-12-14 22:04
Quad Core and P95 sgrupp Hardware 54 2008-01-25 22:01
Quad Core R.D. Silverman Hardware 76 2007-11-19 21:57
Optimising work for Intel Core 2 Duo or Quad Core S485122 Software 0 2007-05-13 09:15

All times are UTC. The time now is 05:50.

Thu Mar 4 05:50:50 UTC 2021 up 91 days, 2:02, 1 user, load averages: 2.61, 2.39, 2.34

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.