![]() |
![]() |
#1 | |
Jun 2003
Oxford, UK
22·3·7·23 Posts |
![]()
I'm trying to go for a decent rig to run a multi-threaded prime gap routine written in perl and I think I can afford a Ryzen 1800 series. Then it comes down to ensuring that all the other components will sing along sweetly and that I am not paying for stuff I don't need:
The current UK spec I am inching towards is: Quote:
I would be very grateful for any advice you hardware experts might have on this. |
|
![]() |
![]() |
![]() |
#2 |
"Composite as Heck"
Oct 2017
14278 Posts |
![]()
I have a 1700 and perl 5.22 (but don't use perl as you're about to see). Running "perl smallgaptest.pl" fails as it can't find Timer/Runtime.pm (missing the Timer::Runtime module). I install cpanm and try "sudo cpanm Timer::Runtime", which fails compilation maybe due to missing Time::Elapse. Trying to install Time::Elapse in the same way fails. I don't know enough about Perl to debug the problem or decipher google. Unless you have a magic fix, I tried :P
The motherboard is nice, maybe overkill for what you need. A good B350 board should be plenty, it's just the RAM compatibility you need to pay attention to. ASRock is meant to be solid. MSI and Gigabyte supposedly have lower quality VRMs especially in the cheaper boards. I would recommend a 1700 as it's much cheaper (£230), comes with a decent heatsink and can be overclocked to the same as the other two if really necessary. Ryzen+ comes out this month so you need to consider 2700 and 2700X too, benchmarks indicate a 10% performance boost and better RAM support, but as the new line they'll probably be expensive on launch. |
![]() |
![]() |
![]() |
#3 | ||
Jun 2003
Oxford, UK
36148 Posts |
![]() Quote:
Code:
use Timer::Runtime; Code:
my $start_run = time(); Code:
my $end_run = time(); my $run_time = $end_run - $start_run; print "Job took $run_time seconds\n"; Code:
my $nthreads Quote:
|
||
![]() |
![]() |
![]() |
#4 |
Feb 2003
35648 Posts |
![]()
Assuming that you are running this in a Linux environment, you could simply take out the line:
Code:
use Timer::Runtime; Code:
time perl smallgaptest.pl |
![]() |
![]() |
![]() |
#5 | |
Feb 2003
190810 Posts |
![]() Quote:
Code:
sudo cpan force install Time::Elapse force install Timer::Runtime |
|
![]() |
![]() |
![]() |
#6 | |
"Composite as Heck"
Oct 2017
79110 Posts |
![]() Quote:
For the benchmarks I had to create an empty merits.txt, is that some sort of configuration file I'm missing? Here's the results, but note the CPU may not have been fully utilised for some of the testing: Code:
smallgaptest.pl Started: Thu Apr 5 12:37:17 2018 # 39 i * 167#/21534 (1..10000000) mingap 1346 18.791741 2890 PRP67 = 138067*167#/21534-1594 17.389811 2706 PRP68 = 849917*167#/21534-1382 18.318888 2854 PRP68 = 1024807*167#/21534-1516 18.570360 2896 PRP68 = 1192981*167#/21534-1438 17.069326 2670 PRP68 = 1915451*167#/21534-1374 18.040892 2824 PRP68 = 2143205*167#/21534-1338 18.617178 2918 PRP69 = 2627371*167#/21534-1296 17.913754 2808 PRP69 = 2664685*167#/21534-1306 18.160088 2848 PRP69 = 2876147*167#/21534-1446 18.200766 2856 PRP69 = 3143995*167#/21534-1438 21.276427 3340 PRP69 = 3354361*167#/21534-1642 18.265413 2868 PRP69 = 3480211*167#/21534-1522 16.605635 2610 PRP69 = 4073809*167#/21534-1324 18.639102 2930 PRP69 = 4159661*167#/21534-1556 19.536212 3072 PRP69 = 4373099*167#/21534-1706 17.621521 2772 PRP69 = 4649063*167#/21534-1338 18.039961 2840 PRP69 = 5245129*167#/21534-1338 18.271699 2880 PRP69 = 6358703*167#/21534-1286 18.168063 2866 PRP69 = 7230857*167#/21534-1374 16.999550 2682 PRP69 = 7373587*167#/21534-1396 17.260136 2724 PRP69 = 7762661*167#/21534-1286 17.717003 2796 PRP69 = 7717717*167#/21534-1348 19.690642 3108 PRP69 = 7928771*167#/21534-1592 20.459272 3230 PRP69 = 8196017*167#/21534-1388 18.227805 2878 PRP69 = 8328403*167#/21534-1546 16.779002 2650 PRP69 = 8710399*167#/21534-1318 17.282953 2730 PRP69 = 8918557*167#/21534-1398 21.966038 3470 PRP69 = 9026411*167#/21534-1724 17.762752 2806 PRP69 = 9025333*167#/21534-1348 18.737447 2960 PRP69 = 9038041*167#/21534-1338 18.036650 2850 PRP69 = 9399167*167#/21534-1382 19.476307 3078 PRP69 = 9652283*167#/21534-1436 18.654349 2948 PRP69 = 9601057*167#/21534-1374 19.273204 3046 PRP69 = 9701443*167#/21534-1348 smallgaptest.pl Finished: Thu Apr 5 12:39:07 2018, elapsed time = 00:01:49.629163 edit: Accidentally did small twice, running med now. Last fiddled with by M344587487 on 2018-04-05 at 12:39 Reason: idiocy |
|
![]() |
![]() |
![]() |
#7 | |
Jun 2003
Oxford, UK
111100011002 Posts |
![]()
My 4 core machine results for varying threads - in seconds
Quote:
What did you set your my $nthreads at? the variable is in the program, rather than set as a flag - the default in the program as I sent it to you is 4 - and with the Ryzen this can be set up to 16. I'm sorry I forgot about the merits.txt file :( Last fiddled with by robert44444uk on 2018-04-05 at 12:52 |
|
![]() |
![]() |
![]() |
#8 | |
"/X\(‘-‘)/X\"
Jan 2013
B7316 Posts |
![]() Quote:
The new 2700X will be faster than the 1800X, consuming a few more watts. If you're trying to save money though, and you'll be running this system 24/7, I'd look at the 2700 (8 cores) or the 2600 (6 cores), both of which consume only 65 watts out of the box. An early review of the new Ryzens: https://wccftech.com/amd-ryzen-7-270...lished-online/ Prices leaked on Amazon: https://wccftech.com/full-amd-ryzen-...usly-reported/ If your program can only use 4 cores/threads and you can't change this, and you won't be using the machine for other purposes, I'd look at buying an i3-8100 or i3-8350k system instead. It would be cheaper. However, if you're buying a general purpose system, I'd stick with the 2000 series Ryzens. |
|
![]() |
![]() |
![]() |
#9 | |
Jun 2003
Oxford, UK
22·3·7·23 Posts |
![]() Quote:
I can use any number for cores/threads with this program. As posted, it just means changing the $nthreads in the program. So I am certainly looking for lots of cores!! |
|
![]() |
![]() |
![]() |
#10 |
"Composite as Heck"
Oct 2017
7×113 Posts |
![]()
Yes my bad, that small result is for threads set to 4. For all the tests the scheduler did a good job of not using SMT when there were cores available.
small 8 thread Code:
smallgaptest.pl Started: Thu Apr 5 13:58:34 2018 # 39 i * 167#/21534 (1..10000000) mingap 1346 18.791741 2890 PRP67 = 138067*167#/21534-1594 17.389811 2706 PRP68 = 849917*167#/21534-1382 18.318888 2854 PRP68 = 1024807*167#/21534-1516 18.570360 2896 PRP68 = 1192981*167#/21534-1438 17.069326 2670 PRP68 = 1915451*167#/21534-1374 18.040892 2824 PRP68 = 2143205*167#/21534-1338 18.617178 2918 PRP69 = 2627371*167#/21534-1296 17.913754 2808 PRP69 = 2664685*167#/21534-1306 18.160088 2848 PRP69 = 2876147*167#/21534-1446 18.200766 2856 PRP69 = 3143995*167#/21534-1438 21.276427 3340 PRP69 = 3354361*167#/21534-1642 18.265413 2868 PRP69 = 3480211*167#/21534-1522 16.605635 2610 PRP69 = 4073809*167#/21534-1324 18.639102 2930 PRP69 = 4159661*167#/21534-1556 19.536212 3072 PRP69 = 4373099*167#/21534-1706 17.621521 2772 PRP69 = 4649063*167#/21534-1338 18.039961 2840 PRP69 = 5245129*167#/21534-1338 18.271699 2880 PRP69 = 6358703*167#/21534-1286 16.999550 2682 PRP69 = 7373587*167#/21534-1396 18.168063 2866 PRP69 = 7230857*167#/21534-1374 17.717003 2796 PRP69 = 7717717*167#/21534-1348 17.260136 2724 PRP69 = 7762661*167#/21534-1286 19.690642 3108 PRP69 = 7928771*167#/21534-1592 18.227805 2878 PRP69 = 8328403*167#/21534-1546 20.459272 3230 PRP69 = 8196017*167#/21534-1388 16.779002 2650 PRP69 = 8710399*167#/21534-1318 17.282953 2730 PRP69 = 8918557*167#/21534-1398 21.966038 3470 PRP69 = 9026411*167#/21534-1724 18.737447 2960 PRP69 = 9038041*167#/21534-1338 17.762752 2806 PRP69 = 9025333*167#/21534-1348 18.036650 2850 PRP69 = 9399167*167#/21534-1382 19.476307 3078 PRP69 = 9652283*167#/21534-1436 18.654349 2948 PRP69 = 9601057*167#/21534-1374 19.273204 3046 PRP69 = 9701443*167#/21534-1348 smallgaptest.pl Finished: Thu Apr 5 13:59:30 2018, elapsed time = 00:00:55.483178 Code:
smallgaptest.pl Started: Thu Apr 5 14:00:03 2018 # 39 i * 167#/21534 (1..10000000) mingap 1346 18.791741 2890 PRP67 = 138067*167#/21534-1594 17.389811 2706 PRP68 = 849917*167#/21534-1382 18.318888 2854 PRP68 = 1024807*167#/21534-1516 18.570360 2896 PRP68 = 1192981*167#/21534-1438 17.069326 2670 PRP68 = 1915451*167#/21534-1374 18.040892 2824 PRP68 = 2143205*167#/21534-1338 18.617178 2918 PRP69 = 2627371*167#/21534-1296 17.913754 2808 PRP69 = 2664685*167#/21534-1306 18.160088 2848 PRP69 = 2876147*167#/21534-1446 18.200766 2856 PRP69 = 3143995*167#/21534-1438 21.276427 3340 PRP69 = 3354361*167#/21534-1642 18.265413 2868 PRP69 = 3480211*167#/21534-1522 16.605635 2610 PRP69 = 4073809*167#/21534-1324 18.639102 2930 PRP69 = 4159661*167#/21534-1556 19.536212 3072 PRP69 = 4373099*167#/21534-1706 17.621521 2772 PRP69 = 4649063*167#/21534-1338 18.039961 2840 PRP69 = 5245129*167#/21534-1338 18.271699 2880 PRP69 = 6358703*167#/21534-1286 16.999550 2682 PRP69 = 7373587*167#/21534-1396 18.168063 2866 PRP69 = 7230857*167#/21534-1374 17.717003 2796 PRP69 = 7717717*167#/21534-1348 17.260136 2724 PRP69 = 7762661*167#/21534-1286 19.690642 3108 PRP69 = 7928771*167#/21534-1592 20.459272 3230 PRP69 = 8196017*167#/21534-1388 18.227805 2878 PRP69 = 8328403*167#/21534-1546 16.779002 2650 PRP69 = 8710399*167#/21534-1318 17.282953 2730 PRP69 = 8918557*167#/21534-1398 21.966038 3470 PRP69 = 9026411*167#/21534-1724 18.737447 2960 PRP69 = 9038041*167#/21534-1338 17.762752 2806 PRP69 = 9025333*167#/21534-1348 18.036650 2850 PRP69 = 9399167*167#/21534-1382 19.476307 3078 PRP69 = 9652283*167#/21534-1436 18.654349 2948 PRP69 = 9601057*167#/21534-1374 19.273204 3046 PRP69 = 9701443*167#/21534-1348 smallgaptest.pl Finished: Thu Apr 5 14:00:45 2018, elapsed time = 00:00:42.469672 Code:
medgaptest.pl Started: Thu Apr 5 14:18:17 2018 # 812 i * 6247#/21534 (1..200) mingap 36818 10.759297 66072 PRP2667 = 113*6247#/21534-30748 9.445520 58008 PRP2668 = 169*6247#/21534-24602 9.827430 60354 PRP2668 = 179*6247#/21534-31708 medgaptest.pl Finished: Thu Apr 5 14:25:59 2018, elapsed time = 00:07:41.586702 Code:
medgaptest.pl Started: Thu Apr 5 13:30:32 2018 # 812 i * 6247#/21534 (1..200) mingap 36818 10.759297 66072 PRP2667 = 113*6247#/21534-30748 9.445520 58008 PRP2668 = 169*6247#/21534-24602 9.827430 60354 PRP2668 = 179*6247#/21534-31708 medgaptest.pl Finished: Thu Apr 5 13:35:58 2018, elapsed time = 00:05:25.865843 Code:
medgaptest.pl Started: Thu Apr 5 14:01:57 2018 # 812 i * 6247#/21534 (1..200) mingap 36818 10.759297 66072 PRP2667 = 113*6247#/21534-30748 9.445520 58008 PRP2668 = 169*6247#/21534-24602 9.827430 60354 PRP2668 = 179*6247#/21534-31708 medgaptest.pl Finished: Thu Apr 5 14:06:53 2018, elapsed time = 00:04:55.464834 Code:
medgaptest.pl Started: Thu Apr 5 14:07:16 2018 # 812 i * 6247#/21534 (1..200) mingap 36818 9.445520 58008 PRP2668 = 169*6247#/21534-24602 10.759297 66072 PRP2667 = 113*6247#/21534-30748 9.827430 60354 PRP2668 = 179*6247#/21534-31708 medgaptest.pl Finished: Thu Apr 5 14:11:27 2018, elapsed time = 00:04:11.299515 |
![]() |
![]() |
![]() |
#11 | ||
Jun 2003
Oxford, UK
36148 Posts |
![]() Quote:
Here were the med test timings for my 4 core, using a varying number of threads (in secs) Code:
threads runtime 4 555.3 5 497.2 6 492.3 7 483.8 8 466.4 Code:
threads runtime 4 461.6 7 325.8 8 295.4 16 252.3 Quote:
Last fiddled with by robert44444uk on 2018-04-05 at 14:01 |
||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ryzen help | Prime95 | Hardware | 9 | 2018-05-14 04:06 |
29.2 benchmark help #2 (Ryzen only) | Prime95 | Software | 10 | 2017-05-08 13:24 |
AMD Ryzen is risin' up. | jasong | Hardware | 11 | 2017-03-02 19:56 |
Choose your own exponent? | Unregistered | PrimeNet | 3 | 2003-12-10 04:32 |
Pick and Choose | Wacky | Puzzles | 5 | 2003-07-16 20:02 |