PDA

View Full Version : F@H Windows setup guide -56K unfriendly


Ugly n Grey
10-18-2005, 07:34 PM
This thread is under construction.

Xtremesystems.org Stanford Folding at Home (F@H) Guide

Greetings to my fellow folders. I have compiled this information as best I am able in order to better assist with the effort of deploying Folding at Home on your PC(‘s). Feedback, negative and positive as well as suggested additions are welcome.

I have broken this guide down into several sections and I will do my best to cover all areas of immediate importance at first and then minor improvements as the needs arise. This guide was created on Oct 18, 2005 and will be updated with revision dates posted as changes are made. My assumption in this document is that you already understand what F@H is and that you are prepared to fold for xtremesystems.org team 36362. For those of you that stumbled across this page by a Google search or being linked via another site, welcome to XS!!! I also assume you have some experience navigating your OS and installing programs throughout this guide. If you require any specific help, post and someone will answer your questions ASAP.

Note: folding as a process uses a very low thread priority such that when something else is launched the process stops consuming the CPU cycles and allows anything else to run. Launching a game while the client is active works the way it should, the game process gets the CPU priority and the F@H client waits patiently until the cycles are once again free for it to use.

Note: You rig needs to be stable to run F@H. If your rig is superpi 32meg stable then your rig is generally considered F@H stable. This applies to all CPUs.

The common areas I want to cover are;
Deploying on a single processor as a GUI in Windows 2K/XP/2003
Deploying on a single processor as a service in Windows 2K/XP/2003
Deploying on multi CPU systems including AMD x2 or Intel dual core as a service in Windows 2K/XP/2003.

NOTE: Mixing the GUI and command line versions are NOT recommended.


Single GUI Instance
Your rig is a PIII/PIV/AXP/A64/A64x2 processor and you want to run a single instance of folding at home as a GUI. This is the easiest and most visual way to run folding at home. You can download the graphical client from http://folding.stanford.edu/ by clicking on the downloads link ( http://folding.stanford.edu/download.html ) and simply running it from there. Follow the standard wizard for installation nothing special happens until it’s time to configure the client. The default installation settings and directories are fine. The only place you need to enter anything special is in the name field like below.

Enter a name that you would like to use as your folding@home team name, I suggest your forum name, but really you can use whatever is available. You can check for name availability with the name search tool at the top of the Stanford downloads page. You can’t use spaces in your name, you have to use underscores.

http://www.whitesauctions.ca/uglyngrey/install.png

When installation is complete, run the program for the first time and you will see a cog icon appear in the lower right of your screen like so and right clicking on the item will allow you to select configure. In the first configuration tab, make sure your name is correct and that the team you entered is 36362

http://www.whitesauctions.ca/uglyngrey/configGUI1.png

On the Connection tab, you can select various options.
If you are on a limited bandwidth connection or a dial up, you might want the application to ask you before using the internet, if so, check this box. If you need to configure a proxy or want the application to automatically dial the internet just as your Internet Explorer browser may, then select the appropriate boxes. Note that in my client I have enabled the option to download large work packets because the larger packet sizes score higher thus returning more points for the team. I do NOT NOT recommend this for dial up connections as return work units can be around 18-20 Megs at times.

http://www.whitesauctions.ca/uglyngrey/configGUI2.png

The display tab is a series of options for enabling different visuals etc. You can experiment with what pleases you here, it has no real impact on the client performance.

The advanced tab is not really all that advanced, but you can change settings there if you encounter problems or have special needs. For our purposes here, the defaults are fine.

Click OK and save you configuration changes and you are done. If you want to see what is happening, just click on the COG icon to get a visual display. You will see a visual representation of what is going on as well as status messages in the lower left of the screen. You can pause the application at any time by right clicking the cog icon and selecting “pause work”.

Done. Simple , fast and easy.

Run a Single instance as a service

Your rig is a PIII/PIV/AXP/A64/A64x2 processor and you want to run a single instance of folding at home as a service that starts automatically when the computer starts. After all, this is Xtremesystems, who needs that GUI stuff? It also has the advantage of not being in a users line of site in instances where I don’t want them playing with it. (Mom and Dad come to mind). It also starts when the computer starts, no need to log in!

So back to http://folding.stanford.edu/download.html you go and you download only the "No-nonsense" text-only console (with built-in Windows-service-install option).

Make a directory on your disk somewhere. I use the root directory and I call the windows folder something that makes sense to me like “C:\folding” to make life easy. I copy or save the file I downloaded called “FAH502-Console.exe” to this folder.

Now I need to configure it. This is not so hard either. Click Start, select Run type in
C:\folding\fah502-console.exe –configonly and click the OK button

http://www.whitesauctions.ca/uglyngrey/configcmd1.png

You get a screen like this

http://www.whitesauctions.ca/uglyngrey/configcmd2.png

Enter a name that you would like to use as your folding@home team name, I suggest your forum name, but really you can use whatever is available. You can check for name availability with the name search tool at the top of the Stanford downloads page. You can’t use spaces in your name, you have to use underscores.

I recommend you use the defaults unless you require specific changes in your environment. Just answer the questions in the order they appear

User name – Put your own in, use mine if you like :) remember use underscores for spaces
Team Number – 36362
Launch as a service - yes
Ask before fetching/sending – no (may want to say yes if you have a modem or restricted bandwidth)
Use Internet explorer setting – no (yes if you want the app to dial the internet like in the Internet explorer settings)
Use proxy- no (yes if you need to use a proxy of course)
Allow receipt of large work….. – yes (unless you have a dial up connection, then I recommend you say NO, the return work units can be large, up to 20 Meg on return)

http://www.whitesauctions.ca/uglyngrey/configcmd3.png

Change advanced options – Yes (just to see what’s there, you probably don’t need to change any options, but you might want to see them, just hit enter to accept the defaults)

When it finished being configured, the screen closed. Am I done? Maybe – the configonly switch we entered means the program only started up so that we could configure it correctly but it is not doing anything yet. At this point we have a choice to leave it as it is or to configure it further. It will run fine as it is, but the goal is to score more for our time so let’s see another option for those who can do a little registry editing.



In order to take best advantage of your computer, we are going to make some changes to how the service starts on your computer. We do this by editing the registry manually to set some performance flags on how the application starts itself up.


So to edit the appropriate registry key and make a few changes, Run regedit by clicking Start, then selecting Run and typing in “regedit” and click OK. Up comes the registry editor.

Navigate your way to the correct key: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\F AH@C:+Folding+fah502-console

You can search down to the correct key by using the find function or you can click the plus sign beside “HKEY_LOCAL_MACHINE” then the one besides “SYSTEM” etc like browsing a windows folder. Eventually you end up in the place the picture shows and the section you are interested in is called Imagepath. In the picture, you can see the default value of –svcstart is the only option that is enabled.

http://www.whitesauctions.ca/uglyngrey/regedit1.png

Double click the Imagepath line to open an editing box

http://www.whitesauctions.ca/uglyngrey/regedit2.png


add some or all of the following commands behind the line where it says –svcstart. Leave a space and then put a dash before each new command. The current explanation of these switches can be found here http://folding.stanford.edu/console-userguide.html

In brief, I add the following switches
-local - This option has no meaning on a single command line instance, but is vital on Windows for running multiple clients on a machine. I add it even on a single core machine in case I transplant the whole directory later or add another processor

-advmethods - Request to be assigned work units from new projects, before they are broadly released to the rest of Folding@home. As among the first to try out new advanced simulations, you may wish to post any observations (positive or negative), questions, or issues at the user Forum. When combined with allowing packets over five megs, this enables higher scoring units to be downloaded to your AMD computer. When enabled on an Intel P4 computer, this allows the machine to download QMD packets which score the highest. I don’t recommend using this switch on a PIII as they are simply too slow. The same applies to slower AXP procs.

-forceasm Instruct the core to use SSE/3DNow assembly instructions if possible, even if it has previously made the determination that the machine may not be handling this well. Basically enables every optimization F@H can take advantage of on your particular CPU

-verbosity 9 makes the most entries into the log file allowable so that you can see what is going on when you read it. Useful when you are having problems.

So to summarize, I add the following switches on all my P4 or AMD 64 machines

-local -advmethods -forceasm -verbosity 9 and when I’m done it looks like this:

http://www.whitesauctions.ca/uglyngrey/regedit3.png

Click OK and exit

Am I done? YES  Restart that puppy (computer) and you will be flying. If you want to check on the status of things, just open up the fahlog.txt file in your folding directory to see if there are any problems or error messages. You can stop, start, pause and generally control the running service from the service manager function in windows. You can run the service function by navigating to it in the administrative tools in Control Panel or Start->Run then type services.msc and clicking OK… you will see the items listed in alphabetical order, right click on the service for F@H and select properties to stop, start pause or disable etc….


Dual instances as services

So you have a dual core Intel CPU, a Dual core A64 or you want to run two instances on your HT enabled processor. Excellent, we love you for it.

A personal note about virtual CPU’s (HT). I have chosen to install only one instance per physical core. Adding a second instance to an HT proc nets a very minimal gain that seems to really lag the box badly. When one virtual core in task manager is maxed on an HT proc it’s normally running near 85% of capacity anyhow, probably 90% with this type of app. So while you can runs two threads of F@H, I don’t think it’s worth it personally. But you CAN do it.

F@H is not multithreaded. This means you need to run the application twice to get two cores running. The easiest and most foolproof way of doing this is to follow the instructions above TWICE. Just create a new directory called for example C:\FOLDING2 and do the above again. It is the most reliable way to do this.

Important: each instance of F@H must have a different machine number. Installing it twice from scratch will automatically ensure it does this.

I will cover more install processes later as time allows.

Monitoring.
I have a few machines folding, how do I tell at a glance what is happening?

There are a few tools out there, being fat and really lazy I personally prefer fahmon. It works very simply, you create a share on the folder of the machine you want to monitor and then add it to the list of systems to watch. Very easy to use - here is a screenie.

Insert FAHMON.png

Ugly n Grey
10-18-2005, 07:38 PM
placeholder

Ugly n Grey
10-18-2005, 07:40 PM
another placeholder

Revv23
10-18-2005, 10:54 PM
Wow very well done sir.

Wish this was here three days ago, just figured all this crap out on my own..

something id like to add, regedit isnt neccesary, you can put the switches right after the FAH502-console when you name the exe

for example, my EXE looks like this: FAH504-console -local -advmethods -forceasm

Note, the beta version (504, what im using now) offers more features in the advanced setup config, it also allows for advmethods as an option rather then having it as a switch, personally i kept the switch in the exe name just in case.

Another thing to note is that the graphical client is slightly slower then the command line one, certainly the gains are small, but they can add up, on a 15 hours protien, you may save 15 minutes, not to mention when you run as a service youll be running from boot to shutdown, and not just when you are logged in.

Revv23
10-18-2005, 11:08 PM
http://folding.stanford.edu/console-userguide.html

the complete list of command line switches

Ugly n Grey
10-19-2005, 06:02 AM
I used the latest official release, that was a choice. I do have a link to the command line switches in the guide. If you app is running as a service, you will find it is only executing what is in the registry. If the switches aren't present it's not calling them. Renaming the exe itself isn't going to do anything except give you a different name in file manager unfortunately.

Cheers and thanks
UnG

Revv23
10-23-2005, 10:14 PM
I used the latest official release, that was a choice. I do have a link to the command line switches in the guide. If you app is running as a service, you will find it is only executing what is in the registry. If the switches aren't present it's not calling them. Renaming the exe itself isn't going to do anything except give you a different name in file manager unfortunately.

Cheers and thanks
UnG


actually reinstall the app, set it to run as a service, rename, reboot, and then check your registry and tell me what you see...

theres a reason SSE is on and im getting QMD's without any registry editing...

Sorry UnG not trying to be rude but the only reason i found out this was true was because i went into the registry use your information, only to find that it wasnt neccesary.

sc00p
12-26-2005, 04:50 AM
Up... this is really clear guide.

da-key
12-26-2005, 09:35 AM
Yeah scoop use the config to get the advanced options going and watch the team benefit.

I am averaging 380 pts per unit so far.

cdelong
01-09-2007, 06:04 AM
I'd like to start FAH, but have a few questions first.

I have a C2D and want to know if I set up one instance on each core, will my system lag at all?? I mean... is the priority set to 1 (like when you run Prime 95, or like when I used to run Seti)??

I may just start with one instance, then two if my system performance is not affected.

Thanks!

[XC] DragonOrta
01-09-2007, 09:48 AM
As long as you have 1gb or more of RAM, you shouldn't notice anything. :up:

cdelong
01-10-2007, 06:07 AM
I have 2g of memory, but does that really matter? These programs are using CPU cycles correct?

Just inquiring before I set it up on my rig:D

SparkyJJO
01-10-2007, 08:36 AM
You shouldn't notice anything at all. I barely notice it on one of my dedicated folding machines that is only an Athlon thunderbird 1.13GHz with 256MB RAM. The only one that noticeably slows stuff down is the X1900 series GPU client but even that isn't much as long as your CPU is running at least 2.5GHz or so.