Pi 'Cooker'

From MFSP Wiki

Jump to: navigation, search

In this, I cheated somewhat. All PHP scripts I tried hogged far too much CPU power of the MFSP server, so I used the wonderful program QuickPi to compute the first 33 million digits of pi, and then uploaded it as a text file that a PHP script fetches the digits from. You can view the text file here.

Here is an example of the start of the program output:

QPI-QuickPi v4.0a, (c) 2000-2006 S. Pagliarulo
Freely distributable, email: s_pagliarulo@hotmail.com

o Intel(R) Pentium(R) 4 CPU 3.00GHz detected
o Processor speed measured at 3.00 GHz
o Single processor with symmetric multithreading
o 213.6 MB of memory available
o Using default training data

Computation of Pi to 33,554,432 digits
Method used : Chudnovsky
Started : Fri Jun 22 13:39:26 2007

Series size : 2366047  (33,554,444 digits)
Series processing time : 187.75
Final value time : 42.08

Total time : 229.88 seconds (3 mins, 49.88 secs)
Total memory used : 223,164,367 (212.83 MB)
Processor utilization : 115.00%

Total disk space used : 54,722,560 (52.19 MB)
Time spent swapping : 11.50 (0.00 reading, 11.50 writing)

Pi = 3.
1415926535 8979323846 2643383279 5028841971 6939937510  : 50
5820974944 5923078164 0628620899 8628034825 3421170679  : 100
8214808651 3282306647 0938446095 5058223172 5359408128  : 150
4811174502 8410270193 8521105559 6446229489 5493038196  : 200
4428810975 6659334461 2847564823 3786783165 2712019091  : 250
.
.
.

In addition, over at /resources/phi.txt, over 1 billion digits of phi are available. People with MFSP user accounts (You may register one here) can request a zipped file to download for easier viewing (Be aware, though, that the file will be too large to view in Notepad, if you have Windows!). I hope to soon have a record-setting 5,000,000,000 digits available, as the current record is 3,141,000,000.

Here is the beginning output of the phi calculation:

QPI-QuickPi v4.0a, (c) 2000-2006 S. Pagliarulo
Freely distributable, email: s_pagliarulo@hotmail.com

o Intel(R) Pentium(R) 4 CPU 3.00GHz detected
o Processor speed measured at 3.00 GHz
o Single processor with symmetric multithreading
o 343.5 MB of memory available
o Using default training data

Computation of Phi to 1,004,857,600 digits
Method used : Newton's iteration
Started : Fri Jun 22 13:50:15 2007

Total time : 47.36 seconds
Total memory used : 352,060,726 (335.75 MB)
Processor utilization : 100.07%

Total disk space used : 116,654,080 (111.25 MB)
Time spent swapping : 7.16 (0.00 reading, 7.16 writing)

Phi = 1.
6180339887 4989484820 4586834365 6381177203 0917980576  : 50
2862135448 6227052604 6281890244 9707207204 1893911374  : 100
8475408807 5386891752 1266338622 2353693179 3180060766  : 150
7263544333 8908659593 9582905638 3226613199 2829026788  : 200
0675208766 8925017116 9620703222 1043216269 5486262963  : 250
.
.
.
Personal tools