Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by m463 on Friday March 26, 2021 @01:34AM
(#26589039)
I tried FindingPrimesMulti.py on a 3970x:
EDIT: ran it again:
[ Parent
| on HN ]
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by tpkm on Friday March 26, 2021 @06:49AM
(#26590583)
That's interesting - I just tried on my Ryzen 5 3600 and got the following:
10k using 48 processes: 0.82 seconds (using the original single threaded script this was actually faster at 0.65)
100k using 48 processes: 28.41s
200k using 48 processes: 99.68s
--- EDIT - looking at resource monitor python.exe is only using 7-8% of total available CPU resources
--- EDIT 2 - switching to ThreadPool from multiprocessing.dummy brought the 10k result down from 0.8 seconds to 0.3 seconds, but didn't impact the 100k or 200k results
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by m463 on Friday March 26, 2021 @05:22PM
(#26597116)
sorry, was using python2 - using: python3 ./FindingPrimesMulti.py
Find all primes up to: 10000 using 256 processes.
Time elasped: 0.36 seconds
Number of primes found 1229
Find all primes up to: 100000 using 256 processes.
Time elasped: 15.7 seconds
Number of primes found 9592
Find all primes up to: 200000 using 256 processes.
Time elasped: 58.07 seconds
Number of primes found 17984
(this was debian 10)
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by wil421 on Friday March 26, 2021 @09:42AM
(#26592022)
My M1 Air results are similar to yours.
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by neatze on Friday March 26, 2021 @02:08AM
(#26589209)
this is with a fixed multiprocessing script ?
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by m463 on Friday March 26, 2021 @02:54AM
(#26589445)
is this what you mean? FindingPrimesMulti-1.zip
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by neatze on Friday March 26, 2021 @03:43AM
(#26589665)
If you have mpi4py then I would try this one:
https://github.com/joshjerred/mpi4py-with-multiprocessing-Ch...
To me this would be more fair comparison between single cpu and pi cluster.
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by m463 on Friday March 26, 2021 @05:36PM
(#26597240)
apt-get mpi4py3 and using python3 primeMP.py is lots faster
Find all primes up to: 10000
Nodes: 1
Time elasped: 0.12 seconds
[1229]
Primes discovered: 1229
Find all primes up to: 100000
Nodes: 1
Time elasped: 4.52 seconds
[9592]
Primes discovered: 9592
Find all primes up to: 200000
Nodes: 1
Time elasped: 17.43 seconds
[17984]
Primes discovered: 17984
I even tried: Find all primes up to: 1000000
Nodes: 1
Time elasped: 383.2 seconds
[78498]
Primes discovered: 78498
Re:Can My Water Cooled Raspberry Pi Cluster Beat My MacBook?
by neatze on Friday March 26, 2021 @09:21PM
(#26598968)
that's makes much more sense :)
I found this: https://setiathome.berkeley.edu/cpu_list.php
ARMv7 looks like is raspberry pi, looking at this I can't see any computational value for such cluster setup.