Page 1 of 1
(Query for) Figuring out how many CPU vs GPU WUs I folded?
Posted: Mon Apr 27, 2020 4:28 pm
by BP2020
I can see that the FAHClient directory has the log for the current session and there is a log directory which seemingly archives logs per date. Do you know of a simple method or query using common file/text tools (Unix/Linux) which could provide me with a count of CPU vs. GPU WUs I folded (successfully)? Any idea for Windows 10?
Re: (Query for) Figuring out how many CPU vs GPU WUs I folde
Posted: Mon Apr 27, 2020 5:36 pm
by parkut
in my system looking in directory /var/lib/fahclient/logs/
the command below will give a quick listing of all work units
uploaded and the estimated credit for each
egrep "Final credit|Sending unit" *
the following command will filter out thef GPU projects (File slot 01)
egrep "Final credit|Sending unit" * | grep FS01
add a count argument will give the number sent
egrep "Final credit|Sending unit" * | grep FS01 | grep -c Final
Change FS01 to FS00 for the CPU projects
(at least on my system, your slot assignment may be different)
Re: (Query for) Figuring out how many CPU vs GPU WUs I folde
Posted: Mon Apr 27, 2020 9:28 pm
by Neil-B
Select the log lines with ":Project:" in them … 07:24:41:WU02:FS00:0xa7:Project: 14648 (Run 483, Clone 0, Gen 2) … these appear once at the start of every WU … the code before the ":Project:" indicates CPU or GPU … this line can also be dropped as is into WU Status App - allows for checking WU has been processed for stats and of points actually awarded.
Re: (Query for) Figuring out how many CPU vs GPU WUs I folde
Posted: Tue Apr 28, 2020 4:14 am
by BP2020
Thanks! Well, I suggest rather lines such as these ones:
Code: Select all
19:56:54:WU01:FS00:Sending unit results: id:01 state:SEND error:NO_ERROR project:14616 run:737 clone:1 gen:61 core:0xa7 unit:
19:58:40:WU01:FS00:Upload complete
19:58:41:WU01:FS00:Server responded WORK_ACK (400)
That's because it must be a successful completion... Plus you have the core thing (0xa7) which is not the same for the GPU (0x22) (I speculate every CPU slot will be 0xa7 and every GPU will be 0x22; I don't know because I have one CPU and one GPU slot only). So a query could be constructed which is "slot configuration"-independent. The
Sending unit,
The Upload complete and
WORK_ACK lines may not be contiguous. Most likely this is again a thing for
awk, which I'm terrible with, although not much better with
grep either; generally poor with file/text tools and I don't have the platform to test them anyways at the moment. Anyways, I guess in Windows you need some batch file...
Re: (Query for) Figuring out how many CPU vs GPU WUs I folde
Posted: Tue Apr 28, 2020 4:29 am
by Rel25917
There are still some old pre covid projects that could be gpu core 21.
Re: (Query for) Figuring out how many CPU vs GPU WUs I folde
Posted: Tue Apr 28, 2020 7:40 am
by Neil-B
Ah, well you see, I use the ":Project:" line as I also monitor the number of incompletes and want to pull the real points and duration from the WU Status Page - that line has all the data I need for that in a single line that allows me to generate links such as "
https://apps.foldingathome.org/wu#proje ... e=13&gen=6" to do just that … it kind of comes down to precisely what you are setting out to do as to where you choose to get you data from