PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Number crunching : PrimeGrid Task Summary Generator

Author Message
Kellen
Send message
Joined: 10 Jan 18
Posts: 484
ID: 967938
Credit: 1,600,003,090
RAC: 0
Discovered 2 mega primes321 LLR Sapphire: Earned 20,000,000 credits (20,008,344)Cullen LLR Sapphire: Earned 20,000,000 credits (20,000,917)ESP LLR Sapphire: Earned 20,000,000 credits (20,001,144)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,011,942)PPS LLR Sapphire: Earned 20,000,000 credits (20,000,023)PSP LLR Sapphire: Earned 20,000,000 credits (20,008,714)SoB LLR Sapphire: Earned 20,000,000 credits (20,035,621)SR5 LLR Sapphire: Earned 20,000,000 credits (20,004,459)SGS LLR Sapphire: Earned 20,000,000 credits (20,000,002)TRP LLR Sapphire: Earned 20,000,000 credits (20,000,236)Woodall LLR Sapphire: Earned 20,000,000 credits (20,017,137)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,000,569)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,006,424)PPS Sieve Sapphire: Earned 20,000,000 credits (49,900,913)AP 26/27 Sapphire: Earned 20,000,000 credits (45,002,633)GFN Double Silver: Earned 200,000,000 credits (200,000,012)WW Sapphire: Earned 20,000,000 credits (45,004,000)PSA Double Amethyst: Earned 1,000,000,000 credits (1,000,000,000)
Message 130265 - Posted: 9 Jun 2019 | 0:13:58 UTC

Greetings All,

I was interested in finding out how many tasks for certain sub-projects individual computers have done, ran into some issues separating certain sub-projects, figured those out, messed around a bunch and ended up with a batch file to generate a text file summary of everything. After some initial testing within team Storm, the sub-projects from Stream's private server were also added. This has now been tested by several people on a number of computers running Windows 7 and Windows 10, and can be downloaded at the following link.

https://drive.google.com/open?id=17IyXbGtsB5tWJexuKeSH6h2XJwA-RfJa

Here is an example of the output (which should open as soon as the batch is finished):

PrimeGrid Task Summary for DESKTOP-V97EL52 Sat 06 08 2019 16:39:43.19 321 Prime Search: 0 Cullen Prime Search: 15 Extended Sierpinski Problem: 0 Generalized Cullen/Woodall: 52 Prime Sierpinski Problem: 0 Proth Prime Search: 875 Proth Prime Search Extended: 198 Proth Mega Prime Search: 0 Seventeen or Bust: 22 Sierpinski/Riesel Base 5: 172 Sophie Germain Search: 23614 The Riesel Problem: 382 Woodall Prime Search: 76 321 Sieve: 12451 GCW Sieve: 26299 PPS Sieve: 5535 GFN-13 (Stream's Server): 1028599 GFN-14 (Stream's Server): 30481 GFN-15: 216510 GFN-16: 6238 GFN-16 Mega (Stream's Server): 0 GFN-17 Low: 441 GFN-17 Mega: 11268 GFN-18: 225 GFN-19: 2 GFN-20: 3 GFN-21: 2 GFN-22: 1 GFN-DYFL: 0 AP27: 334


The sub-projects and numbers of each tasks should be in columns when viewed on Windows 10 and encapsulated by "code" tags here, but the spacing is a bit funny on Windows 7. Either way; the numbers all seem correct.

To run it; plop the .bat file into your main BOINC Data directory (not the PrimeGrid one, but the directory where you find cc_config and the other main BOINC files) and double-click. Then wait. If you have large job log files it can take some time to run. It took about a minute on the computer which produced the output above, but I have a 30MB PrimeGrid and 110MB Stream's server job log, so those are kinda big compared to what most job logs will look like. Some of you will have much larger logs than that, so it may take quite a while.

I can't guarantee that this is bug free, but it doesn't seem to have done anything bad to anyone who has run it, and it is returning the correct results for all cases where I actually know what the correct result should be. As always, only run it if you are comfortable with running stuff like this. If you find any bugs, feel free to let me know as well.

Enjoy :)

Kellen

Profile PenguinProject donor
Avatar
Send message
Joined: 14 Sep 12
Posts: 722
ID: 172547
Credit: 3,883,535,540
RAC: 7,610,552
Discovered 8 mega primesEliminated 1 conjecture "k"Discovered 1 AP26Found 1 prime in the 2019 Tour de PrimesFound 15 primes in the 2020 Tour de PrimesFound 15 primes in the 2021 Tour de PrimesFound 2 primes in the 2021 Tour de Primes Mountain StageFound 8 primes in the 2022 Tour de PrimesFound 8 primes in the 2023 Tour de PrimesFound 1 mega prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (16,184,356)Cullen LLR Jade: Earned 10,000,000 credits (12,149,015)ESP LLR Jade: Earned 10,000,000 credits (15,204,046)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (6,457,830)PPS LLR Emerald: Earned 50,000,000 credits (92,393,100)PSP LLR Sapphire: Earned 20,000,000 credits (32,640,213)SoB LLR Ruby: Earned 2,000,000 credits (2,753,793)SR5 LLR Double Bronze: Earned 100,000,000 credits (108,213,989)SGS LLR Sapphire: Earned 20,000,000 credits (32,915,235)TRP LLR Sapphire: Earned 20,000,000 credits (27,849,537)Woodall LLR Jade: Earned 10,000,000 credits (10,813,070)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (23,909,932)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,018,833)PPS Sieve Double Amethyst: Earned 1,000,000,000 credits (1,256,444,065)TRP Sieve (suspended) Silver: Earned 100,000 credits (110,630)AP 26/27 Double Bronze: Earned 100,000,000 credits (160,587,960)GFN Double Gold: Earned 500,000,000 credits (853,469,599)WW Double Gold: Earned 500,000,000 credits (559,612,000)PSA Double Gold: Earned 500,000,000 credits (666,899,755)
Message 130270 - Posted: 9 Jun 2019 | 0:50:58 UTC - in response to Message 130265.
Last modified: 9 Jun 2019 | 0:57:20 UTC

Simply a fine piece of programming there. I love it!

Thank you for this Kellen!

Seeing the GFN subproject breakdown is so nice!

Kellen
Send message
Joined: 10 Jan 18
Posts: 484
ID: 967938
Credit: 1,600,003,090
RAC: 0
Discovered 2 mega primes321 LLR Sapphire: Earned 20,000,000 credits (20,008,344)Cullen LLR Sapphire: Earned 20,000,000 credits (20,000,917)ESP LLR Sapphire: Earned 20,000,000 credits (20,001,144)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,011,942)PPS LLR Sapphire: Earned 20,000,000 credits (20,000,023)PSP LLR Sapphire: Earned 20,000,000 credits (20,008,714)SoB LLR Sapphire: Earned 20,000,000 credits (20,035,621)SR5 LLR Sapphire: Earned 20,000,000 credits (20,004,459)SGS LLR Sapphire: Earned 20,000,000 credits (20,000,002)TRP LLR Sapphire: Earned 20,000,000 credits (20,000,236)Woodall LLR Sapphire: Earned 20,000,000 credits (20,017,137)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,000,569)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,006,424)PPS Sieve Sapphire: Earned 20,000,000 credits (49,900,913)AP 26/27 Sapphire: Earned 20,000,000 credits (45,002,633)GFN Double Silver: Earned 200,000,000 credits (200,000,012)WW Sapphire: Earned 20,000,000 credits (45,004,000)PSA Double Amethyst: Earned 1,000,000,000 credits (1,000,000,000)
Message 130271 - Posted: 9 Jun 2019 | 1:59:24 UTC - in response to Message 130270.

Thanks Penguin; glad you like it! It was the GFN subproject breakdown (specifically GFN-15) that got me thinking about this in the first place ;)

Profile Eudy SilvaProject donor
Avatar
Send message
Joined: 26 Aug 17
Posts: 2114
ID: 918937
Credit: 588,073,735
RAC: 332,552
Discovered 3 mega primesFound 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,187,213)Cullen LLR Amethyst: Earned 1,000,000 credits (1,349,947)ESP LLR Amethyst: Earned 1,000,000 credits (1,151,976)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,199,207)PPS LLR Sapphire: Earned 20,000,000 credits (31,428,016)PSP LLR Amethyst: Earned 1,000,000 credits (1,476,639)SoB LLR Ruby: Earned 2,000,000 credits (2,432,091)SR5 LLR Ruby: Earned 2,000,000 credits (4,237,182)SGS LLR Amethyst: Earned 1,000,000 credits (1,849,514)TRP LLR Ruby: Earned 2,000,000 credits (2,010,675)Woodall LLR Amethyst: Earned 1,000,000 credits (1,231,973)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,119,749)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Double Bronze: Earned 100,000,000 credits (100,101,845)AP 26/27 Double Bronze: Earned 100,000,000 credits (100,120,852)GFN Double Bronze: Earned 100,000,000 credits (133,920,612)WW Double Silver: Earned 200,000,000 credits (200,192,000)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 130272 - Posted: 9 Jun 2019 | 2:10:21 UTC

Very nice !
Thanks for sharing.

____________

"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Odd-Rod
Send message
Joined: 7 Aug 06
Posts: 42
ID: 3240
Credit: 217,163,480
RAC: 9,167
321 LLR Ruby: Earned 2,000,000 credits (2,389,587)Cullen LLR Ruby: Earned 2,000,000 credits (2,247,970)ESP LLR Ruby: Earned 2,000,000 credits (2,094,226)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,606,531)PPS LLR Ruby: Earned 2,000,000 credits (2,024,097)PSP LLR Ruby: Earned 2,000,000 credits (2,893,233)SoB LLR Ruby: Earned 2,000,000 credits (2,934,420)SR5 LLR Ruby: Earned 2,000,000 credits (2,044,782)SGS LLR Ruby: Earned 2,000,000 credits (2,038,901)TRP LLR Ruby: Earned 2,000,000 credits (2,573,224)Woodall LLR Ruby: Earned 2,000,000 credits (2,295,882)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,085,746)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (60,808)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,066,764)PPS Sieve Emerald: Earned 50,000,000 credits (50,818,097)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (26,479)TRP Sieve (suspended) Silver: Earned 100,000 credits (241,181)AP 26/27 Sapphire: Earned 20,000,000 credits (27,501,998)GFN Emerald: Earned 50,000,000 credits (52,768,573)WW Sapphire: Earned 20,000,000 credits (47,448,000)
Message 130273 - Posted: 9 Jun 2019 | 9:31:11 UTC

Thanks for sharing!

____________
5912891284485*2^1290000-1
(Sophie Germain Prime Search)

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13955
ID: 53948
Credit: 392,890,430
RAC: 184,027
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de PrimesFound 1 prime in the 2022 Tour de Primes Mountain StageFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,638,389)Cullen LLR Turquoise: Earned 5,000,000 credits (5,513,946)ESP LLR Turquoise: Earned 5,000,000 credits (7,150,009)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,094,541)PPS LLR Sapphire: Earned 20,000,000 credits (24,049,916)PSP LLR Turquoise: Earned 5,000,000 credits (7,956,186)SoB LLR Sapphire: Earned 20,000,000 credits (36,067,618)SR5 LLR Jade: Earned 10,000,000 credits (17,366,672)SGS LLR Turquoise: Earned 5,000,000 credits (6,361,962)TRP LLR Turquoise: Earned 5,000,000 credits (6,308,522)Woodall LLR Turquoise: Earned 5,000,000 credits (6,390,624)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,885,121)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,902,645)GFN Double Bronze: Earned 100,000,000 credits (106,801,850)WW Emerald: Earned 50,000,000 credits (88,580,000)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 130276 - Posted: 9 Jun 2019 | 12:48:14 UTC

Really nice.

FWIW, I made a few changes in my copy.

I changed the first two lines to be this:

echo PrimeGrid Task Summary for %computername% %Date:/= % %Time:/= % > Tasks.txt echo off


and the last two lines to be this:

type "PrimeGrid Tasks %Date:/= %.txt" echo on


That's just a matter of personal taste.

I also added a few old projects that some people may have (these probably *should* be added to your batch file):

for /f %%c in ('find /c /i "gcwsieve" ^< job_log_www.primegrid.com.txt') do set /a cwsieve=%%c echo CW Sieve: %cwsieve% >> Tasks.txt for /f %%c in ('find /c /i "psp_sr2sieve" ^< job_log_www.primegrid.com.txt') do set /a pspsieve=%%c echo PSP Sieve: %pspsieve% >> Tasks.txt for /f %%c in ('find /c /i "trp_sr2sieve" ^< job_log_www.primegrid.com.txt') do set /a trpsieve=%%c echo TRP Sieve: %trpsieve% >> Tasks.txt


It's possible someone may have some of those tasks still in the log.

Thanks for making this!
____________
My lucky number is 75898524288+1

Kellen
Send message
Joined: 10 Jan 18
Posts: 484
ID: 967938
Credit: 1,600,003,090
RAC: 0
Discovered 2 mega primes321 LLR Sapphire: Earned 20,000,000 credits (20,008,344)Cullen LLR Sapphire: Earned 20,000,000 credits (20,000,917)ESP LLR Sapphire: Earned 20,000,000 credits (20,001,144)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,011,942)PPS LLR Sapphire: Earned 20,000,000 credits (20,000,023)PSP LLR Sapphire: Earned 20,000,000 credits (20,008,714)SoB LLR Sapphire: Earned 20,000,000 credits (20,035,621)SR5 LLR Sapphire: Earned 20,000,000 credits (20,004,459)SGS LLR Sapphire: Earned 20,000,000 credits (20,000,002)TRP LLR Sapphire: Earned 20,000,000 credits (20,000,236)Woodall LLR Sapphire: Earned 20,000,000 credits (20,017,137)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,000,569)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,006,424)PPS Sieve Sapphire: Earned 20,000,000 credits (49,900,913)AP 26/27 Sapphire: Earned 20,000,000 credits (45,002,633)GFN Double Silver: Earned 200,000,000 credits (200,000,012)WW Sapphire: Earned 20,000,000 credits (45,004,000)PSA Double Amethyst: Earned 1,000,000,000 credits (1,000,000,000)
Message 130281 - Posted: 9 Jun 2019 | 14:08:17 UTC - in response to Message 130276.

My pleasure everyone!

Thank you for the lines Michael! I will make those changes and re-issue the file shortly. Before doing that though, just curious; is there an ESP and SoB Sieve as well, or do those tasks get counted under the PSP Sieve? If they are counted under PSP I will change the name to "ESP/PSP/SoB Sieve" to reflect the naming on the Task Status page. Otherwise I will leave it as-is.

Thanks!

Kellen

dthononProject donor
Volunteer tester
Avatar
Send message
Joined: 6 Dec 17
Posts: 435
ID: 957147
Credit: 1,737,342,032
RAC: 13,828
Discovered 5 mega primes2018 Tour de Primes highest prime count2018 Tour de Primes highest prime scoreFound 50 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 1 prime in the 2018 Tour de Primes Mountain StageFound 1 mega prime in the 2018 Tour de Primes Mountain StageFound 5 primes in the 2019 Tour de PrimesFound 1 prime in the 2019 Tour de Primes Mountain StageFound 1 prime in the 2020 Tour de PrimesFound 3 primes in the 2021 Tour de PrimesFound 2 mega primes in the 2021 Tour de PrimesFound 3 primes in the 2022 Tour de PrimesFound 2 primes in the 2022 Tour de Primes Mountain StageFound 2 primes in the 2023 Tour de Primes321 LLR Sapphire: Earned 20,000,000 credits (44,438,066)Cullen LLR Sapphire: Earned 20,000,000 credits (22,934,217)ESP LLR Sapphire: Earned 20,000,000 credits (25,764,177)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (30,199,888)PPS LLR Double Bronze: Earned 100,000,000 credits (184,166,376)PSP LLR Sapphire: Earned 20,000,000 credits (37,533,866)SoB LLR Double Silver: Earned 200,000,000 credits (206,092,841)SR5 LLR Sapphire: Earned 20,000,000 credits (26,556,859)SGS LLR Sapphire: Earned 20,000,000 credits (22,184,905)TRP LLR Sapphire: Earned 20,000,000 credits (33,473,671)Woodall LLR Sapphire: Earned 20,000,000 credits (22,265,470)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (27,103,289)Generalized Cullen/Woodall Sieve (suspended) Double Bronze: Earned 100,000,000 credits (126,821,599)PPS Sieve Double Silver: Earned 200,000,000 credits (205,573,693)AP 26/27 Double Bronze: Earned 100,000,000 credits (125,591,752)GFN Double Silver: Earned 200,000,000 credits (396,003,108)WW Double Bronze: Earned 100,000,000 credits (136,448,000)PSA Emerald: Earned 50,000,000 credits (64,190,256)
Message 130289 - Posted: 9 Jun 2019 | 16:52:28 UTC - in response to Message 130281.

Similar code for Linux. It only prints the counters for tasks found in the log file. I tested it on Ubuntu and Debian, but not on CentOS/Fedora... distributions.

#!/usr/bin/env python3 import os import os.path import re from collections import Counter from datetime import datetime if os.path.exists('/var/lib/boinc-client/'): # Debian/Ubuntu/.. path path = '/var/lib/boinc-client/' elif os.path.exists('/var/lib/boinc/'): # CentOS/Fedora/... path path = '/var/lib/boinc/' else: print('BOINC path not found') raise FileNotFoundError logf1 = path + 'job_log_www.primegrid.com.txt' logf2 = path + 'job_log_boincvm.proxyma.ru_30080_test4vm.txt' cnt = Counter() p = re.compile(r'(\w*)_\d*_\d*') nb_lines = 0 def count(logf): global nb_lines # Read lines from log file try: with open(logf) as f: for line in f: nb_lines += 1 # Split by whitespace and take 9th item task = line.split()[8] # Pattern match for application name app = p.match(task).group(1) #print('{} -> {}'.format(task, app)) # Update counter cnt.update([app]) except FileNotFoundError: print('File {} not found'.format(logf)) return None count(logf1) count(logf2) print('PrimeGrid Task Summary for {}, at {}'.format(os.uname()[1], datetime.now())) print('Total tasks = {} | Lines in log file = {}'.format(sum(cnt.values()), nb_lines)) for (k, v) in sorted(cnt.items()): print('{0:15s}: {1:8d}'.format(k, v))

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13955
ID: 53948
Credit: 392,890,430
RAC: 184,027
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de PrimesFound 1 prime in the 2022 Tour de Primes Mountain StageFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,638,389)Cullen LLR Turquoise: Earned 5,000,000 credits (5,513,946)ESP LLR Turquoise: Earned 5,000,000 credits (7,150,009)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,094,541)PPS LLR Sapphire: Earned 20,000,000 credits (24,049,916)PSP LLR Turquoise: Earned 5,000,000 credits (7,956,186)SoB LLR Sapphire: Earned 20,000,000 credits (36,067,618)SR5 LLR Jade: Earned 10,000,000 credits (17,366,672)SGS LLR Turquoise: Earned 5,000,000 credits (6,361,962)TRP LLR Turquoise: Earned 5,000,000 credits (6,308,522)Woodall LLR Turquoise: Earned 5,000,000 credits (6,390,624)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,885,121)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,902,645)GFN Double Bronze: Earned 100,000,000 credits (106,801,850)WW Emerald: Earned 50,000,000 credits (88,580,000)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 130290 - Posted: 9 Jun 2019 | 17:12:05 UTC - in response to Message 130281.

My pleasure everyone!

Thank you for the lines Michael! I will make those changes and re-issue the file shortly. Before doing that though, just curious; is there an ESP and SoB Sieve as well, or do those tasks get counted under the PSP Sieve? If they are counted under PSP I will change the name to "ESP/PSP/SoB Sieve" to reflect the naming on the Task Status page. Otherwise I will leave it as-is.

Thanks!

Kellen


ESP/PSP/SOB were all the same sieve project.
____________
My lucky number is 75898524288+1

Kellen
Send message
Joined: 10 Jan 18
Posts: 484
ID: 967938
Credit: 1,600,003,090
RAC: 0
Discovered 2 mega primes321 LLR Sapphire: Earned 20,000,000 credits (20,008,344)Cullen LLR Sapphire: Earned 20,000,000 credits (20,000,917)ESP LLR Sapphire: Earned 20,000,000 credits (20,001,144)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,011,942)PPS LLR Sapphire: Earned 20,000,000 credits (20,000,023)PSP LLR Sapphire: Earned 20,000,000 credits (20,008,714)SoB LLR Sapphire: Earned 20,000,000 credits (20,035,621)SR5 LLR Sapphire: Earned 20,000,000 credits (20,004,459)SGS LLR Sapphire: Earned 20,000,000 credits (20,000,002)TRP LLR Sapphire: Earned 20,000,000 credits (20,000,236)Woodall LLR Sapphire: Earned 20,000,000 credits (20,017,137)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,000,569)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,006,424)PPS Sieve Sapphire: Earned 20,000,000 credits (49,900,913)AP 26/27 Sapphire: Earned 20,000,000 credits (45,002,633)GFN Double Silver: Earned 200,000,000 credits (200,000,012)WW Sapphire: Earned 20,000,000 credits (45,004,000)PSA Double Amethyst: Earned 1,000,000,000 credits (1,000,000,000)
Message 130293 - Posted: 9 Jun 2019 | 17:44:14 UTC - in response to Message 130290.

Thanks!

It has now been updated and I ended up with two versions based on different user preferences (and probably different job log file sizes). My job logs are pretty big and it takes a while to run through everything, so with echo off I was prone to thinking that something broke, but I can definitely see how having echo off would be desirable in many cases, so I made two :)

For the version that runs the same way the original did (ie. shows everything in the command window, then opens the file at the end) the link is here;

https://drive.google.com/open?id=1bHaAa_pfiwiftTTvlkxpKi8gglGbRK_y

For the version that runs a little "quieter" and doesn't pop the file open in the end, the link is here;

https://drive.google.com/open?id=17Lv2CwFhqjrWJzS3IADD1MZzS2uOd9Zv

Both now include the older sieves that I was missing. Thanks again Michael!

darkclownProject donor
Volunteer tester
Send message
Joined: 3 Oct 06
Posts: 328
ID: 3605
Credit: 1,422,865,129
RAC: 250,840
Discovered 2 mega primesFound 2 primes in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (18,760,228)Cullen LLR Jade: Earned 10,000,000 credits (11,686,610)ESP LLR Jade: Earned 10,000,000 credits (10,733,214)Generalized Cullen/Woodall LLR Jade: Earned 10,000,000 credits (10,096,036)PPS LLR Sapphire: Earned 20,000,000 credits (39,032,660)PSP LLR Jade: Earned 10,000,000 credits (11,093,288)SoB LLR Jade: Earned 10,000,000 credits (12,524,203)SR5 LLR Sapphire: Earned 20,000,000 credits (23,555,930)SGS LLR Jade: Earned 10,000,000 credits (10,101,262)TPS LLR (retired) Bronze: Earned 10,000 credits (14,608)TRP LLR Jade: Earned 10,000,000 credits (11,325,869)Woodall LLR Sapphire: Earned 20,000,000 credits (20,084,975)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (25,014,763)Generalized Cullen/Woodall Sieve (suspended) Jade: Earned 10,000,000 credits (10,370,445)PPS Sieve Double Silver: Earned 200,000,000 credits (203,057,616)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Gold: Earned 500,000 credits (718,547)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,027,562)AP 26/27 Double Bronze: Earned 100,000,000 credits (106,797,720)GFN Double Bronze: Earned 100,000,000 credits (174,835,449)WW Double Gold: Earned 500,000,000 credits (500,248,000)PSA Double Silver: Earned 200,000,000 credits (221,782,985)
Message 130306 - Posted: 10 Jun 2019 | 4:36:36 UTC

Awesome little script! Thanks Kellen!
____________
My lucky #: 60133106^131072+1 (GFN 17-mega)

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1141
ID: 55391
Credit: 1,024,759,473
RAC: 1,703,156
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (8,509,886)Cullen LLR Amethyst: Earned 1,000,000 credits (1,802,747)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Sapphire: Earned 20,000,000 credits (41,640,024)PSP LLR Turquoise: Earned 5,000,000 credits (6,694,660)SoB LLR Emerald: Earned 50,000,000 credits (50,125,659)SR5 LLR Turquoise: Earned 5,000,000 credits (6,710,557)SGS LLR Turquoise: Earned 5,000,000 credits (5,780,517)TRP LLR Turquoise: Earned 5,000,000 credits (7,573,700)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (502,721,222)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Sapphire: Earned 20,000,000 credits (38,749,892)GFN Emerald: Earned 50,000,000 credits (88,018,281)WW Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 130310 - Posted: 10 Jun 2019 | 6:25:54 UTC
Last modified: 10 Jun 2019 | 6:30:34 UTC

The spirit of shell usage in Linux is to reuse existing tools and write little new software.
This bash two-liner will work on any flavour of Linux.
You'll notice that I threw in plenty of unnecessary spaces for readability.

echo PrimeGrid Task Summary for $(uname -n), at $(date); cut -d ' ' -f 9 /var/lib/boinc*/job_log_www.primegrid.com.txt | sed 's/_[0-9].*//' | perl -e 'chomp(@a=<>); $cnt{$_}++ for @a; printf "%-15s%8d\n", $_, $cnt{$_} for sort keys %cnt;'

whynot
Send message
Joined: 9 Mar 11
Posts: 127
ID: 89957
Credit: 46,079,768
RAC: 3,061
321 LLR Gold: Earned 500,000 credits (587,721)Cullen LLR Silver: Earned 100,000 credits (434,353)ESP LLR Silver: Earned 100,000 credits (228,370)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (133,139)PPS LLR Gold: Earned 500,000 credits (912,747)PSP LLR Amethyst: Earned 1,000,000 credits (1,872,641)SoB LLR Sapphire: Earned 20,000,000 credits (37,948,798)SR5 LLR Silver: Earned 100,000 credits (221,631)SGS LLR Bronze: Earned 10,000 credits (68,763)TRP LLR Gold: Earned 500,000 credits (542,327)Woodall LLR Gold: Earned 500,000 credits (783,073)Generalized Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (120,713)PPS Sieve Gold: Earned 500,000 credits (636,552)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (102,989)TRP Sieve (suspended) Silver: Earned 100,000 credits (139,663)AP 26/27 Silver: Earned 100,000 credits (165,763)GFN Amethyst: Earned 1,000,000 credits (1,178,903)
Message 130425 - Posted: 15 Jun 2019 | 16:46:45 UTC - in response to Message 130310.

The spirit of shell usage in Linux is to reuse existing tools and write little new software.
This bash two-liner will work on any flavour of Linux.
You'll notice that I threw in plenty of unnecessary spaces for readability.

echo PrimeGrid Task Summary for $(uname -n), at $(date); cut -d ' ' -f 9 /var/lib/boinc*/job_log_www.primegrid.com.txt | sed 's/_[0-9].*//' | perl -e 'chomp(@a=<>); $cnt{$_}++ for @a; printf "%-15s%8d\n", $_, $cnt{$_} for sort keys %cnt;'


That's what always puzzled me about bash-types. If you are sliding to perl anyway, why would you keep cut, sed, and whatnot. Do it with perl!

perl -nle ' $aa=(split / /)[8]; $aa=~s{_[0-9Me._]+$}{}; $ab{$aa}++; END { printf "%-16s%8d\n", $_, $ab{$_} foreach sort keys %ab }' \ /var/lib/boinc*/job_log_www.primegrid.com.txt


Yes, it can be made shorter but that's not the point. Yes, you can do multiline quoted strings, even with bash. Also, '[0-9Me._]' bears 'M', 'e', and '.' for a reason.

p.s. Also, worth noting. You don't need perl for this. Modern shells, even bash, provide associative arrays and printf for eternity.

____________
I'm counting for science,
Points just make me sick.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1141
ID: 55391
Credit: 1,024,759,473
RAC: 1,703,156
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (8,509,886)Cullen LLR Amethyst: Earned 1,000,000 credits (1,802,747)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Sapphire: Earned 20,000,000 credits (41,640,024)PSP LLR Turquoise: Earned 5,000,000 credits (6,694,660)SoB LLR Emerald: Earned 50,000,000 credits (50,125,659)SR5 LLR Turquoise: Earned 5,000,000 credits (6,710,557)SGS LLR Turquoise: Earned 5,000,000 credits (5,780,517)TRP LLR Turquoise: Earned 5,000,000 credits (7,573,700)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (502,721,222)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Sapphire: Earned 20,000,000 credits (38,749,892)GFN Emerald: Earned 50,000,000 credits (88,018,281)WW Sapphire: Earned 20,000,000 credits (20,000,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 130456 - Posted: 17 Jun 2019 | 11:52:58 UTC - in response to Message 130425.

The spirit of shell usage in Linux is to reuse existing tools and write little new software.
This bash two-liner will work on any flavour of Linux.
You'll notice that I threw in plenty of unnecessary spaces for readability.

echo PrimeGrid Task Summary for $(uname -n), at $(date); cut -d ' ' -f 9 /var/lib/boinc*/job_log_www.primegrid.com.txt | sed 's/_[0-9].*//' | perl -e 'chomp(@a=<>); $cnt{$_}++ for @a; printf "%-15s%8d\n", $_, $cnt{$_} for sort keys %cnt;'


That's what always puzzled me about bash-types. If you are sliding to perl anyway, why would you keep cut, sed, and whatnot. Do it with perl!

perl -nle ' $aa=(split / /)[8]; $aa=~s{_[0-9Me._]+$}{}; $ab{$aa}++; END { printf "%-16s%8d\n", $_, $ab{$_} foreach sort keys %ab }' \ /var/lib/boinc*/job_log_www.primegrid.com.txt


Yes, it can be made shorter but that's not the point. Yes, you can do multiline quoted strings, even with bash. Also, '[0-9Me._]' bears 'M', 'e', and '.' for a reason.

p.s. Also, worth noting. You don't need perl for this. Modern shells, even bash, provide associative arrays and printf for eternity.

That's the ticket. I've never used an END block so I didn't see how to get the summary from perl with -nle.

Message boards : Number crunching : PrimeGrid Task Summary Generator

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 3.37, 2.25, 1.90
Generated 30 Mar 2023 | 23:50:20 UTC