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

This forum contains information about 3rd party applications which may be of use to those who run the FAH client and one place where you might be able to get help when using one of those apps.

Moderator: Site Moderators

Post Reply
drkameleon
Posts: 26
Joined: Sun Apr 06, 2008 9:40 pm
Location: Greece
Contact:

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

Post 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!
Non est vivere, sed valere vita est.
----------------------------------------------------
My blog ---> http://kameleon-nest.blogspot.com
uncle_fungus
Site Admin
Posts: 1288
Joined: Fri Nov 30, 2007 9:37 am
Location: Oxfordshire, UK

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

Post 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.
drkameleon
Posts: 26
Joined: Sun Apr 06, 2008 9:40 pm
Location: Greece
Contact:

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

Post 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?
Non est vivere, sed valere vita est.
----------------------------------------------------
My blog ---> http://kameleon-nest.blogspot.com
uncle_fungus
Site Admin
Posts: 1288
Joined: Fri Nov 30, 2007 9:37 am
Location: Oxfordshire, UK

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

Post 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
drkameleon
Posts: 26
Joined: Sun Apr 06, 2008 9:40 pm
Location: Greece
Contact:

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

Post by drkameleon »

ok thnx fungus! I've figured it out!
Non est vivere, sed valere vita est.
----------------------------------------------------
My blog ---> http://kameleon-nest.blogspot.com
smoking2000
Posts: 471
Joined: Mon Dec 03, 2007 6:20 am
Location: Amsterdam
Contact:

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

Post 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
drkameleon
Posts: 26
Joined: Sun Apr 06, 2008 9:40 pm
Location: Greece
Contact:

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

Post 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:
Non est vivere, sed valere vita est.
----------------------------------------------------
My blog ---> http://kameleon-nest.blogspot.com
drkameleon
Posts: 26
Joined: Sun Apr 06, 2008 9:40 pm
Location: Greece
Contact:

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

Post 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?)
Non est vivere, sed valere vita est.
----------------------------------------------------
My blog ---> http://kameleon-nest.blogspot.com
smoking2000
Posts: 471
Joined: Mon Dec 03, 2007 6:20 am
Location: Amsterdam
Contact:

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

Post 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 :)
tomherry
Posts: 1
Joined: Tue Apr 15, 2008 8:27 am

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

Post by tomherry »

smartcat99s
Posts: 14
Joined: Sun Dec 02, 2007 7:32 pm

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

Post 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.
Image
drkameleon
Posts: 26
Joined: Sun Apr 06, 2008 9:40 pm
Location: Greece
Contact:

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

Post 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
Non est vivere, sed valere vita est.
----------------------------------------------------
My blog ---> http://kameleon-nest.blogspot.com
Post Reply