Page 1 of 1

F@H Monitor creation & Info from F@H files...

Posted: Fri Apr 11, 2008 4:12 pm
by drkameleon
I am currently working on a Folding@Home monitor, written in C# (using MonoDevelop IDE), for Linux.

Can you tell me which information (and where i can find it) is provided through F@H files, so I can use it with my program???
WU name?
Points?
Frames?
Progress?
etc...


Is there any documentation concerning that? Can you provide me with any links?

Thnx in advance!!!

KEEP FOLDING!

Re: F@H Monitor creation & Info from F@H files...

Posted: Fri Apr 11, 2008 4:25 pm
by uncle_fungus
Moved the 3rd party contribs

Much of this information is available in the queue.dat file, although not all.
Some info can be found in unitinfo.txt and others in FAHlog.txt

The documentation for queue.dat, and the source for qd which uses this file is available here: http://linuxminded.nl/

Various bits of "documentation" can also be found within the depths of the FahMon source, which I maintain (I use a combination of queue.dat and FAHlog.txt). This can be found here: http://fahmon.net

qd and FahMon also use external data sources such as http://fah-web.stanford.edu/psummary.html to track point values, and core names etc.

Both of the above pieces of software are GPL'd.

Re: F@H Monitor creation & Info from F@H files...

Posted: Fri Apr 11, 2008 7:35 pm
by drkameleon
When I try to open queue.dat with some text edito (e.g. gedit in Linux), I get the following message...
Could not open the file /home/drkameleon/foldingathome/CPU1/queue.dat using the Western (ISO-8859-15) character coding.
Do you have any idea why this happens??? Is it raw data or what?

Re: F@H Monitor creation & Info from F@H files...

Posted: Fri Apr 11, 2008 7:37 pm
by uncle_fungus
drkameleon wrote:When I try to open queue.dat with some text edito (e.g. gedit in Linux), I get the following message...
Could not open the file /home/drkameleon/foldingathome/CPU1/queue.dat using the Western (ISO-8859-15) character coding.
Do you have any idea why this happens??? Is it raw data or what?
It's not human-readable, no.

The format is described here: http://linuxminded.nl/software/qd-tools ... index.html

Re: F@H Monitor creation & Info from F@H files...

Posted: Fri Apr 11, 2008 7:44 pm
by drkameleon
ok thnx fungus! I've figured it out!

Re: F@H Monitor creation & Info from F@H files...

Posted: Fri Apr 11, 2008 8:04 pm
by smoking2000
drkameleon wrote:Can you tell me which information (and where i can find it) is provided through F@H files, so I can use it with my program???
Many of the interesting files for monitoring purposes are described on the FAH Wiki too:
http://fahwiki.net/index.php/FAH_files

The most interesting files being:
http://fahwiki.net/index.php/Queue.dat
http://fahwiki.net/index.php/Client.cfg
http://fahwiki.net/index.php/Unitinfo.txt
http://fahwiki.net/index.php/Wuinfo_XX.dat
http://fahwiki.net/index.php/Logfile_XX.txt

Re: F@H Monitor creation & Info from F@H files...

Posted: Sat Apr 12, 2008 12:41 pm
by drkameleon
Thnx guys!

@smoking : great resources

@fungus : the documentation for queue.dat, as well as the hexdump layout, is a real TREASURE for programmers! great! I am working on it and I hope my work will deliver interesting results REALLY soon.

:wink:

Re: F@H Monitor creation & Info from F@H files...

Posted: Tue Apr 15, 2008 6:21 am
by drkameleon
What you have already told me was REALLY useful...

One more question (for now...) :

By what means, and where from, can I import the current frame being processed?

Till now, the only way i've found out utilisable - even as far as total frames' calculation is concerned - is that "fahmon.wus" (am I mistaking sth?)

Re: F@H Monitor creation & Info from F@H files...

Posted: Tue Apr 15, 2008 8:35 am
by smoking2000
drkameleon wrote:By what means, and where from, can I import the current frame being processed?
The progress of a WU is stored in work/wuinfo_??.dat, the work/logfile_??.txt, FAHlog.txt and unitinfo.txt.

All client monitors fetch the WU progress from one or more of these files. Check out the source code of some of them :)

Re: F@H Monitor creation & Info from F@H files...

Posted: Tue Apr 15, 2008 9:11 am
by tomherry

Re: F@H Monitor creation & Info from F@H files...

Posted: Tue Apr 22, 2008 3:37 pm
by smartcat99s
The hexdumps of queue.dat and wuinfo_XX.dat are probably the most reliable way of getting info about the current WU. unitinfo.txt and FAHlog.txt do provide a lot of information, but they can easily be messed up by the FAH client with some cores (fahlog by SMP, unitinfo by various cores)

When I was monitoring progress through the two text-based logs, I frequently ran into the error where the SMP client would not print a complete PRCG line in the log.


When opening the files in .NET just remember to use a BinaryReader instead of a normal reader.

Re: F@H Monitor creation & Info from F@H files...

Posted: Mon May 05, 2008 6:44 pm
by drkameleon
Thanks for everything guys!

* I converted the whole project in C++ and Qt 4

I promiss that in a few days, i' ll show what my project is about and upload the sources/binaries
Of course, I also hope you like it! :D