(Query for) Figuring out how many CPU vs GPU WUs I folded?

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
BP2020
Posts: 46
Joined: Sun Apr 19, 2020 9:53 pm

(Query for) Figuring out how many CPU vs GPU WUs I folded?

Post 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?
Image
Intel Core i5-2500K CPU @ 3.30GHz @ 98%, 4 cores
Asus ROG STRIX RX480 8Gb
parkut
Posts: 364
Joined: Tue Feb 12, 2008 7:33 am
Hardware configuration: Running exclusively Linux headless blades. All are dedicated crunching machines.
Location: SE Michigan, USA

Re: (Query for) Figuring out how many CPU vs GPU WUs I folde

Post 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)
Neil-B
Posts: 2027
Joined: Sun Mar 22, 2020 5:52 pm
Hardware configuration: 1: 2x Xeon E5-2697v3@2.60GHz, 512GB DDR4 LRDIMM, SSD Raid, Win10 Ent 20H2, Quadro K420 1GB, FAH 7.6.21
2: Xeon E3-1505Mv5@2.80GHz, 32GB DDR4, NVME, Win10 Pro 20H2, Quadro M1000M 2GB, FAH 7.6.21 (actually have two of these)
3: i7-960@3.20GHz, 12GB DDR3, SSD, Win10 Pro 20H2, GTX 750Ti 2GB, GTX 1080Ti 11GB, FAH 7.6.21
Location: UK

Re: (Query for) Figuring out how many CPU vs GPU WUs I folde

Post 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.
Last edited by Neil-B on Tue Apr 28, 2020 7:42 am, edited 3 times in total.
2x Xeon E5-2697v3, 512GB DDR4 LRDIMM, SSD Raid, W10-Ent, Quadro K420
Xeon E3-1505Mv5, 32GB DDR4, NVME, W10-Pro, Quadro M1000M
i7-960, 12GB DDR3, SSD, W10-Pro, GTX1080Ti
i9-10850K, 64GB DDR4, NVME, W11-Pro, RTX3070

(Green/Bold = Active)
BP2020
Posts: 46
Joined: Sun Apr 19, 2020 9:53 pm

Re: (Query for) Figuring out how many CPU vs GPU WUs I folde

Post 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...
Image
Intel Core i5-2500K CPU @ 3.30GHz @ 98%, 4 cores
Asus ROG STRIX RX480 8Gb
Rel25917
Posts: 303
Joined: Wed Aug 15, 2012 2:31 am

Re: (Query for) Figuring out how many CPU vs GPU WUs I folde

Post by Rel25917 »

There are still some old pre covid projects that could be gpu core 21.
Neil-B
Posts: 2027
Joined: Sun Mar 22, 2020 5:52 pm
Hardware configuration: 1: 2x Xeon E5-2697v3@2.60GHz, 512GB DDR4 LRDIMM, SSD Raid, Win10 Ent 20H2, Quadro K420 1GB, FAH 7.6.21
2: Xeon E3-1505Mv5@2.80GHz, 32GB DDR4, NVME, Win10 Pro 20H2, Quadro M1000M 2GB, FAH 7.6.21 (actually have two of these)
3: i7-960@3.20GHz, 12GB DDR3, SSD, Win10 Pro 20H2, GTX 750Ti 2GB, GTX 1080Ti 11GB, FAH 7.6.21
Location: UK

Re: (Query for) Figuring out how many CPU vs GPU WUs I folde

Post 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 :)
2x Xeon E5-2697v3, 512GB DDR4 LRDIMM, SSD Raid, W10-Ent, Quadro K420
Xeon E3-1505Mv5, 32GB DDR4, NVME, W10-Pro, Quadro M1000M
i7-960, 12GB DDR3, SSD, W10-Pro, GTX1080Ti
i9-10850K, 64GB DDR4, NVME, W11-Pro, RTX3070

(Green/Bold = Active)
Post Reply