mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware

Reply
 
Thread Tools
Old 2016-10-16, 16:55   #12
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·983 Posts
Default

My health is slowly returning to what passes for normal so now making progress with the Pi-3 hardware. Downloaded NOOBS and installed Raspbian Lite. Feels like a nice snappy system without all that GUI crap getting in the way, despite being only a 32-bit OS. Who needs X11 or Wayland when the curses version of aptitude is so friendly?

GMP and GMP-ECM is a task for tomorrow. After that, perhaps, 64-bit Arch Linux and then on to Gentoo. More micro-SD needs to be purchased before I'm happy with burning multiple operating systems.
xilman is offline   Reply With Quote
Old 2016-10-16, 17:18   #13
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·983 Posts
Default

Anyone here have experience with Snappy Ubuntu Core ?

Looks like it might be another light-weight option but I'm not so familiar with that environment.


Hmm. Perhaps this thread should be moved elsewhere.
xilman is offline   Reply With Quote
Old 2016-10-17, 17:32   #14
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·983 Posts
Default

Quote:
Originally Posted by henryzz View Post
The raspberry pi 2 ran fine with gmp-ecm. The main issues I had with it were its speed was 1/20th of a Q6600 core and it had 1 GB of memory to share between 4 cores.
You should get a bit more speed on the pi 3 but I believe it still only has 1gb of memory.
First look results. This with the Debian released GMP and GMP-ECM:
Code:
pi@raspberrypi:~ $ ecm -v 1000000
GMP-ECM 6.4.4 [configured with GMP 6.0.0] [ECM]
Running on raspberrypi
533052935812724471841380849020536310747376222877714764551452418611323101581424711043443478661689064895630882238466804976175445143564101669576617833008137571
Input number is 533052935812724471841380849020536310747376222877714764551452418611323101581424711043443478661689064895630882238466804976175445143564101669576617833008137571 (156 digits)
Using MODMULN [mulredc:0, sqrredc:0]
Using B1=1000000, B2=1045563762, polynomial Dickson(6), sigma=1121907350
dF=4096, k=6, d=39270, d2=13, i0=13
Expected number of curves to find a factor of n digits:
35	40	45	50	55	60	65	70	75	80
910	8615	97096	1281819	1.9e+07	3.1e+08	6.2e+09	1.7e+11	2.3e+16	3.1e+21
Step 1 took 45020ms
Using 37 small primes for NTT
Estimated memory usage: 14M
Initializing tables of differences for F took 110ms
Computing roots of F took 770ms
Building F from its roots took 880ms
Computing 1/F took 620ms
Initializing table of differences for G took 100ms
Computing roots of G took 660ms
Building G from its roots took 890ms
Computing roots of G took 660ms
Building G from its roots took 890ms
Computing G * H took 330ms
Reducing  G * H mod F took 350ms
Computing roots of G took 660ms
Building G from its roots took 890ms
Computing G * H took 340ms
Reducing  G * H mod F took 350ms
Computing roots of G took 660ms
Building G from its roots took 890ms
Computing G * H took 340ms
Reducing  G * H mod F took 360ms
Computing roots of G took 660ms
Building G from its roots took 890ms
Computing G * H took 330ms
Reducing  G * H mod F took 350ms
Computing roots of G took 660ms
Building G from its roots took 890ms
Computing G * H took 340ms
Reducing  G * H mod F took 350ms
Computing polyeval(F,G) took 1830ms
Computing product of all F(g_i) took 10ms
Step 2 took 17170ms
Expected time to find a factor of n digits:
35	40	45	50	55	60	65	70	75	80
15.72h	6.20d	69.89d	2.53y	37.82y	621.07y	12157y	335755y	4e+10y	6e+15y
The corresponding snippet from a 3.2GHz AMD PhenomII X6 1090T is
Code:
pcl@anubis ~/nums/msieve-code/trunk $ ecm -v 1000000
GMP-ECM 7.0.1-dev [configured with GMP 6.0.0, --enable-asm-redc, --enable-gpu] [ECM]
Running on anubis.home.brnikat.com
533052935812724471841380849020536310747376222877714764551452418611323101581424711043443478661689064895630882238466804976175445143564101669576617833008137571
Input number is 533052935812724471841380849020536310747376222877714764551452418611323101581424711043443478661689064895630882238466804976175445143564101669576617833008137571 (156 digits)
Using MODMULN [mulredc:0, sqrredc:1]
Computing batch product (of 1442099 bits) of primes up to B1=1000000 took 49ms
Using B1=1000000, B2=1045563762, polynomial Dickson(6), sigma=1:3702621647
dF=4096, k=6, d=39270, d2=13, i0=13
Expected number of curves to find a factor of n digits:
35	40	45	50	55	60	65	70	75	80
1071	10283	118226	1565171	2.4e+07	3.9e+08	7.7e+09	2.9e+11	5.6e+16	7.6e+21
Step 1 took 4608ms
Using 20 small primes for NTT
Estimated memory usage: 21.59MB
Initializing tables of differences for F took 14ms
Computing roots of F took 140ms
Building F from its roots took 163ms
Computing 1/F took 120ms
Initializing table of differences for G took 7ms
Computing roots of G took 60ms
Building G from its roots took 83ms
Computing roots of G took 61ms
Building G from its roots took 82ms
Computing G * H took 35ms
Reducing  G * H mod F took 35ms
Computing roots of G took 61ms
Building G from its roots took 82ms
Computing G * H took 35ms
Reducing  G * H mod F took 35ms
Computing roots of G took 61ms
Building G from its roots took 82ms
Computing G * H took 35ms
Reducing  G * H mod F took 35ms
Computing roots of G took 61ms
Building G from its roots took 82ms
Computing G * H took 35ms
Reducing  G * H mod F took 34ms
Computing roots of G took 61ms
Building G from its roots took 82ms
Computing G * H took 34ms
Reducing  G * H mod F took 36ms
Computing polyeval(F,G) took 222ms
Computing product of all F(g_i) took 2ms
Step 2 took 1899ms
Expected time to find a factor of n digits:
35	40	45	50	55	60	65	70	75	80
1.94h	18.59h	8.90d	117.88d	4.88y	80.21y	1592y	60480y	1e+10y	2e+15y
The number is a c156 and the smallest composite in the GCW tables and it is now undergoing a GNFS run. The timings for the 60-digit level above suggest that the AMD is 621.07 / 80.21 = 7.75 times faster. This is vastly better than 1/20 of a Q6600 core!

This is not entirely fair as the latter is running code as optimized as I can make it on a 64-bit OS, whereas the Pi is hobbled by 32-bit arithmetic. When scaled by the clock frequency and a factor of 2 or so for the word size the two are comparable --- as I would expect.

Assuming that a 64-bit system can be installed, and the signs are very promising, the price-performance, both capital and running, also seem competitive --- admittedly with a now elderly AMD system. In time I'll make more detailed measurements.

Last fiddled with by xilman on 2016-10-17 at 17:33 Reason: s/slower/faster/
xilman is offline   Reply With Quote
Old 2016-10-17, 17:48   #15
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22×3×983 Posts
Default

This is amusing.

A 3.2GHz AMD 1090 core is 6428.18 bogomips according to /proc/cpuinfo. The Pi-3 claims 38.40 bogomips per core.

Bogo indeed!
xilman is offline   Reply With Quote
Old 2016-10-17, 18:22   #16
Mark Rose
 
Mark Rose's Avatar
 
"/X\(โ€˜-โ€˜)/X\"
Jan 2013
https://pedan.tech/

61608 Posts
Default

Quote:
Originally Posted by xilman View Post
This is amusing.

A 3.2GHz AMD 1090 core is 6428.18 bogomips according to /proc/cpuinfo. The Pi-3 claims 38.40 bogomips per core.

Bogo indeed!
https://en.wikipedia.org/wiki/BogoMips
Mark Rose is offline   Reply With Quote
Old 2016-10-17, 21:18   #17
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

That is about what I would expect for the pi 3 as it's CPU should be twice as fast per core as the pi 2.

Last fiddled with by henryzz on 2016-10-17 at 21:18
henryzz is offline   Reply With Quote
Old 2016-10-17, 21:41   #18
Mark Rose
 
Mark Rose's Avatar
 
"/X\(โ€˜-โ€˜)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

https://www.raspberrypi.org/blog/acc...using-its-gpu/
Mark Rose is offline   Reply With Quote
Old 2016-10-17, 22:07   #19
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

614110 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
404 error on the pi webpage.
edit: Just needs separating.
https://www.raspberrypi.org/blog/acc...using-the-gpu/
https://petewarden.com/2014/08/07/ho...using-its-gpu/

Last fiddled with by henryzz on 2016-10-17 at 22:08
henryzz is offline   Reply With Quote
Old 2016-10-17, 22:12   #20
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3·23·89 Posts
Default

It looks like there may be issues with accuracy. The size of the ffts is also limited by the fact that is only uses single precision. Not likely to be very useful here. Nice idea though.
henryzz is offline   Reply With Quote
Old 2016-10-18, 02:49   #21
Mark Rose
 
Mark Rose's Avatar
 
"/X\(โ€˜-โ€˜)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

Quote:
Originally Posted by henryzz View Post
My bad. Thank you.
Mark Rose is offline   Reply With Quote
Old 2016-10-18, 08:43   #22
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

5×7×139 Posts
Default

Quote:
Originally Posted by xilman View Post
First look results. This with the Debian released GMP and GMP-ECM:

The number is a c156 and the smallest composite in the GCW tables and it is now undergoing a GNFS run. The timings for the 60-digit level above suggest that the AMD is 621.07 / 80.21 = 7.75 times faster. This is vastly better than 1/20 of a Q6600 core!

This is not entirely fair as the latter is running code as optimized as I can make it on a 64-bit OS, whereas the Pi is hobbled by 32-bit arithmetic. When scaled by the clock frequency and a factor of 2 or so for the word size the two are comparable --- as I would expect.

Assuming that a 64-bit system can be installed, and the signs are very promising, the price-performance, both capital and running, also seem competitive --- admittedly with a now elderly AMD system. In time I'll make more detailed measurements.
Did you also test PI with multiple instances of gmp-ecm? I suspect that a memory bottleneck may appear sooner there .
ET_ is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
raspberry pi3 and srxsieve speed pepi37 Hardware 6 2018-03-20 18:01
Runs Prime95 on Raspberry Pi primeawesome Hardware 6 2018-02-14 08:19
Which SIMD flag to use for Raspberry Pi BrainStone Mlucas 14 2017-11-19 00:59
Raspberry Pi lavalamp Hobbies 10 2017-08-16 00:37
Raspberry Pi sloppyonefoot Software 1 2017-07-02 08:48

All times are UTC. The time now is 04:06.


Fri Jul 7 04:06:43 UTC 2023 up 323 days, 1:35, 0 users, load averages: 1.63, 1.58, 1.35

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

โ‰  ยฑ โˆ“ รท ร— ยท โˆ’ โˆš โ€ฐ โŠ— โŠ• โŠ– โŠ˜ โŠ™ โ‰ค โ‰ฅ โ‰ฆ โ‰ง โ‰จ โ‰ฉ โ‰บ โ‰ป โ‰ผ โ‰ฝ โŠ โА โŠ‘ โŠ’ ยฒ ยณ ยฐ
โˆ  โˆŸ ยฐ โ‰… ~ โ€– โŸ‚ โซ›
โ‰ก โ‰œ โ‰ˆ โˆ โˆž โ‰ช โ‰ซ โŒŠโŒ‹ โŒˆโŒ‰ โˆ˜ โˆ โˆ โˆ‘ โˆง โˆจ โˆฉ โˆช โจ€ โŠ• โŠ— ๐–• ๐–– ๐–— โŠฒ โŠณ
โˆ… โˆ– โˆ โ†ฆ โ†ฃ โˆฉ โˆช โІ โŠ‚ โŠ„ โŠŠ โЇ โŠƒ โŠ… โŠ‹ โŠ– โˆˆ โˆ‰ โˆ‹ โˆŒ โ„• โ„ค โ„š โ„ โ„‚ โ„ต โ„ถ โ„ท โ„ธ ๐“Ÿ
ยฌ โˆจ โˆง โŠ• โ†’ โ† โ‡’ โ‡ โ‡” โˆ€ โˆƒ โˆ„ โˆด โˆต โŠค โŠฅ โŠข โŠจ โซค โŠฃ โ€ฆ โ‹ฏ โ‹ฎ โ‹ฐ โ‹ฑ
โˆซ โˆฌ โˆญ โˆฎ โˆฏ โˆฐ โˆ‡ โˆ† ฮด โˆ‚ โ„ฑ โ„’ โ„“
๐›ข๐›ผ ๐›ฃ๐›ฝ ๐›ค๐›พ ๐›ฅ๐›ฟ ๐›ฆ๐œ€๐œ– ๐›ง๐œ ๐›จ๐œ‚ ๐›ฉ๐œƒ๐œ— ๐›ช๐œ„ ๐›ซ๐œ… ๐›ฌ๐œ† ๐›ญ๐œ‡ ๐›ฎ๐œˆ ๐›ฏ๐œ‰ ๐›ฐ๐œŠ ๐›ฑ๐œ‹ ๐›ฒ๐œŒ ๐›ด๐œŽ๐œ ๐›ต๐œ ๐›ถ๐œ ๐›ท๐œ™๐œ‘ ๐›ธ๐œ’ ๐›น๐œ“ ๐›บ๐œ”