Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Overclock.net Forum > FAQs

 
 
LinkBack Thread Tools
Old 06-26-06   #1 (permalink)
IDDQD
 
C-bro's Avatar
 
intel nvidia

Join Date: Jan 2006
Location: Windsor, ON
Posts: 2,286

Rep: 341 C-bro is a proven memberC-bro is a proven memberC-bro is a proven memberC-bro is a proven member
Unique Rep: 264
FAQs Submitted: 6
Hardware Reviews: 9
Trader Rating: 1
Default How to: Manipulate the F@H Console Service

Note: In order to gain the full benefits of this information, you should already be running your console as a service. If you aren't, please see this FAQ on setting up your console to run as a service. It covers the step in adequate detail.

With Decreased Visibility Comes Decreased Accessibility

You may have noticed that since you started running F@H as a service, there are no more nice windows and your desktop icons prove useless now. There's much more depth involved with the starting, stopping, and monitoring of the folding client. I plan to give a brief outline of the methods that I find useful and convenient for service control.

Flags and Parameters:

This section tells you how to customize the flags and parameters used by the folding client. Normally you could just create a shortcut and tack on the flags, but when the client is run as a service, it becomes more difficult. Many people just append flags trough the normal Services control panel, but I had to enter mine manually everytime I ran the service. For the automated activation of the flags, I had to take this route...

WARNING: BACK UP YOUR REGISTRY BEFORE YOU DO THESE CHANGES. IF YOU ARE UNCOMFORTABLE WITH REGISTRY EDITING, DO NOT ATTEMPT THIS SECTION! OVERCLOCK.NET AND I WILL NOT BE HELD RESPONSIBLE FOR ANY CRASHES, LOST WORK UNITS, OR GENERAL PROBLEMS ARISING FROM THIS GUIDE.

If you still want to continue, follow these steps:
1) Go to "Run" and type regedit and hit enter.

2)Find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\<Folding Service Name>

By default, <Folding Service Name> should be the location of your folding console. ie:
FAH@C:+Documents and Settings+Administrator+My Documents+Folding@Home+FAH504-Console.exe

3) Find the ImagePath variable and double click it.

4) Add any desired flags like -forceasm, -verbosity #, to the end of your ImagePath. For my ImagePath I use:

C:\Documents and Settings\Administrator\My Documents\Folding@Home\FAH504-Console.exe -forceasm -svcstart

5) Exit regedit.

Now everytime you (or Windows) runs the folding service, it will automatically execute with those newly added flags. It's a bit more involved that just specifying the flags in the services panel, but like I said, this was the only way that would work for me.


Starting:

You'll have to get the name of your folding service from your services control panel (Run->services.msc). After you have the name of your service, open up Notepad and key in the following, where <Folding Service Name> is the name of your folding service:

Code:
sc start <Folding Service Name>
In my case, I used my service name from above, so my start file looks like this:
Code:
sc start "FAH@C:+Documents and Settings+Administrator+My Documents+Folding@Home+FAH504-Console.exe"
Save this file as something like startFAH.bat
Now, whenever you want to start your folding, just double click the batch file.

Notes:

- To use multiple cores, simply add another "sc start" line with another service name.

Code:
sc start <Folding Service 1>
sc start <Folding Service 2>
Stopping:

1) Do the exact same as starting, but replace the start command with stop in a new bat file.

Code:
sc stop <Service Name>
2) Save as something like stopFAH.bat


Monitoring:

There are two methods here. I prefer the second, but it requires 3rd party software.

#1 FAHlog.txt

In your console directory, there is a log file that tells how far along your work unit is. You can simply click on that to give your current status.

#2 FAHMon

There is a program available here called FAHMon. Not only does it provide a GUI for monitoring your local consoles, you can also use it to monitor other folding consoles on your network. Taeric has provided an extensive FAQ on the features and operation of FAHMon. You can view it here.


Scheduling:

With the creation of your new Folding batch files, you can now also use them to set up task scheduling in Windows. Even though the client dynamically allocates unused compute cycles, some people may still want to limit the folding to when they sleep. Here's how...

1) Control Panel -> Scheduled Tasks
2) Click "Add Scheduled Task"
3) Click "Next" and then "Browse" and find your batch file that starts folding.

4) Set up the times that you want the task to run and you're finished.
5) Repeat steps 2-4 to schedule the batch file that stops folding.


Now the Folding client will turn on and off at whatever times you've specified. I use it at work because my computer sounds like a jet engine at 100% CPU usage. To minimize the office disruption, I just scheduled folding to come on after everyone leaves and turn off as everyone arrives. It's an easy way to contribute some extra work units.
Hopefully you were able to add a bit more accessibility to your service-configuration the Folding@Home console. I know this little tricks made my life easier, and I hope they worked for you as well.
__________________
System: RAID0R
CPU
Intel E2180 3.33GHz
Motherboard
Asus P5K-E/WIFI-AP vMod
Memory
2GB Kingmax DDR2-1066
Graphics Card
EVGA 8800GT
Hard Drive
2x250GB WD+500GB 7200.11
Sound Card
SB Audigy 2
Power Supply
Corsair VX550
Case
Lian Li PC-7B Plus II
CPU cooling
Arctic Cooling Freezer 7 Pro
GPU cooling
Zalman VF900-Cu
OS
Windows Vista Business
Monitor
Dell 2709W 27"

Last edited by C-bro : 03-11-07 at 04:52 PM
C-bro is offline Overclocked Account C-bro's Gallery  
Old 06-29-06   #2 (permalink)
Original OCN Gangsta
 
Burn's Avatar
 
intel nvidia

Join Date: Sep 2004
Location: Massachusetts
Posts: 13,685
Blog Entries: 2

FAQs Submitted: 14
Folding Team Rank: 134
Team Name: CPU Burners
Hardware Reviews: 5
Trader Rating: 7
Default

Very nice!
__________________
My CNC Mill Project
Quote:
Originally Posted by CyberDruid
Burn + Electricty + Water =
But the man has the patience of a saint...
We cannot change the cards we are dealt, just how we play the hand.
--Randy Pausch
Current Best Benchmark

System: Burning Phoenix
CPU
Intel Q9550
Motherboard
Gigabyte EP45-UD3P
Memory
4GB G.Skill DDR2-1000 5-5-5-15
Graphics Card
eVGA GTX 260 Core 216 SuperClocked
Hard Drive
3 WD 80GB RAID0, Seagate 500GB, WD 1TB Caviar BLCK
Sound Card
Creative SB Audigy 2 ZS
Power Supply
Silverstone OP750
Case
Lian-Li PC-A10B
CPU cooling
D-Tek Fuzion V1
GPU cooling
D-Tek Fuzion GFX + D-Tek Unisink
OS
Windoze 7 Professional
Monitor
Dual Dell E207WFP 20.1" Widescreen LCD's
1 Million+ Folding at Home points
Burn is offline I fold for Overclock.net Overclocked Account Burn's Gallery  
Old 06-29-06   #3 (permalink)
IDDQD
 
C-bro's Avatar
 
intel nvidia

Join Date: Jan 2006
Location: Windsor, ON
Posts: 2,286

Rep: 341 C-bro is a proven memberC-bro is a proven memberC-bro is a proven memberC-bro is a proven member
Unique Rep: 264
FAQs Submitted: 6
Hardware Reviews: 9
Trader Rating: 1
Default

Thanks! It was actually another members post that taught me to run the console as a service, but when I did that I realized how much of a pain it was to have any sort of interaction with the folding client. I basically just made this out of necessesity to get the client working how I wanted. Hopefully others find it useful.

Also, if you guys want to see anything added, please let me know. I already added an extra bit on scheduling. Enjoy!
__________________
System: RAID0R
CPU
Intel E2180 3.33GHz
Motherboard
Asus P5K-E/WIFI-AP vMod
Memory
2GB Kingmax DDR2-1066
Graphics Card
EVGA 8800GT
Hard Drive
2x250GB WD+500GB 7200.11
Sound Card
SB Audigy 2
Power Supply
Corsair VX550
Case
Lian Li PC-7B Plus II
CPU cooling
Arctic Cooling Freezer 7 Pro
GPU cooling
Zalman VF900-Cu
OS
Windows Vista Business
Monitor
Dell 2709W 27"
C-bro is offline Overclocked Account C-bro's Gallery  
Old 06-29-06   #4 (permalink)
Original OCN Gangsta
 
Burn's Avatar
 
intel nvidia

Join Date: Sep 2004
Location: Massachusetts
Posts: 13,685
Blog Entries: 2

FAQs Submitted: 14
Folding Team Rank: 134
Team Name: CPU Burners
Hardware Reviews: 5
Trader Rating: 7
Default

The start and stop BAT files work great :D
__________________
My CNC Mill Project
Quote:
Originally Posted by CyberDruid
Burn + Electricty + Water =
But the man has the patience of a saint...
We cannot change the cards we are dealt, just how we play the hand.
--Randy Pausch
Current Best Benchmark

System: Burning Phoenix
CPU
Intel Q9550
Motherboard
Gigabyte EP45-UD3P
Memory
4GB G.Skill DDR2-1000 5-5-5-15
Graphics Card
eVGA GTX 260 Core 216 SuperClocked
Hard Drive
3 WD 80GB RAID0, Seagate 500GB, WD 1TB Caviar BLCK
Sound Card
Creative SB Audigy 2 ZS
Power Supply
Silverstone OP750
Case
Lian-Li PC-A10B
CPU cooling
D-Tek Fuzion V1
GPU cooling
D-Tek Fuzion GFX + D-Tek Unisink
OS
Windoze 7 Professional
Monitor
Dual Dell E207WFP 20.1" Widescreen LCD's
1 Million+ Folding at Home points
Burn is offline I fold for Overclock.net Overclocked Account Burn's Gallery  
Old 06-29-06   #5 (permalink)
makin' the big noise
 
Chipp's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Coral Gables FL
Posts: 16,396
Blog Entries: 29

FAQs Submitted: 18
Hardware Reviews: 3
Trader Rating: 12
Default

I'm very impressed with this, nice info.
__________________
System: Precision M4400
CPU
2.4ghz P8600
Motherboard
Dell
Memory
2x2gb DDR2 800
Graphics Card
Quadro FX770M
Hard Drive
160gb 7200 RPM
Sound Card
E-Mu 0404 USB
OS
Windows 7
Monitor
1280x800 LCD
Chipp is online now Overclocked Account Chipp's Gallery  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 11:53 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.12523 seconds with 8 queries