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 : General discussion : Task Monitor

Author Message
Profile Roger
Volunteer developer
Volunteer tester
Avatar
Send message
Joined: 27 Nov 11
Posts: 1138
ID: 120786
Credit: 268,621,444
RAC: 0
Found 1 prime in the 2018 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,037,982)Cullen LLR Ruby: Earned 2,000,000 credits (2,015,907)ESP LLR Ruby: Earned 2,000,000 credits (2,232,391)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,088,705)PPS LLR Ruby: Earned 2,000,000 credits (3,173,285)PSP LLR Ruby: Earned 2,000,000 credits (2,539,644)SoB LLR Ruby: Earned 2,000,000 credits (2,122,524)SR5 LLR Ruby: Earned 2,000,000 credits (2,238,295)SGS LLR Turquoise: Earned 5,000,000 credits (5,024,064)TRP LLR Ruby: Earned 2,000,000 credits (2,125,391)Woodall LLR Ruby: Earned 2,000,000 credits (2,037,732)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,190,731)Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (207,387)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,049,697)PPS Sieve Double Bronze: Earned 100,000,000 credits (100,422,123)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Ruby: Earned 2,000,000 credits (3,227,972)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,021,659)AP 26/27 Sapphire: Earned 20,000,000 credits (20,651,644)GFN Emerald: Earned 50,000,000 credits (57,918,585)PSA Sapphire: Earned 20,000,000 credits (43,298,465)
Message 119982 - Posted: 14 Aug 2018 | 14:22:31 UTC

I've taken an interest in brushing up my programming skills with 3 main fronts:
- OpenCL
- Assembler
- C++
Having a degree in Computer Science and 10 years on the job programming (mostly C and a bit of assembler), I am not without background skills.
However C++ came out while I was at Uni, and was never on the curriculum. I've done a week's C++ course years ago, but without spending time on it, you never really get it. Read a really good book, "C++ Programming in easy steps". Example programs are easy and you really get a good view on the point of C++ that a more in depth reference won't give you.

Never programmed with OpenCL, but got hold of the book "Hetrogeneous Computing with OpenCL 2.0", and managed to get the example programs from the book's website compiled. So I've started studying it. Hope to learn enough to be dangerous.

Assembler should be an easy one, but Windows programming is not so straight forward at the best of times. Hope to keep plugging away at it. Any progress will be good.

Anyway, to consolidate my C++ study I've started a little project. To read the task files in the BOINC data directory. A little program sleeps for 10 minutes then prints a line feed then reads the directory and parses the files it finds. Created a Class fileNameSet, that it compares with the current directory listing and then parses newly found files. Current output of the program on my home PC:
C:\Projects\Monitor Task Status\Task Monitor>Monitor.exe
PPS MEGA task candidate: 967*2^3540308+1
PPS MEGA task candidate: 765*2^3540324+1
PPSE task candidate: 3603*2^1498788+1
PPS task candidate: 921*2^2636464+1
PPS task candidate: 345*2^2636469+1
PPS task candidate: 663*2^2636490+1


llrPPSE_301904759 removed

PPS task candidate: 817*2^2636592+1

llrPPS_303845472 removed
llrPPS_303845534 removed



llrPPS_303845793 removed
PPSE task candidate: 8881*2^1498792+1




PPSE task candidate: 3777*2^1498794+1

Never start a programming project without a design plan. I haven't even completed the first line, but I've got a plan for this project:
22/07/2018
Phase 1
Monitor, user settable duration
Count the tasks, by sub-project and by k
Report min n, max n, density
Display with user settable min n
Option to display by combined k or separate, all n or n=1M sets
Save state into a file, read on open
Ability for user to add data not obtained automatically by the program
Display graphically

Phase 2
Calculate the chance of finding a prime by sub-project and by k
Option to display by combined k or separate
Ability for user to add prime finds to the displayed data
Estimate of average tasks before next prime find
Ability for the user to adjust baseline of these values

Phase 3
Display chance data graphically
Install package
User bug and feature blog
Add other OS support, e.g. Mac, Linux
Add Networking support, i.e. multiple hosts per user
Add other platform support, e.g. Mobile

http://www.primegrid.com/forum_thread.php?id=5168

Anyway, enjoying the brush up in programming skills.

HonzaProject donor
Volunteer moderator
Volunteer tester
Project scientist
Send message
Joined: 15 Aug 05
Posts: 1909
ID: 352
Credit: 4,365,493,667
RAC: 5,185,549
Discovered 8 mega primesEliminated 4 conjecture "k"sFound 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes largest primeFound 4 primes in the 2019 Tour de PrimesFound 1 mega prime in the 2019 Tour de PrimesFound 1 prime in the 2019 Tour de Primes Mountain StageFound 1 prime in the 2020 Tour de PrimesFound 4 primes in the 2021 Tour de PrimesFound 1 mega prime in the 2021 Tour de PrimesFound 1 prime in the 2021 Tour de Primes Mountain Stage321 LLR Double Bronze: Earned 100,000,000 credits (100,425,701)Cullen LLR Double Bronze: Earned 100,000,000 credits (101,538,484)ESP LLR Double Bronze: Earned 100,000,000 credits (100,642,296)Generalized Cullen/Woodall LLR Double Bronze: Earned 100,000,000 credits (100,612,558)PPS LLR Double Bronze: Earned 100,000,000 credits (155,845,417)PSP LLR Emerald: Earned 50,000,000 credits (77,932,019)SoB LLR Double Bronze: Earned 100,000,000 credits (113,220,736)SR5 LLR Double Bronze: Earned 100,000,000 credits (101,883,529)SGS LLR Emerald: Earned 50,000,000 credits (55,593,166)TPS LLR (retired) Bronze: Earned 10,000 credits (43,033)TRP LLR Double Bronze: Earned 100,000,000 credits (100,338,924)Woodall LLR Emerald: Earned 50,000,000 credits (50,956,094)321 Sieve (suspended) Double Bronze: Earned 100,000,000 credits (115,948,450)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,142,109)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,504,945)PPS Sieve Double Gold: Earned 500,000,000 credits (513,057,580)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,288,222)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,149,354)AP 26/27 Double Silver: Earned 200,000,000 credits (232,724,773)GFN Double Gold: Earned 500,000,000 credits (789,218,857)WW Double Amethyst: Earned 1,000,000,000 credits (1,025,352,000)PSA Double Gold: Earned 500,000,000 credits (535,232,795)
Message 119983 - Posted: 14 Aug 2018 | 14:30:08 UTC
Last modified: 14 Aug 2018 | 14:30:37 UTC

As I understand it, it will be specificaly PG BOINC Task monitor, unlike EFMer's BOINCTasks

Nice one, looking foward...
____________
My stats
Badge score: 1*1 + 5*1 + 8*3 + 9*11 + 10*1 + 11*1 + 12*3 = 186

Profile Eudy SilvaProject donor
Avatar
Send message
Joined: 26 Aug 17
Posts: 1538
ID: 918937
Credit: 340,870,279
RAC: 188,411
Discovered 2 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 Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,291,013)ESP LLR Amethyst: Earned 1,000,000 credits (1,151,976)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Jade: Earned 10,000,000 credits (19,857,871)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 (2,954,518)SGS LLR Amethyst: Earned 1,000,000 credits (1,462,951)TRP LLR Amethyst: Earned 1,000,000 credits (1,574,163)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)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 Emerald: Earned 50,000,000 credits (68,690,867)AP 26/27 Emerald: Earned 50,000,000 credits (50,096,813)GFN Emerald: Earned 50,000,000 credits (78,674,887)WW Double Bronze: Earned 100,000,000 credits (104,012,000)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 119984 - Posted: 14 Aug 2018 | 14:47:05 UTC
Last modified: 14 Aug 2018 | 14:57:09 UTC

Roger, I am a layman compared to you.
Anyway, may I suggest that instead of sleeping for 10 minutes, you could use an OS feature to "watch" a certain directory and get notifications of changes, like file creation, deletion and file modifications.
I know Windows has such feature and I believe others OS'es also do.

I've used this "file system watch" feature in a little program I've devleoped and I can inspect PG result files before they are uploaded to PG's servers and deleted from my computer. I peek their contents and write them to a log file.
This way I can know, in advance, if a task found a prime or not.
(Oh, I'm aware that a prime finding needs further confirmation.)
Anyway, it's nice to see the contents of a result file.
For example, some parts of my log file:

2018/07/23 20:24:32 pps_sr2sieve_115075584_0 2018/07/23 20:24:32 378357925292237981 | 4917*2^6266561-1 2018/07/23 20:24:32 378357925532317541 | 9769*2^7198586+1 2018/07/23 20:24:32 378357926165314157 | 4287*2^7545272-1 2018/07/23 20:24:32 378357931285613221 | 3209*2^6962324-1 2018/07/23 20:24:32 378357931705318031 | 4089*2^6010347+1 2018/07/23 20:24:39 pps_sr2sieve_115075584_0 2018/07/23 20:59:21 genefer16_17458649_1 2018/07/23 20:59:21 41176520^65536+1 is composite. (RES=9d234ec15c6c5c2b) (499034 digits) (err = 0.0000) (time = 0:03:24) 17:59:21 2018/07/23 20:59:27 genefer16_17458649_1 2018/07/23 21:10:50 genefer17mega_18028281_1 2018/07/23 21:10:50 52492900^131072+1 is composite. (RES=538a22ff8c40d14e) (1011890 digits) (err = 0.0000) (time = 0:11:18) 18:10:50 2018/07/23 21:10:56 genefer17mega_18028281_1 2018/07/23 22:40:15 llrPSP_299631569_3 2018/07/23 22:40:15 152267*2^19894227+1 is not prime. Proth RES64: D3D4F92FD0751315 Time : 56553.574 sec. 2018/07/23 22:40:22 llrPSP_299631569_3 2018/07/23 22:50:51 ap27_1076795_0 2018/07/23 22:50:51 07D925430056E37B 2018/07/23 22:50:57 ap27_1076795_0 2018/07/25 09:59:29 llrGCW_303686429_1 2018/07/25 09:59:29 462426*5^4624261+1 is not prime. RES64: A9FB7A9FAB0D5E2F. OLD64: EF004ACFB28F3144 Time : 16186.981 sec. 2018/07/25 09:59:35 llrGCW_303686429_1 2018/08/14 02:28:28 llrPPS_303772378_2 2018/08/14 02:28:28 725*2^2630865+1 is not prime. Proth RES64: 01F1B0EB7CBB17BC Time : 1652.087 sec. 2018/08/14 02:28:34 llrPPS_303772378_2 2018/08/08 20:27:07 ap27_1100623_1 2018/08/08 20:30:44 21 67292606 117232957753467973 2018/08/08 21:06:12 08059BE500627002 2018/08/08 21:06:18 ap27_1100623_1 2018/08/08 21:20:39 ap27_1100704_1 2018/08/08 21:25:50 22 67297532 306077194261245881 2018/08/08 21:48:05 0805C21C00565B5B 2018/08/08 21:48:10 ap27_1100704_1 2018/08/08 22:22:52 llrSR5_302966081_0 2018/08/08 22:22:52 322498*5^2635729-1 is not prime. RES64: A5B4961A55142BFB. OLD64: 3521C7DA5541F1A5 Time : 4901.440 sec. 2018/08/08 22:23:00 llrSR5_302966081_0

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

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13648
ID: 53948
Credit: 285,237,625
RAC: 54,414
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 1 mega primeFound 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 Primes321 LLR Turquoise: Earned 5,000,000 credits (5,132,712)Cullen LLR Turquoise: Earned 5,000,000 credits (5,038,114)ESP LLR Turquoise: Earned 5,000,000 credits (6,177,890)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,234,442)PPS LLR Sapphire: Earned 20,000,000 credits (20,751,038)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 (10,007,110)SGS LLR Ruby: Earned 2,000,000 credits (3,718,606)TRP LLR Turquoise: Earned 5,000,000 credits (5,084,329)Woodall LLR Turquoise: Earned 5,000,000 credits (5,007,789)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,118,303)GFN Emerald: Earned 50,000,000 credits (78,031,938)WW Sapphire: Earned 20,000,000 credits (32,204,000)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 119986 - Posted: 14 Aug 2018 | 16:43:22 UTC

Have you considered using RPCs to the BOINC manager instead of reading the data files? (i.e., the same method used by the BOINC Manager and by BOINC Tasks.)

Advantages:
1) Possibly less likely to be affected by changes in future version of BOINC.
2) You can monitor multiple computers simultaneously.
3) No chance of breaking BOINC by accidently having an inadvertent lock on a file that BOINC needs to overwrite.

Disadvantages:
1) You may be limited to a smaller subset of data.
____________
My lucky number is 75898524288+1

Profile Roger
Volunteer developer
Volunteer tester
Avatar
Send message
Joined: 27 Nov 11
Posts: 1138
ID: 120786
Credit: 268,621,444
RAC: 0
Found 1 prime in the 2018 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,037,982)Cullen LLR Ruby: Earned 2,000,000 credits (2,015,907)ESP LLR Ruby: Earned 2,000,000 credits (2,232,391)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,088,705)PPS LLR Ruby: Earned 2,000,000 credits (3,173,285)PSP LLR Ruby: Earned 2,000,000 credits (2,539,644)SoB LLR Ruby: Earned 2,000,000 credits (2,122,524)SR5 LLR Ruby: Earned 2,000,000 credits (2,238,295)SGS LLR Turquoise: Earned 5,000,000 credits (5,024,064)TRP LLR Ruby: Earned 2,000,000 credits (2,125,391)Woodall LLR Ruby: Earned 2,000,000 credits (2,037,732)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,190,731)Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (207,387)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,049,697)PPS Sieve Double Bronze: Earned 100,000,000 credits (100,422,123)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Ruby: Earned 2,000,000 credits (3,227,972)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,021,659)AP 26/27 Sapphire: Earned 20,000,000 credits (20,651,644)GFN Emerald: Earned 50,000,000 credits (57,918,585)PSA Sapphire: Earned 20,000,000 credits (43,298,465)
Message 119991 - Posted: 15 Aug 2018 | 4:04:50 UTC - in response to Message 119986.

Have you considered using RPCs to the BOINC manager instead of reading the data files? (i.e., the same method used by the BOINC Manager and by BOINC Tasks.)

Advantages:
1) Possibly less likely to be affected by changes in future version of BOINC.
2) You can monitor multiple computers simultaneously.
3) No chance of breaking BOINC by accidently having an inadvertent lock on a file that BOINC needs to overwrite.

Disadvantages:
1) You may be limited to a smaller subset of data.


In order to implement that you need to compile BOINC as the first step. Instructions on how to do that on the BOINC website. For Windows:
https://boinc.berkeley.edu/trac/wiki/CompileAppWin
Then you need to get your head around BOINC and write an application.
All doable, but stand alone application is the low hanging fruit.
If I get far I can add an interface with BOINC later.
Primary goal at the moment is to work on my programming skills and have fun.

Idea is to provide richer info to the User on what they're crunching. Not trying to be a generalist BOINC monitor. I am not sure you can get much context on what your crunching for other projects. "File system watch" feature worth investigating.

Profile Eudy SilvaProject donor
Avatar
Send message
Joined: 26 Aug 17
Posts: 1538
ID: 918937
Credit: 340,870,279
RAC: 188,411
Discovered 2 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 Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,291,013)ESP LLR Amethyst: Earned 1,000,000 credits (1,151,976)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Jade: Earned 10,000,000 credits (19,857,871)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 (2,954,518)SGS LLR Amethyst: Earned 1,000,000 credits (1,462,951)TRP LLR Amethyst: Earned 1,000,000 credits (1,574,163)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)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 Emerald: Earned 50,000,000 credits (68,690,867)AP 26/27 Emerald: Earned 50,000,000 credits (50,096,813)GFN Emerald: Earned 50,000,000 credits (78,674,887)WW Double Bronze: Earned 100,000,000 credits (104,012,000)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 120001 - Posted: 15 Aug 2018 | 14:21:17 UTC - in response to Message 119991.

... "File system watch" feature worth investigating.

In Windows: https://docs.microsoft.com/en-us/windows/desktop/fileio/obtaining-directory-change-notifications

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

Message boards : General discussion : Task Monitor

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2021 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.61, 1.87, 2.07
Generated 18 Sep 2021 | 7:03:41 UTC