CPUid matching to Computer/Processor

Moderators: Site Moderators, FAHC Science Team

Post Reply
SandyG
Posts: 108
Joined: Mon Apr 13, 2020 11:15 pm
Hardware configuration: 2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

[img]https://folding.extremeoverclocking.com/sigs/sigimage.php?u=1172112[/img]
Contact:

CPUid matching to Computer/Processor

Post by SandyG »

I have been looking at this page that give current CPU results. Is their a way from the folding client to see this generated ID?

https://apps.foldingathome.org/cpu?user=xxxx

I have a bunch of Linux and Windows boxes with similar hardware and trying to match them up. Other them watching for a completed result and matching in the list to find the CPUid I can't seem to find it in the logs in FAHControl.

Also any way to see the last results return like this but for all the responses return (say last 100), the page above shows it as rolled up so while a fast GPU will show only the most recent, but would like to see all returned responses (and points) for the day as an example use case.

Thanks

Sandy
2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

Image
bikeaddict
Posts: 187
Joined: Sun May 03, 2020 1:20 am

Re: CPUid matching to Computer/Processor

Post by bikeaddict »

The Project, Run, Clone and Gen shown on the Recent CPUs page can be found in the log file generated on your machines. The file at /var/lib/fahclient/logs/log.txt (Fedora Linux, not sure about other distros or on Windows) will have lines like this:

Code: Select all

23:30:47:WU01:FS01:Sending unit results: id:01 state:SEND error:NO_ERROR project:18448 run:2 clone:40 gen:420 core:0x22 unit:0x00000028000001a40000481000000002

Code: Select all

23:30:48:WU00:FS01:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:18448 run:3 clone:64 gen:200 core:0x22 unit:0x00000040000000c80000481000000003

Code: Select all

20:32:35:WU01:FS01:0x22:Project: 18601 (Run 1970, Clone 4, Gen 39)
bikeaddict
Posts: 187
Joined: Sun May 03, 2020 1:20 am

Re: CPUid matching to Computer/Processor

Post by bikeaddict »

Seeing all the results for a day in one place might require a script that pulls all the logs to one location with scp or a Windows file share and then using grep to filter the logs by looking for "Core Shutdown" or "Final credit estimate" lines.

I had started working on a script to do that a long time ago, but the timestamp format only has a time and no date. So it's difficult to tell what day a line is for since the log could have multiple days of results with overlapping times.
SandyG
Posts: 108
Joined: Mon Apr 13, 2020 11:15 pm
Hardware configuration: 2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

[img]https://folding.extremeoverclocking.com/sigs/sigimage.php?u=1172112[/img]
Contact:

Re: CPUid matching to Computer/Processor

Post by SandyG »

bikeaddict wrote: Sat Jan 28, 2023 11:53 pm The Project, Run, Clone and Gen shown on the Recent CPUs page can be found in the log file generated on your machines. The file at /var/lib/fahclient/logs/log.txt (Fedora Linux, not sure about other distros or on Windows) will have lines like this:

Code: Select all

23:30:47:WU01:FS01:Sending unit results: id:01 state:SEND error:NO_ERROR project:18448 run:2 clone:40 gen:420 core:0x22 unit:0x00000028000001a40000481000000002

Code: Select all

23:30:48:WU00:FS01:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:18448 run:3 clone:64 gen:200 core:0x22 unit:0x00000040000000c80000481000000003

Code: Select all

20:32:35:WU01:FS01:0x22:Project: 18601 (Run 1970, Clone 4, Gen 39)
I don't think those get the CPUid as in the webpage has, the CPUid is something like - 677ECC63D230704C

I didn't see anything in the machine logs (from the log view in FAHControl) that would give me a clue how to match them up besides the work unit size.
2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

Image
SandyG
Posts: 108
Joined: Mon Apr 13, 2020 11:15 pm
Hardware configuration: 2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

[img]https://folding.extremeoverclocking.com/sigs/sigimage.php?u=1172112[/img]
Contact:

Re: CPUid matching to Computer/Processor

Post by SandyG »

bikeaddict wrote: Sun Jan 29, 2023 12:03 am Seeing all the results for a day in one place might require a script that pulls all the logs to one location with scp or a Windows file share and then using grep to filter the logs by looking for "Core Shutdown" or "Final credit estimate" lines.

I had started working on a script to do that a long time ago, but the timestamp format only has a time and no date. So it's difficult to tell what day a line is for since the log could have multiple days of results with overlapping times.
Actually doesn't need to be a day, but last 100 or so, not sure how to get that. I saw some endpoints you can hit with curl to extract some data, but didn't see any that would let me get my results or most recent results not just the coalesced results over the last 90 days.

Do you have a link to the endpoint info or how to pull the file of data that might have that?

Sandy
2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

Image
bikeaddict
Posts: 187
Joined: Sun May 03, 2020 1:20 am

Re: CPUid matching to Computer/Processor

Post by bikeaddict »

SandyG wrote: Sun Jan 29, 2023 12:51 am I don't think those get the CPUid as in the webpage has, the CPUid is something like - 677ECC63D230704C

I didn't see anything in the machine logs (from the log view in FAHControl) that would give me a clue how to match them up besides the work unit size.
The CPUid is stored on each machine in a SQLite database at /var/lib/fahclient/work/client.db (Linux) in the Config table. The value in mine doesn't match what's shown on https://apps.foldingathome.org/cpu but it says the value is UserID+MachineID. Not sure how it calculates that hex value.

The database value can be queried from a shell script with a command like this on a copy of the database since the real one is locked.

Code: Select all

sqlite3 /tmp/client.db "select value from Config where name='id'"
SandyG
Posts: 108
Joined: Mon Apr 13, 2020 11:15 pm
Hardware configuration: 2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

[img]https://folding.extremeoverclocking.com/sigs/sigimage.php?u=1172112[/img]
Contact:

Re: CPUid matching to Computer/Processor

Post by SandyG »

The CPUid is stored on each machine in a SQLite database at /var/lib/fahclient/work/client.db (Linux) in the Config table. The value in mine doesn't match what's shown on https://apps.foldingathome.org/cpu but it says the value is UserID+MachineID. Not sure how it calculates that hex value.

The database value can be queried from a shell script with a command like this on a copy of the database since the real one is locked.

Code: Select all

sqlite3 /tmp/client.db "select value from Config where name='id'"
I took a look at one of my linux brix's client.db and doesn't look like it's obvious how they convert that to the hex on the website. Might be a lost cause trying to do it that way. Any pointers how to pull the data file or info on the script that could be used to do it. Might be easier just to take the file and write a simple script to parse my data out of it into a db or something where I can mine the data from it as needed.
2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

Image
toTOW
Site Moderator
Posts: 6296
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: CPUid matching to Computer/Processor

Post by toTOW »

SandyG wrote: Sat Jan 28, 2023 10:43 pm Also any way to see the last results return like this but for all the responses return (say last 100), the page above shows it as rolled up so while a fast GPU will show only the most recent, but would like to see all returned responses (and points) for the day as an example use case.
Monitor your clients with HFM, and it will track WU history for you : viewtopic.php?t=9903

edit : See this topic too : viewtopic.php?t=34516 (pinned topic in Discussions of General-FAH topics)
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
SandyG
Posts: 108
Joined: Mon Apr 13, 2020 11:15 pm
Hardware configuration: 2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

[img]https://folding.extremeoverclocking.com/sigs/sigimage.php?u=1172112[/img]
Contact:

Re: CPUid matching to Computer/Processor

Post by SandyG »

I gave HFM a go and could not make it work. It's something simple I'm sure. I could not get it to connect to any of the window machines across my home network (I could connect but with odd errors).

Played with the network settings in FAHControl and finally gave up. The problem with HFM is that it doesn't handle errors on creating a connection well, if you try something and get a connection error, you need to restart HFM, delete the connection and try again. Also lots of issues with it not updated connection information and locks or out of synch in it's internal db. Gave up for now, but will give it a go again at some point.
2 Shuttle i9's with RTX3060, Old server mobo, Mint Linux with 2 RTX3090's and 2 RTX 4090. Dell 7920 RTX3060, RTX4070

Image
Post Reply