mersenneforum.org  

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

Reply
 
Thread Tools
Old 2019-06-27, 21:34   #1
aurashift
 
Jan 2015

2×127 Posts
Default ideas for a cloud based pet project?

Hi,


So I'm working on a new on-prem private cloud redesign POC and I have an opportunity to run whatever the hell tickles my fancy to test it out, and I want to produce something of interest (we use gimps for stability testing on idle hardware, but I want to do something more ram/storage intensive than cranking out a bunch of LL's). I was thinking of running that software that was in the news somewhere in a post on here (that now I can't find) that generated a record number of digits of pi using several nodes and ~170TB of storage over a month.


If anyone knows where that post/software is that'd be nice, but I also am open to ideas on what else would be cool.


Once it gets off the ground (will be months from now) I'll likely have 6 nodes split cross-country with a 64c EPYC2 cpu, multi-terabytes of RAM, fast 100+Gbit interconnect, and a fast NVMe fabric with anywhere from several to a few hundred TBs of storage.


I don't do a lot of HPC stuff but I'm definitely looking into their playground to steal ideas.
aurashift is offline   Reply With Quote
Old 2019-06-27, 22:04   #2
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

45368 Posts
Default

You could run PRP tests without reducing the exponentiation via modular arithmetic.
This will enable you to perform tests on multiple candidates at 1/gazillions of The time it would take you to redo the modular arithmetic otherwise.
Please let me know if you are interested.
a1call is offline   Reply With Quote
Old 2019-06-27, 22:34   #3
hansl
 
hansl's Avatar
 
Apr 2019

CD16 Posts
Default

Quote:
Originally Posted by aurashift View Post
If anyone knows where that post/software is that'd be nice
Good news, the dev posts on this forum and it even has its own subforum:
https://mersenneforum.org/forumdisplay.php?f=159
hansl is offline   Reply With Quote
Old 2019-06-28, 00:16   #4
aurashift
 
Jan 2015

2×127 Posts
Default

Quote:
Originally Posted by hansl View Post
Good news, the dev posts on this forum and it even has its own subforum:
https://mersenneforum.org/forumdisplay.php?f=159

noice...noiiiiiice
aurashift is offline   Reply With Quote
Old 2019-06-28, 00:21   #5
aurashift
 
Jan 2015

2×127 Posts
Default

Quote:
Originally Posted by a1call View Post
You could run PRP tests without reducing the exponentiation via modular arithmetic.
This will enable you to perform tests on multiple candidates at 1/gazillions of The time it would take you to redo the modular arithmetic otherwise.
Please let me know if you are interested.

So I'm a bit of an outsider here in that I'm not a math nerd at all, so I have no idea what you just said.


edit: You'd have to explain it like I'm five, sans the sesame street characters.

Last fiddled with by aurashift on 2019-06-28 at 00:21
aurashift is offline   Reply With Quote
Old 2019-06-28, 00:57   #6
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

95E16 Posts
Default

Quote:
Originally Posted by aurashift View Post
So I'm a bit of an outsider here in that I'm not a math nerd at all, so I have no idea what you just said.


edit: You'd have to explain it like I'm five, sans the sesame street characters.
Well, simplest form of Probabilistic-Primality test (PRP) is as follows:

Suppose you want to see if p=5 is prime. You would use the formula:

p | b^(p-1)-1

b is just any integer other than 1 or p and coprime to p, say 2.
So 5 divides 2^4-1=15
This tells you that 5 is a probable prime. And then you would perform a deterministic test if you could to prove it prime once and for all.

Now suppose you want to test a larger candidate say one with 1M decimal digits.
The formula is the same but raising b to the power of (p-1) will take perhaps a few hours and the result will not fit in any (in the market PC) RAM.
The remedy is to perform modular Arithmetic which still takes hours but needs only enough RAM to keep track of the reminder of b^(p-1)/p which is always smaller than p and sufficient information for the test. Now let's say you wanted to test a number of candidates which are close enough such that once you did one exponentiation you could get the next one quickly by a single multiplication.
Modular Arithmetic does not allow for this but if you had unlimited RAM you could register the whole number rather than just the reminder and the multiplication to get the next exponentiation would work.
Since there is no such thing as unlimited RAM, you could perform tests without Modular arithmetic only as much as your RAM would allow. But with Arbitrary-Precision programs used for large numbers the more RAM you have the bigger the numbers you could test without Modular Arithmetic.

Last fiddled with by a1call on 2019-06-28 at 01:07
a1call is offline   Reply With Quote
Old 2019-06-28, 01:11   #7
aurashift
 
Jan 2015

2×127 Posts
Default

Quote:
Originally Posted by a1call View Post
Well, simplest form of Probabilistic-Primality test (PRP) is as follows:

Suppose you want to see if p=5 is prime. You would use the formula:

p | b^(p-1)-1

b is just any integer other than 1 or p and coprime to p, say 2.
So 5 divides 2^4-1=15
This tells you that 5 is a probable prime. And then you would perform a deterministic test if you could to prove it prime once and for all.

Now suppose you want to test a larger candidate say one with 1M decimal digits.
The formula is the same but raising b to the power of (p-1) will take perhaps a few hours and the result will not fit in any (in the market PC) RAM.
The remedy is to perform modular Arithmetic which still takes hours but needs only enough RAM to keep track of the reminder of b^(p-1)/p which is always smaller than p and sufficient information for the test. Now let's say you wanted to test a number of candidates which are close enough such that once you did one exponentiation you could get the next one quickly by a single multiplication.
Modular Arithmetic does not allow for this but if you had unlimited RAM you could register the whole number rather than just the reminder and the multiplication to get the next exponentiation would work.
Since there is no such thing as unlimited RAM, you could perform tests without Modular arithmetic only as much as your RAM would allow. But with Arbitrary-Precision programs used for large numbers the more RAM you have the bigger the numbers you could test without Modular Arithmetic.
How much RAM capacity/throughput are you talking?
And lets say you were swapping that to storage due to lack of RAM, what kind of numbers there? That might be harder to do, but maybe not.
aurashift is offline   Reply With Quote
Old 2019-06-28, 01:27   #8
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17×487 Posts
Default

Quote:
Originally Posted by aurashift View Post
How much RAM capacity/throughput are you talking?
Well if every atom in the universe can hold one bit....
Prime95 is offline   Reply With Quote
Old 2019-06-28, 01:33   #9
aurashift
 
Jan 2015

111111102 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Well if every atom in the universe can hold one bit....
well lets say you weren't going infinite just yet, and you ended up swapping to disk...what'd a few hundred terabytes get ya?
aurashift is offline   Reply With Quote
Old 2019-06-28, 01:38   #10
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

2×11×109 Posts
Default

Quote:
Originally Posted by aurashift View Post
How much RAM capacity/throughput are you talking?
And lets say you were swapping that to storage due to lack of RAM, what kind of numbers there? That might be harder to do, but maybe not.
That's a good question.
The smallest Top-10 Twin-Prime has 52k decimal digits as of now:
My apologies, you would need virtually unlimited RAM for that.
Wolfram Alpha doesn't even dignify that calculation with a sane result.
https://www.wolframalpha.com/input/?i=2%5E(10%5E52000)

Should have done the math before I posted.

Last fiddled with by a1call on 2019-06-28 at 01:41
a1call is offline   Reply With Quote
Old 2019-06-28, 01:43   #11
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

Quote:
Originally Posted by aurashift View Post
well lets say you weren't going infinite just yet, and you ended up swapping to disk...what'd a few hundred terabytes get ya?
By my reckoning, you could primality test numbers of this size:

log2 (500 terrabytes) = log2 (500 * 10^12 * 8 bits)

Thus, numbers about 55 bits long.
Prime95 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some ideas regarding NFS... paul0 Factoring 3 2015-03-14 19:55
Prime search in a cloud-based server (VM)... iParadase PrimeNet 8 2013-03-06 17:13
two ideas for NPLB TimSorbet No Prime Left Behind 16 2008-03-01 23:32
GROUP IDEAS TTn 15k Search 15 2003-09-23 16:28
Domain name ideas... Xyzzy Lounge 17 2003-03-24 16:20

All times are UTC. The time now is 16:34.


Fri Jul 7 16:34:56 UTC 2023 up 323 days, 14:03, 1 user, load averages: 2.32, 2.28, 2.00

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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔