mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Information & Answers (https://www.mersenneforum.org/forumdisplay.php?f=38)
-   -   How to have all 4 cores working on a single number? (https://www.mersenneforum.org/showthread.php?t=19460)

tech96 2014-07-03 02:49

How to have all 4 cores working on a single number?
 
I recently installed Prime95 on my pc,and found out that it always assign four different numbers for the four cores.Is it possible to work on a single number using all four cores, if so how?

LaurV 2014-07-03 04:03

Go to test/workers, chose "1" single worker (the topmost box) and chose "x" for the number of CPUs (cores) (bottom most box) (where x is your number of physical cores, not the hyperthreaded cores, for example x=4 if you have 4 physical cores, like a i7-2600, no matter that you can use 8 HT cores, the HT does not bring any benefit for LL testing, except generating more heat and making your computer less responsive in some cases).

Restart P95 from Test/exit, then run again.

One more thing to do (optional) [U]before restarting,[/U] would be to edit the worktodo file and move all the work into "worker 1" section, then delete the "worker x" lines for the other (now empty) sections. If you don't do this, you will get a warning telling you that "worktodo" contains more workers than expected, and there will be no work done for those sections. Caution: do not delete work! Just delete the [worker x] lines. This step is optional. If you are unclear, then do nothing. No harm done if you forget it, just some work which may be recycled in the future.

TheMawn 2014-07-03 04:33

Just be aware that using multiple cores for a single number is slower in the end. You're most efficient when using one core per worker.

LaurV 2014-07-03 05:01

True. Using multiple cores for the same assignment (multithread) is only justified when you want to finish some special assignment very fast (like impatience, or double-checking a mersenne which was found prime by the first LL test :razz:) or if you have problems with the heat, memory bandwidth, etc. (like your computer can not sustain the memory transfer required by 4 workers, new cpus/mobos/chipsets should [B]*not*[/B] have this issue!).

To give an example, if testing an exponent in some particular range, using a single core, takes 40 days, then testing it in 4 cores will take 11 days (and not 10 days!). In long run you will need 44 days to test 4 exponents one-by-one. It may temper your patience having an output every 11 days, but at the end is a gambler fallacy, you lost 4 days. You can achieve the "one output every 10 days" by using 4 workers, each one in one core, and starting with different sizes of exponents, such as when first worker is starting, the second one is 25%, the third is 50%, the last is 75%. You also can use "multithread" to achieve this "shifting", or start with exponents of different sizes, and after a while you achieve your "one LL output every 10 days" and calm your pride :smile:

Disclaimer: the numbers are only examples. You mileage may vary with the system you have and range you are testing.

Uncwilly 2014-07-03 05:42

[QUOTE=LaurV;377258]You can achieve the "one output every 10 days" by using 4 workers, each one in one core, [/QUOTE]Or run 3 LL tests on 3 cores and have one core do P-1 testing. You will get a lot more outputs per day with P-1.

tech96 2014-07-04 09:53

Thanks,it worked. And yeah its more like 3 times faster than 4 times on my pc.:smile:


All times are UTC. The time now is 08:15.

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