![]() |
![]() |
#1 |
Sep 2002
Oeiras, Portugal
145210 Posts |
![]()
Quick question:
On a Core 2 Duo, is it a good option to run one P-1 worker window with two threads? I mean, is the P-1 software multithreaded the same way LL is? Although for LL tests it is generally better to run separate tests on separate cores, running two simultaneous windows of P-1 would lead to a substantial reduction in the amount of memory available for each test, and probably to some competition for memory access, which makes me unsure about the best option in this case. Thx in advance. |
![]() |
![]() |
![]() |
#2 |
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17·251 Posts |
![]()
Stage 1: Yes, can multithread
Stage 1 GCD: No, can't multithread Stage 2: Yes, can multithread Stage 2 GCD: Haven't checked, but almost certainly: No, can't multithread P-1 uses the same FFT code that the LL does, so it's multithreaded too. While we're on the subject, TF (and, apparently, the GCD code) isn't based on the FFT, and it can't be multithreaded. Prime95 actually tells you the FFT length it's using for stage 1 and 2, which you can compare to a benchmark of your machine to tell you how much faster you can do one P-1 over 2 threads compared to 2 separate P-1s over 1 thread each. That would help with figuring if it'd be better to do that instead. |
![]() |
![]() |
![]() |
#3 |
Sep 2002
Oeiras, Portugal
22·3·112 Posts |
![]()
Thanks for your reply, Mini-Geek.
In fact, if I just compare the FFT timings provided by the benchmarks, it seems that running two instances of P-1, each on a different core, would be better than one multithreaded test, which is the "expectable" result. Now P-1 stage 2 uses a lot of memory. As the functionality that will allow the allocation of a specific amount of memory to a specific worker window is not yet available, according to http://="http://www.mersenneforum.or...&postcount=44", I suspect that each worker will try to reserve as much memory as declared available in Prime95´s GUI, which will lead to process stalling, most probably. With that functionality enabled, this problem will be mitigated, but there will be much less memory available for each test, compared to running a single multithreaded test. That´s why I ask this question, before start wasting processing time to reach conclusions that are probably already known to some forum participants. |
![]() |
![]() |
![]() |
#4 | |||
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
426710 Posts |
![]() Quote:
Quote:
Quote:
![]() Last fiddled with by Mini-Geek on 2009-09-11 at 18:26 |
|||
![]() |
![]() |
![]() |
#5 |
Sep 2002
Oeiras, Portugal
22·3·112 Posts |
![]()
Thanks again. No
![]() ![]() Actually, it is in line with my previous feeling that running just one P-1 worker with 2 threads would be a good option, because more memory is then available for the test. And it was interesting to learn that 2 workers share the memory in a fair way, even if we don´t enforce it on the client. |
![]() |
![]() |
![]() |
#6 |
P90 years forever!
Aug 2002
Yeehaw, FL
7,411 Posts |
![]()
P-1 and ECM are not good candidates for multithreading. Unlike LL tests, P-1 and ECM do additions and subtractions of these big numbers. These operations are not multithreaded.
|
![]() |
![]() |
![]() |
#7 |
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
![]()
Then why is it that when I set the number of threads to 2 the CPU usage goes from 50 to 99, Prime95 says it's using two threads, and the times drop just like the benchmarks suggest they should? I mean, hey, you're in a position to know and be right about what you're saying, but my experiments show just the opposite, so...I don't know what's up.
|
![]() |
![]() |
![]() |
#8 | |
Jul 2006
Calgary
52·17 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use more threads? | physicist | PrimeNet | 2 | 2018-01-10 17:07 |
How to use all threads (i7-920) | petsoukos | Software | 2 | 2013-06-04 20:33 |
Workers, Threads, Helper Threads, Cores, Affinity. | lorgix | Information & Answers | 12 | 2011-01-13 22:31 |
How can I close my own threads? | petrw1 | Information & Answers | 1 | 2007-09-25 21:02 |
No threads or posts from me! | mfgoode | Forum Feedback | 10 | 2007-03-22 16:32 |