PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Proth Prime Search : PPS-MEGA: Smaller FFT longer crunch time ?

Author Message
Profile Eudy SilvaProject donor
Avatar
Send message
Joined: 26 Aug 17
Posts: 2163
ID: 918937
Credit: 639,565,443
RAC: 151,902
Discovered 4 mega primesFound 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,576,325)Cullen LLR Amethyst: Earned 1,000,000 credits (1,349,947)ESP LLR Amethyst: Earned 1,000,000 credits (1,151,976)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,199,207)PPS LLR Sapphire: Earned 20,000,000 credits (31,742,136)PSP LLR Ruby: Earned 2,000,000 credits (2,356,601)SoB LLR Ruby: Earned 2,000,000 credits (2,432,091)SR5 LLR Turquoise: Earned 5,000,000 credits (7,887,436)SGS LLR Amethyst: Earned 1,000,000 credits (1,849,514)TRP LLR Ruby: Earned 2,000,000 credits (2,010,675)Woodall LLR Amethyst: Earned 1,000,000 credits (1,231,973)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,119,749)Cullen/Woodall Sieve Sapphire: Earned 20,000,000 credits (39,446,128)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Double Bronze: Earned 100,000,000 credits (100,101,845)AP 26/27 Double Bronze: Earned 100,000,000 credits (100,120,852)GFN Double Bronze: Earned 100,000,000 credits (140,732,435)WW (retired) Double Silver: Earned 200,000,000 credits (200,192,000)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 130064 - Posted: 1 Jun 2019 | 22:59:39 UTC
Last modified: 1 Jun 2019 | 23:43:00 UTC

Is this normal behavior ?
I'm crunching PPS-MEGA and noticed that tasks with a 240K FFT take 28-33% longer to crunch than those with a 256K FFT.
Por instance, typical tasks:

https://www.primegrid.com/result.php?resultid=1003602409
BOINC llr wrapper (version 8.00)
Using Jean Penne's llr (64 bit)
LLR Program - Version 3.8.23, using Gwnum Library Version 29.8
LLR command line: primegrid_cllr.exe -d -oDiskWriteTime=1 -oThreadsPerTest=4 llr.in
Using all-complex FMA3 FFT length 256K, Pass1=128, Pass2=2K, clm=2, 4 threads, a = 7
Run time: 1,076.00 seconds

https://www.primegrid.com/result.php?resultid=1003588100
BOINC llr wrapper (version 8.00)
Using Jean Penne's llr (64 bit)
LLR Program - Version 3.8.23, using Gwnum Library Version 29.8
LLR command line: primegrid_cllr.exe -d -oDiskWriteTime=1 -oThreadsPerTest=4 llr.in
Using all-complex FMA3 FFT length 240K, Pass1=1280, Pass2=192, clm=2, 4 threads, a = 3
Run time: 1,442.00 seconds

Am I missing something ?
Edit: Maybe those different Pass1, Pass2 and "a" values do affect the crunch time?
____________

"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile Crun-chiProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Nov 09
Posts: 3250
ID: 50683
Credit: 152,646,050
RAC: 10,054
Discovered 2 mega primesEliminated 1 conjecture "k"Found 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 2 primes in the 2023 Tour de Primes321 LLR Silver: Earned 100,000 credits (229,492)Cullen LLR Silver: Earned 100,000 credits (110,733)PPS LLR Sapphire: Earned 20,000,000 credits (25,997,824)PSP LLR Ruby: Earned 2,000,000 credits (2,838,382)SoB LLR Silver: Earned 100,000 credits (106,117)SR5 LLR Amethyst: Earned 1,000,000 credits (1,240,750)SGS LLR Amethyst: Earned 1,000,000 credits (1,328,241)TRP LLR Gold: Earned 500,000 credits (626,755)Woodall LLR Silver: Earned 100,000 credits (122,944)321 Sieve (suspended) Silver: Earned 100,000 credits (104,900)Cullen/Woodall Sieve Turquoise: Earned 5,000,000 credits (5,129,666)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,935,566)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Turquoise: Earned 5,000,000 credits (5,612,167)GFN Emerald: Earned 50,000,000 credits (87,881,236)WW (retired) Amethyst: Earned 1,000,000 credits (1,088,000)PSA Turquoise: Earned 5,000,000 credits (7,522,050)
Message 130067 - Posted: 1 Jun 2019 | 23:45:34 UTC - in response to Message 130064.

This is ok, you are missed fact that you using 4 cores on candidate that have only 240/256K
So your resources are better exploited on 256K candidate and hence has lower computing time
But that is my version :)
____________
92*10^1585996-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
2022202116^131072+1 GENERALIZED FERMAT
Proud member of team Aggie The Pew. Go Aggie!

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 14044
ID: 53948
Credit: 482,306,103
RAC: 564,923
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de PrimesFound 1 prime in the 2022 Tour de Primes Mountain StageFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,949,793)Cullen LLR Turquoise: Earned 5,000,000 credits (5,513,946)ESP LLR Turquoise: Earned 5,000,000 credits (7,150,009)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,094,541)PPS LLR Sapphire: Earned 20,000,000 credits (24,049,916)PSP LLR Jade: Earned 10,000,000 credits (11,203,327)SoB LLR Sapphire: Earned 20,000,000 credits (36,821,441)SR5 LLR Sapphire: Earned 20,000,000 credits (22,821,256)SGS LLR Turquoise: Earned 5,000,000 credits (6,602,322)TRP LLR Turquoise: Earned 5,000,000 credits (6,308,522)Woodall LLR Turquoise: Earned 5,000,000 credits (6,390,624)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve Emerald: Earned 50,000,000 credits (51,764,198)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,888,492)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Sapphire: Earned 20,000,000 credits (28,206,685)GFN Double Bronze: Earned 100,000,000 credits (120,616,519)WW (retired) Emerald: Earned 50,000,000 credits (88,580,000)PSA Jade: Earned 10,000,000 credits (13,196,884)
Message 130069 - Posted: 2 Jun 2019 | 1:27:49 UTC - in response to Message 130064.

Guess: FFT sizes that are a power of two are faster than those that aren't.
____________
My lucky number is 75898524288+1

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1172
ID: 55391
Credit: 1,221,586,795
RAC: 1,513,610
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (12,025,988)Cullen LLR Ruby: Earned 2,000,000 credits (3,619,286)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Emerald: Earned 50,000,000 credits (51,578,448)PSP LLR Turquoise: Earned 5,000,000 credits (7,464,143)SoB LLR Emerald: Earned 50,000,000 credits (52,068,899)SR5 LLR Turquoise: Earned 5,000,000 credits (7,459,747)SGS LLR Turquoise: Earned 5,000,000 credits (6,497,924)TRP LLR Turquoise: Earned 5,000,000 credits (7,584,042)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve Double Bronze: Earned 100,000,000 credits (100,055,214)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (519,879,612)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Double Bronze: Earned 100,000,000 credits (103,478,322)GFN Emerald: Earned 50,000,000 credits (88,954,791)WW (retired) Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 130071 - Posted: 2 Jun 2019 | 5:19:02 UTC - in response to Message 130069.

Guess: FFT sizes that are a power of two are faster than those that aren't.

This sounds like a potential optimization - step up FFT to the next power of two. Care to run some experiments?

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 14044
ID: 53948
Credit: 482,306,103
RAC: 564,923
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de PrimesFound 1 prime in the 2022 Tour de Primes Mountain StageFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,949,793)Cullen LLR Turquoise: Earned 5,000,000 credits (5,513,946)ESP LLR Turquoise: Earned 5,000,000 credits (7,150,009)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,094,541)PPS LLR Sapphire: Earned 20,000,000 credits (24,049,916)PSP LLR Jade: Earned 10,000,000 credits (11,203,327)SoB LLR Sapphire: Earned 20,000,000 credits (36,821,441)SR5 LLR Sapphire: Earned 20,000,000 credits (22,821,256)SGS LLR Turquoise: Earned 5,000,000 credits (6,602,322)TRP LLR Turquoise: Earned 5,000,000 credits (6,308,522)Woodall LLR Turquoise: Earned 5,000,000 credits (6,390,624)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve Emerald: Earned 50,000,000 credits (51,764,198)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,888,492)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Sapphire: Earned 20,000,000 credits (28,206,685)GFN Double Bronze: Earned 100,000,000 credits (120,616,519)WW (retired) Emerald: Earned 50,000,000 credits (88,580,000)PSA Jade: Earned 10,000,000 credits (13,196,884)
Message 130083 - Posted: 2 Jun 2019 | 11:43:58 UTC - in response to Message 130071.

Guess: FFT sizes that are a power of two are faster than those that aren't.

This sounds like a potential optimization - step up FFT to the next power of two. Care to run some experiments?


Thank you for volunteering! :)

As an aside... this is something better discussed with the people who, you know, actually develop this software. If you do find something that could be optimized, they're the ones that would benefit from that knowledge. If there's a question that only could be answered by a developer, it's beneficial to actually ask the developers.
____________
My lucky number is 75898524288+1

288larssonProject donor
Volunteer tester
Avatar
Send message
Joined: 17 Apr 10
Posts: 136
ID: 58815
Credit: 5,991,452,870
RAC: 3,262,552
Discovered 104 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2018 Tour de PrimesFound 2 mega primes in the 2018 Tour de Primes2019 Tour de Primes highest prime scoreFound 4 primes in the 2019 Tour de PrimesFound 1 mega prime in the 2019 Tour de PrimesFound 3 primes in the 2020 Tour de PrimesFound 1 mega prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 mega prime in the 2021 Tour de PrimesFound 4 primes in the 2022 Tour de PrimesFound 3 mega primes in the 2022 Tour de PrimesFound 5 primes in the 2023 Tour de PrimesFound 5 mega primes in the 2023 Tour de Primes321 LLR Emerald: Earned 50,000,000 credits (83,486,881)Cullen LLR Sapphire: Earned 20,000,000 credits (27,927,695)ESP LLR Emerald: Earned 50,000,000 credits (75,501,482)Generalized Cullen/Woodall LLR Emerald: Earned 50,000,000 credits (75,704,243)PPS LLR Double Amethyst: Earned 1,000,000,000 credits (1,576,090,453)PSP LLR Emerald: Earned 50,000,000 credits (93,878,096)SoB LLR Emerald: Earned 50,000,000 credits (96,478,306)SR5 LLR Sapphire: Earned 20,000,000 credits (41,816,264)SGS LLR Sapphire: Earned 20,000,000 credits (35,067,569)TRP LLR Emerald: Earned 50,000,000 credits (75,823,315)Woodall LLR Sapphire: Earned 20,000,000 credits (28,190,760)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,015,934)Cullen/Woodall Sieve Sapphire: Earned 20,000,000 credits (38,573,760)Generalized Cullen/Woodall Sieve (suspended) Jade: Earned 10,000,000 credits (13,723,448)PPS Sieve Double Amethyst: Earned 1,000,000,000 credits (1,127,309,309)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (14,372,149)TRP Sieve (suspended) Jade: Earned 10,000,000 credits (11,393,528)AP 26/27 Emerald: Earned 50,000,000 credits (68,819,721)GFN Double Ruby: Earned 2,000,000,000 credits (2,172,351,318)WW (retired) Double Bronze: Earned 100,000,000 credits (100,024,000)PSA Double Silver: Earned 200,000,000 credits (229,955,962)
Message 130107 - Posted: 3 Jun 2019 | 13:04:07 UTC

Hi
llr3.8.23 mostly using FFT length 240K
llr3.8.21 mostly using FFT length 256K

Test on host
http://www.primegrid.com/results.php?hostid=946202

Profile dannyridel
Volunteer tester
Avatar
Send message
Joined: 3 Feb 19
Posts: 1002
ID: 1097922
Credit: 100,392,401
RAC: 373,539
Discovered 2 mega primesFound 1 prime in the 2023 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,064,583)Cullen LLR Amethyst: Earned 1,000,000 credits (1,484,092)ESP LLR Gold: Earned 500,000 credits (517,207)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,741,794)PPS LLR Turquoise: Earned 5,000,000 credits (6,151,598)PSP LLR Ruby: Earned 2,000,000 credits (4,106,368)SoB LLR Ruby: Earned 2,000,000 credits (4,579,037)SR5 LLR Amethyst: Earned 1,000,000 credits (1,243,601)SGS LLR Amethyst: Earned 1,000,000 credits (1,210,539)TRP LLR Amethyst: Earned 1,000,000 credits (1,198,491)Woodall LLR Amethyst: Earned 1,000,000 credits (1,156,439)321 Sieve (suspended) Gold: Earned 500,000 credits (506,814)Cullen/Woodall Sieve Ruby: Earned 2,000,000 credits (3,136,717)Generalized Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (30,033)PPS Sieve Turquoise: Earned 5,000,000 credits (6,923,574)AP 26/27 Turquoise: Earned 5,000,000 credits (7,972,796)GFN Sapphire: Earned 20,000,000 credits (34,863,797)WW (retired) Sapphire: Earned 20,000,000 credits (21,136,000)PSA Silver: Earned 100,000 credits (373,034)
Message 130108 - Posted: 3 Jun 2019 | 13:09:03 UTC - in response to Message 130107.

aww, I think 256k is faster
host 946571
____________
My lucky number is 6219*2^3374198+1


Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1172
ID: 55391
Credit: 1,221,586,795
RAC: 1,513,610
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (12,025,988)Cullen LLR Ruby: Earned 2,000,000 credits (3,619,286)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Emerald: Earned 50,000,000 credits (51,578,448)PSP LLR Turquoise: Earned 5,000,000 credits (7,464,143)SoB LLR Emerald: Earned 50,000,000 credits (52,068,899)SR5 LLR Turquoise: Earned 5,000,000 credits (7,459,747)SGS LLR Turquoise: Earned 5,000,000 credits (6,497,924)TRP LLR Turquoise: Earned 5,000,000 credits (7,584,042)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve Double Bronze: Earned 100,000,000 credits (100,055,214)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (519,879,612)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Double Bronze: Earned 100,000,000 credits (103,478,322)GFN Emerald: Earned 50,000,000 credits (88,954,791)WW (retired) Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 134350 - Posted: 30 Oct 2019 | 6:19:02 UTC

I just noticed this too, on 2 machines, using BOINC tasks over a span of 7 to 9 hours.

i5-4590T (4 cores, BOINC 100% CPU)
1 task @ 4 threads
240K FFT (average of 11 tasks) 1370 sec run time, 5099 CPU time
256K FFT (average of 7 tasks) 1802 sec run time, 6733 sec CPU time
240K FFT takes 32% more run time and 32% more CPU time than 256K FFT

i7-5820K (6 cores, HT on and BOINC 50% CPU)
3 tasks @ 2 threads each + AP27 on GPU
240K FFT (average of 11 tasks) 2645 sec run time, 4343 sec CPU time
256K FFT (average of 9 tasks) 3647 sec run time, 5535 sec CPU time
240K FFT takes 38% more run time and 27% more CPU time than 256K FFT

To prove or refute Crun-chi's conjecture that the larger FFT is better at exploiting multi-core hardware,
we would need to run PPS-MEGA tasks on a single-core system (no HT).
Does anyone have the CPU and the patience to try this?
FMA3 almost certainly isn't available on single-core hardware.

Without saying that it proves anything, we can test 1 task 1 thread on multicore systems,
thanks to the recently introduced PrimeGrid preferences for cores and tasks.
I will report my results in a subsequent post.

It seems counterintuitive that a shorter FFT would be slower.
Is this effect similar to using a shorter word size for large number computations?
The appropriate test of this would be to try a FFT size of 280K vs 256K.

In the end, if we can't undestand why 256K FFT is faster than 240K FFT,
we should just use what we know works better.
"Shut up and calculate", as N. David Mermin said (often misattributed to Richard Feynman).

mackerelProject donor
Volunteer tester
Avatar
Send message
Joined: 2 Oct 08
Posts: 2652
ID: 29980
Credit: 570,442,335
RAC: 5,621
Discovered 6 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 5 primes in the 2019 Tour de PrimesFound 6 primes in the 2020 Tour de PrimesFound 5 primes in the 2021 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (10,747,880)Cullen LLR Turquoise: Earned 5,000,000 credits (6,154,591)ESP LLR Turquoise: Earned 5,000,000 credits (7,207,880)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (6,714,227)PPS LLR Double Bronze: Earned 100,000,000 credits (119,961,682)PSP LLR Jade: Earned 10,000,000 credits (16,843,431)SoB LLR Sapphire: Earned 20,000,000 credits (20,128,807)SR5 LLR Sapphire: Earned 20,000,000 credits (26,030,253)SGS LLR Turquoise: Earned 5,000,000 credits (7,451,505)TPS LLR (retired) Bronze: Earned 10,000 credits (34,130)TRP LLR Sapphire: Earned 20,000,000 credits (38,431,288)Woodall LLR Turquoise: Earned 5,000,000 credits (8,968,201)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,236,219)Cullen/Woodall Sieve Turquoise: Earned 5,000,000 credits (6,607,938)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,626,419)PPS Sieve Emerald: Earned 50,000,000 credits (76,969,144)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Ruby: Earned 2,000,000 credits (2,293,882)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,012,757)AP 26/27 Sapphire: Earned 20,000,000 credits (28,343,221)GFN Emerald: Earned 50,000,000 credits (95,435,184)WW (retired) Sapphire: Earned 20,000,000 credits (43,304,000)PSA Ruby: Earned 2,000,000 credits (2,939,755)
Message 134358 - Posted: 30 Oct 2019 | 9:35:14 UTC - in response to Message 134350.
Last modified: 30 Oct 2019 | 9:36:13 UTC

I had previously made observations in a more generalised sense. In short, multi-thread scaling does seem to "work better" with larger FFT sizes up to the point you run out of cache and become ram bandwidth limited. Looking the other way, as FFTs get smaller, efficiency continues to fall. As a result of these factors, the sweet spot seems to be balancing threads/tasks to fit in your CPU cache without exceeding it.

These particular tasks have somewhat smaller FFTs. 256k FFT is kinda borderline for 2MB/core L3 cache CPUs, so on those 1 or two threads per task is probably optimal for throughput. For an i5 with only 1.5MB/core, 2 threads per task is probably better than 1. In either case, 4 is right out (unless you only care about run time and not throughput).

https://linustechtips.com/main/topic/1080453-ryzen-3600-vs-8086k-for-prime-number-finding/
Look at the 8086k 1w and 2w (workers=tasks) lines.

I'm now wondering if there is a way to force a (bigger) FFT size in LLR. If so, it would be interesting to manually run a 240k FFT test at 256k and compare.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1172
ID: 55391
Credit: 1,221,586,795
RAC: 1,513,610
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (12,025,988)Cullen LLR Ruby: Earned 2,000,000 credits (3,619,286)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Emerald: Earned 50,000,000 credits (51,578,448)PSP LLR Turquoise: Earned 5,000,000 credits (7,464,143)SoB LLR Emerald: Earned 50,000,000 credits (52,068,899)SR5 LLR Turquoise: Earned 5,000,000 credits (7,459,747)SGS LLR Turquoise: Earned 5,000,000 credits (6,497,924)TRP LLR Turquoise: Earned 5,000,000 credits (7,584,042)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve Double Bronze: Earned 100,000,000 credits (100,055,214)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (519,879,612)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Double Bronze: Earned 100,000,000 credits (103,478,322)GFN Emerald: Earned 50,000,000 credits (88,954,791)WW (retired) Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 134379 - Posted: 31 Oct 2019 | 6:17:13 UTC
Last modified: 31 Oct 2019 | 6:18:20 UTC

I ran a bunch of single-thread tasks one at a time on my 6-core system.
The effect is still there, but much less pronounced than with multiple threads.
Averaging over 11 tasks for 240K FFT and 8 tasks for 256K FFT:
240K FFT used 6% more run time and 11% more CPU time for than 256K FFT.
The run time is skewed on a couple of tasks. Probably the internet was unavailable for a time.

Profile JeppeSNProject donor
Avatar
Send message
Joined: 5 Apr 14
Posts: 1852
ID: 306875
Credit: 52,577,644
RAC: 30,660
Found 1 prime in the 2020 Tour de Primes321 LLR Gold: Earned 500,000 credits (684,183)Cullen LLR Gold: Earned 500,000 credits (611,298)ESP LLR Silver: Earned 100,000 credits (174,818)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (112,799)PPS LLR Sapphire: Earned 20,000,000 credits (21,892,289)PSP LLR Gold: Earned 500,000 credits (598,093)SoB LLR Gold: Earned 500,000 credits (774,243)SR5 LLR Silver: Earned 100,000 credits (210,142)SGS LLR Silver: Earned 100,000 credits (142,930)TRP LLR Silver: Earned 100,000 credits (476,246)Woodall LLR Silver: Earned 100,000 credits (281,400)321 Sieve (suspended) Silver: Earned 100,000 credits (175,037)Cullen/Woodall Sieve Bronze: Earned 10,000 credits (22,952)PPS Sieve Bronze: Earned 10,000 credits (10,113)AP 26/27 Bronze: Earned 10,000 credits (52,559)GFN Ruby: Earned 2,000,000 credits (4,988,252)WW (retired) Jade: Earned 10,000,000 credits (13,756,000)PSA Turquoise: Earned 5,000,000 credits (7,614,290)
Message 134396 - Posted: 31 Oct 2019 | 15:39:18 UTC - in response to Message 134379.

composite, are these "live" tasks that you are sent on BOINC from PrimeGrid? (What subproject?)

Maybe, the k values determine what FFT size is used, and determine the run-time as well?

Would it not be better to test one fixed candidate every time (same k and n)?

Not sure I know what I am talking about…

/JeppeSN

Chaotic DisorderProject donor
Avatar
Send message
Joined: 24 Sep 10
Posts: 76
ID: 68547
Credit: 306,880,344
RAC: 6,927
Discovered 1 mega primeFound 1 prime in the 2018 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (12,973,702)Cullen LLR Gold: Earned 500,000 credits (588,204)ESP LLR Ruby: Earned 2,000,000 credits (3,650,366)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (765,031)PPS LLR Jade: Earned 10,000,000 credits (12,872,114)PSP LLR Ruby: Earned 2,000,000 credits (2,057,569)SoB LLR Turquoise: Earned 5,000,000 credits (6,591,933)SR5 LLR Ruby: Earned 2,000,000 credits (3,223,294)SGS LLR Amethyst: Earned 1,000,000 credits (1,968,091)TRP LLR Amethyst: Earned 1,000,000 credits (1,182,488)Woodall LLR Gold: Earned 500,000 credits (719,170)321 Sieve (suspended) Silver: Earned 100,000 credits (499,544)Cullen/Woodall Sieve Bronze: Earned 10,000 credits (26,059)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (3,566,529)PPS Sieve Emerald: Earned 50,000,000 credits (69,156,537)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (25,179)TRP Sieve (suspended) Silver: Earned 100,000 credits (260,129)AP 26/27 Double Bronze: Earned 100,000,000 credits (104,454,948)GFN Emerald: Earned 50,000,000 credits (82,299,459)
Message 134409 - Posted: 31 Oct 2019 | 20:41:24 UTC - in response to Message 134396.
Last modified: 31 Oct 2019 | 20:42:03 UTC

I have noticed similar behavior. This is on a i7-9700k running at steady 4.5ghz with dual channel 3200mhz RAM. Running 4 tasks at 2 threads per task.

https://www.primegrid.com/result.php?resultid=1034733243
BOINC llr wrapper (version 8.04)
Using Jean Penne's llr (64 bit)
LLR Program - Version 3.8.23, using Gwnum Library Version 29.8
LLR command line: primegrid_cllr.exe -d -oDiskWriteTime=1 -oThreadsPerTest=2 llr.in
Using all-complex FMA3 FFT length 240K, Pass1=1280, Pass2=192, clm=2, 2 threads, a = 3
Run Time: 2,510.74

https://www.primegrid.com/result.php?resultid=1034728451
BOINC llr wrapper (version 8.04)
Using Jean Penne's llr (64 bit)
LLR Program - Version 3.8.23, using Gwnum Library Version 29.8
LLR command line: primegrid_cllr.exe -d -oDiskWriteTime=1 -oThreadsPerTest=2 llr.in
Using all-complex FMA3 FFT length 256K, Pass1=128, Pass2=2K, clm=2, 2 threads, a = 7
Run Time: 1,546.69
____________

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1172
ID: 55391
Credit: 1,221,586,795
RAC: 1,513,610
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (12,025,988)Cullen LLR Ruby: Earned 2,000,000 credits (3,619,286)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Emerald: Earned 50,000,000 credits (51,578,448)PSP LLR Turquoise: Earned 5,000,000 credits (7,464,143)SoB LLR Emerald: Earned 50,000,000 credits (52,068,899)SR5 LLR Turquoise: Earned 5,000,000 credits (7,459,747)SGS LLR Turquoise: Earned 5,000,000 credits (6,497,924)TRP LLR Turquoise: Earned 5,000,000 credits (7,584,042)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve Double Bronze: Earned 100,000,000 credits (100,055,214)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (519,879,612)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Double Bronze: Earned 100,000,000 credits (103,478,322)GFN Emerald: Earned 50,000,000 credits (88,954,791)WW (retired) Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 134419 - Posted: 1 Nov 2019 | 3:09:50 UTC - in response to Message 134396.
Last modified: 1 Nov 2019 | 3:10:18 UTC

Yes my tests were with live tasks, PPS-MEGA.
The k is only available to us if we peek in BOINC's slot directories, and that has to be done while the task is running. Technically feasible, but I'm not interested in doing this at the moment.

Profile JeppeSNProject donor
Avatar
Send message
Joined: 5 Apr 14
Posts: 1852
ID: 306875
Credit: 52,577,644
RAC: 30,660
Found 1 prime in the 2020 Tour de Primes321 LLR Gold: Earned 500,000 credits (684,183)Cullen LLR Gold: Earned 500,000 credits (611,298)ESP LLR Silver: Earned 100,000 credits (174,818)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (112,799)PPS LLR Sapphire: Earned 20,000,000 credits (21,892,289)PSP LLR Gold: Earned 500,000 credits (598,093)SoB LLR Gold: Earned 500,000 credits (774,243)SR5 LLR Silver: Earned 100,000 credits (210,142)SGS LLR Silver: Earned 100,000 credits (142,930)TRP LLR Silver: Earned 100,000 credits (476,246)Woodall LLR Silver: Earned 100,000 credits (281,400)321 Sieve (suspended) Silver: Earned 100,000 credits (175,037)Cullen/Woodall Sieve Bronze: Earned 10,000 credits (22,952)PPS Sieve Bronze: Earned 10,000 credits (10,113)AP 26/27 Bronze: Earned 10,000 credits (52,559)GFN Ruby: Earned 2,000,000 credits (4,988,252)WW (retired) Jade: Earned 10,000,000 credits (13,756,000)PSA Turquoise: Earned 5,000,000 credits (7,614,290)
Message 134423 - Posted: 1 Nov 2019 | 7:36:37 UTC - in response to Message 134419.

True. But when testing, you could start LLR from the command line with the same number, on different FFT sizes, and on both computers. Or you could do it with both a small k candidate and a large k. That might shed some light on why big FFT sizes seem to give shorter run-times on the live tasks. /JeppeSN

KEPProject donor
Send message
Joined: 10 Aug 05
Posts: 303
ID: 110
Credit: 13,001,669
RAC: 23,247
Found 1 prime in the 2019 Tour de PrimesESP LLR Amethyst: Earned 1,000,000 credits (1,638,299)PPS LLR Amethyst: Earned 1,000,000 credits (1,530,698)PSP LLR Amethyst: Earned 1,000,000 credits (1,303,212)SoB LLR Ruby: Earned 2,000,000 credits (2,055,162)SR5 LLR Silver: Earned 100,000 credits (482,968)TRP LLR Ruby: Earned 2,000,000 credits (3,559,116)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,633,882)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (64,186)TRP Sieve (suspended) Silver: Earned 100,000 credits (259,649)PSA Silver: Earned 100,000 credits (456,059)
Message 134442 - Posted: 1 Nov 2019 | 17:12:57 UTC

I seem to remember, from back when running x threads per task, became possible, that George Woltman, declared that there is a penalty when running smaller FFT length tasks, because the cos/sin calculations are spread out on n cores and before the next cos/sin calculation or maybe it was mul/mod calculation can be done, each and every core has to return its part of the calculation - and for reasons I either hasn't heard about or plain forgotten, those x parts does not complete their sin/cos calculations the same time and hence leaving one or more cores idle for a small time before doing next cos/sin calculation.

I´m not sure if that is the explanation, but I have on my i5-4670 running at 3.4 GHz no gains on using all 4 cores per mega test compared to running 1 core per test and running 4 tests simultaniously. I haven't experimented with 2 cores and 2 tests, but when running CRUS work at megadigit level 2 cores test and running 2 tests simultaniously is the most productive.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1172
ID: 55391
Credit: 1,221,586,795
RAC: 1,513,610
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (12,025,988)Cullen LLR Ruby: Earned 2,000,000 credits (3,619,286)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Emerald: Earned 50,000,000 credits (51,578,448)PSP LLR Turquoise: Earned 5,000,000 credits (7,464,143)SoB LLR Emerald: Earned 50,000,000 credits (52,068,899)SR5 LLR Turquoise: Earned 5,000,000 credits (7,459,747)SGS LLR Turquoise: Earned 5,000,000 credits (6,497,924)TRP LLR Turquoise: Earned 5,000,000 credits (7,584,042)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve Double Bronze: Earned 100,000,000 credits (100,055,214)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (519,879,612)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Double Bronze: Earned 100,000,000 credits (103,478,322)GFN Emerald: Earned 50,000,000 credits (88,954,791)WW (retired) Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 134476 - Posted: 1 Nov 2019 | 22:11:46 UTC - in response to Message 134442.
Last modified: 1 Nov 2019 | 22:12:28 UTC

...those x parts does not complete their sin/cos calculations the same time and hence leaving one or more cores idle for a small time before doing next cos/sin calculation.

This is a well-known effect of using multiple cooperating CPUs when they need to synchronize. It's related to the number of cores, not the FFT size. It's one reason for diminishing returns when adding more threads to a task.

Profile MyrskylyhtyProject donor
Avatar
Send message
Joined: 27 Jan 18
Posts: 116
ID: 972376
Credit: 543,868,707
RAC: 4,177
Discovered 1 mega primeFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (109,329,259)Cullen LLR Gold: Earned 500,000 credits (533,200)ESP LLR Gold: Earned 500,000 credits (808,848)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (472,570)PPS LLR Jade: Earned 10,000,000 credits (15,031,331)PSP LLR Amethyst: Earned 1,000,000 credits (1,379,782)SoB LLR Ruby: Earned 2,000,000 credits (3,570,885)SR5 LLR Amethyst: Earned 1,000,000 credits (1,583,505)SGS LLR Silver: Earned 100,000 credits (128,562)TRP LLR Amethyst: Earned 1,000,000 credits (1,126,846)Woodall LLR Silver: Earned 100,000 credits (380,849)321 Sieve (suspended) Gold: Earned 500,000 credits (573,292)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,069,231)PPS Sieve Emerald: Earned 50,000,000 credits (61,446,588)AP 26/27 Ruby: Earned 2,000,000 credits (2,494,531)GFN Double Silver: Earned 200,000,000 credits (258,863,912)PSA Emerald: Earned 50,000,000 credits (85,075,515)
Message 138158 - Posted: 22 Feb 2020 | 11:27:14 UTC

With my 9900KS, the 240K FFT length PPS Mega tasks take over 2x longer than the 256K FFT length tasks. Even DIV tasks are faster than the 240K FFT length PPS Mega.

What's even more weird: trying to run any current length PPS Mega task using the independant LLR app in command line, every single task runs with 256K FFT length.

Could something cause the Boinc LLR-app to occasionally run using a "wrong" FFT length?

Profile BurProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Feb 20
Posts: 515
ID: 1241833
Credit: 415,561,849
RAC: 23,663
321 LLR Ruby: Earned 2,000,000 credits (2,092,823)Cullen LLR Ruby: Earned 2,000,000 credits (2,315,295)ESP LLR Ruby: Earned 2,000,000 credits (2,151,088)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,620,968)PPS LLR Jade: Earned 10,000,000 credits (17,145,114)PSP LLR Ruby: Earned 2,000,000 credits (2,064,832)SoB LLR Ruby: Earned 2,000,000 credits (2,434,466)SR5 LLR Ruby: Earned 2,000,000 credits (2,065,004)SGS LLR Ruby: Earned 2,000,000 credits (2,042,656)TRP LLR Ruby: Earned 2,000,000 credits (2,089,856)Woodall LLR Ruby: Earned 2,000,000 credits (2,112,258)321 Sieve (suspended) Ruby: Earned 2,000,000 credits (2,107,153)PPS Sieve Turquoise: Earned 5,000,000 credits (5,096,952)AP 26/27 Turquoise: Earned 5,000,000 credits (5,797,662)GFN Jade: Earned 10,000,000 credits (12,403,233)WW (retired) Double Silver: Earned 200,000,000 credits (349,980,000)PSA Amethyst: Earned 1,000,000 credits (1,042,601)
Message 145389 - Posted: 19 Nov 2020 | 17:38:23 UTC

I also observed this behavior, apparently it was never really solved why it happened?

I also noticed this difference: Pass1=128 is small and Pass2=2K is large for the fast 256K tasks, while the slower 240K tasks have larger Pass1=1280 and smaller Pass2=192.

Also a = 3 for faster task and a = 5 for slower task.

What is the meaning of these parameters? Maybe they are the reason for the difference in CPU times?
____________
1281979 * 2^485014 + 1 is prime ... no further hits up to: n = 5,700,000

Message boards : Proth Prime Search : PPS-MEGA: Smaller FFT longer crunch time ?

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 2.24, 2.40, 2.42
Generated 29 Sep 2023 | 13:18:31 UTC