![]() |
|
|
#606 | |
|
"Jerry"
Nov 2011
Vancouver, WA
21438 Posts |
Quote:
Code:
start /affinity 0x# "mfakto2" mfakto-win-64 -d 0 Code:
CPU3 CPU2 CPU1 CPU0 Bin Hex ================================ OFF OFF OFF ON = 0001 = 1 OFF OFF ON OFF = 0010 = 2 OFF OFF ON ON = 0011 = 3 OFF ON OFF OFF = 0100 = 4 OFF ON OFF ON = 0101 = 5 OFF ON ON OFF = 0110 = 6 OFF ON ON ON = 0111 = 7 ON OFF OFF OFF = 1000 = 8 ON OFF OFF ON = 1001 = 9 ON OFF ON OFF = 1010 = A ON OFF ON ON = 1011 = B ON ON OFF OFF = 1100 = C ON ON OFF ON = 1101 = D ON ON ON OFF = 1110 = E ON ON ON ON = 1111 = F |
|
|
|
|
|
|
#607 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
When you're running something else that's CPU intensive besides Prime95, it's generally best to assign cores manually. You can set the affinity of Prime95 through its GUI, as you know, and the easiest way to set the mfakto affinity is through the Task Manager. Right click on the process, and affinity or something like it should appear as one of the options on the menu. You would have to remember to do this every time you start mfakto. (If you restart it a lot or use multiple instances, it can be easier to use a batch file -- ask others, e.g. kladner, for assistance there.)
On Windows, threads 1 and 2 form one physical core, 3 and 4 do, etc. (On Linux, it's most likely that 1 and 5 are a pair, 2 and 6, etc) Edit: ninja'd. flash explained how to set affinities from the command line/batch file. Last fiddled with by Dubslow on 2012-12-26 at 05:57 |
|
|
|
|
|
#608 | |
|
Jun 2010
Pennsylvania
2×467 Posts |
Before trying the affinity settings for mfakto, I'm looking to set the best settings for Prime95.
Unfortunately, it looks like Prime95 isn't discovering the threads and cores correctly. When I set the three workers to operate off what Prime95 calls "CPUs" 1, 2, and 3, this is what I got after restarting (with ThreadsPerTest set to 2): Quote:
I had tried doing this with ThreadsPerTest set to 1, but the LL per-iteration times were worse. FWIW, this is Prime95 version 27.7, build 2. Next I can try setting the Prime95 affinity in Task Manager as Dubslow suggested, but if Prime95 isn't finding the correct CPUs in the first place, I'm not sure what good it'll do. If I set its affinity to "CPUs" 0-5, I have no confidence that it will find and actually use 4 and 5, since they're not being used now. This all might sound OT because we're in the mfakto thread, but again the idea is that I'm trying to get mfakto and Prime95 to each keep to their assigned cores... Rodrigo Last fiddled with by Rodrigo on 2012-12-26 at 18:41 Reason: additional info |
|
|
|
|
|
|
#609 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
You shouldn't assign one worker to core 1, and the next to core 2, since you yourself then are assigning two workers to one core (1&2 are one core, 3&4, are one core, etc.). Instead, assign worker 1 to CPU 1, assign worker 2 to CPU 3, assign worker 3 to CPU 5, and worker 4 to CPU 7. That way each worker is on a separate physical CPU. (When you add mfakto then, your timings will drop because mfakto will have to be on one of those cores.) How many instances of mfakto do you run?
|
|
|
|
|
|
#610 |
|
Jun 2010
Pennsylvania
2×467 Posts |
Well, that's exactly the problem: in Prime95 there seems to be no way to assign worker 3 to CPU 5, since the choices (in Test --> Worker Windows) end at CPU 4.
Right now I'm not running any instances of mfakto, while this issue gets sorted out. Ideally, I'd like to run Prime95 on three cores (doesn't matter which three), and then use the last core to support mfakto. BTW, since the previous post I set all three current workers to Smart Assignment, and the per-iteration times dropped precipitously to 0.019-0.022 seconds in all three cases. Now Task Manager shows that CPUs 0, 2, and 4 (that is to say, the first, third, and fifth threads) are taking on the bulk of the work, although the remaining five do have substantial loads as well (three of them as helper threads). But I have yet to find a way to set this setting manually, so that when mfakto gets thrown into the mix it doesn't interfere with Prime95. Rodrigo |
|
|
|
|
|
#611 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
|
|
|
|
|
|
#612 |
|
Apr 2010
Over the rainbow
A2E16 Posts |
if i remember there is an, option, with like coretouse or scrambleCPU where you specify wwich cpu to use, right?
|
|
|
|
|
|
#613 | |
|
Jun 2010
Pennsylvania
2·467 Posts |
An unrelated question:
This morning I manually submitted a bundle of 12 TF results completed by mfakto. One of them included a factor found, and that one doesn't seem to be getting through to the PrimeNet server. When I submitted the results in a bunch, the server seemed to hang and eventually I got dumped to a mostly blank PrimeNet page that only had the sign-in blanks on the left, and nothing at all in the right panel. The same thing happened when I cut-and-pasted the two-line result: Quote:
What to do? Rodrigo |
|
|
|
|
|
|
#614 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
Quote:
|
|
|
|
|
|
|
#615 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
100110001001112 Posts |
This is a known bug with the Primenet server -- memory starvation affecting the tool used to verify the factor.
Wait for George or Scott to reboot the server, or keep trying. Preferably not at the top of the hour -- wait until at least 15 minutes past. |
|
|
|
|
|
#616 | ||
|
Jun 2010
Pennsylvania
2·467 Posts |
Quote:
Quote:
Rodrigo |
||
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gpuOwL: an OpenCL program for Mersenne primality testing | preda | GpuOwl | 2718 | 2021-07-06 18:30 |
| mfaktc: a CUDA program for Mersenne prefactoring | TheJudger | GPU Computing | 3497 | 2021-06-05 12:27 |
| LL with OpenCL | msft | GPU Computing | 433 | 2019-06-23 21:11 |
| OpenCL for FPGAs | TObject | GPU Computing | 2 | 2013-10-12 21:09 |
| Program to TF Mersenne numbers with more than 1 sextillion digits? | Stargate38 | Factoring | 24 | 2011-11-03 00:34 |