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 > Overclock.net Folding@Home Team

Reply
 
LinkBack Thread Tools
Old 09-07-09   #1 (permalink)
Folding Fanatic
 
MadCatMk2's Avatar
 
intel nvidia

Join Date: May 2006
Location: Greece
Posts: 1,950

Rep: 200 MadCatMk2 is acknowledged by manyMadCatMk2 is acknowledged by manyMadCatMk2 is acknowledged by many
Unique Rep: 158
Folding Team Rank: 201
Trader Rating: 0
Default Guide: Automated pausing of Folding@home.

A common issue with GPU folding is the fact that it has to be paused/stopped to play games or run other GPU intense applications.
Users often forget to disable it before running those applications or forget to start Folding@Home again once they're done.

In this guide we will automate this proccess. Designed for XP. Have fun with permissions in Vista and making files from CMD. You will probably have to "Run as administrator", especially for the second variant of this program.

Set up your GPU2 folding@home console client to run as a proccess and reboot your computer.
This can be done during initial run of the folding@home .exe as illustrated:



After rebooting, go to Start -> Run -> Type services.msc



Scroll down to the entry that begins with Folding@home-GPU- and write that name down. (ie "Folding@home-GPU-[3]")



Now we're going to make a tiny batch file that shuts down this process every time we start a specific application.

Create a simple .txt file and type in the following

Code:
@echo off
net stop Folding@home-GPU-[<x>]
<HDD>:
cd "<HDD>:\<dir>"
start /wait <application_executable>.exe
net start Folding@home-GPU-[<x>]
  • x: Machine ID we got from services.msc.
  • HDD: The hard drive the executable file is located in.
  • dir: Directory to desired executable.

Here is an example:
Code:
@echo off
net stop Folding@home-GPU-[2]
C:
cd "C:\Live for Speed S2 ALPHA Z\LFS_S2_ALPHA_Z"
start /wait LFS.exe
net start Folding@home-GPU-[2]
Save the file you have created as anything.bat and run it.

You should get the following window and your application will start:



That was it! This should do the trick for most games.

[=================================================]

If you are running a game in which the executable you run to start it is not the game itself then this application will not work (ie MMO updaters that begin before the game itself). Here's what can be done:

First run the game. Once in 3D mode hit Ctrl+Alt+Del to bring up the task manager to find out the game's actual proccess name (ie WoW.exe).

Our .bat file should contain the following code:

Code:
@echo off
net stop Folding@home-GPU-[<x>]
<HDD>:
cd "<HDD>:\<dir>"
start /wait <application_starter>.exe
goto check

:check
tasklist /FI "IMAGENAME eq <actual_executable>.exe" /FO CSV > search.log

FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO end

net start Folding@home-GPU-[<x>]
goto end

:check

:end
del search.log
  • application_starter: The .exe that runs the game/application (updater usually).
  • actual_executable: The game name you got from the task manager.
  • wait 10 tells the program how often to check for the running application in seconds. Suit it to your needs.

Here's an example:
Code:
@echo off
net stop Folding@home-GPU-[2]
C:
cd "C:\Live for Speed S2 ALPHA Z\Live for Speed S2 ALPHA Z"
start /wait LFS_starter.exe
goto check

:check
tasklist /FI "IMAGENAME eq LFS.exe" /FO CSV > search.log

FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO end

net start Folding@home-GPU-[2]
goto end

:check

:end
del search.log
That's all folks! Enjoy.
v0.1 ~ (8 Sep 09) ~ Initial release.
v0.2 ~ (9 Sep 09) ~ Allowing auto-updaters to finish before checking for game instance.
Attached Thumbnails
Guide: Automated pausing of Folding@home.-1.png   Guide: Automated pausing of Folding@home.-2.png   Guide: Automated pausing of Folding@home.-3.png   Guide: Automated pausing of Folding@home.-4.png  

System: Turtle.
CPU
E8500 @ 3.58 - 1.12v
Motherboard
Penryn1600SLI (650i)
Memory
3/4GB
Graphics Card
8800GT
Hard Drive
Loud, slow, noisy.
Power Supply
PCP&C Silencer 750W
Case
Coolermaster HAF932
CPU cooling
Xigmatek HDT-S963
GPU cooling
Stock
OS
XP x86. Mepis x64 soon..
Monitor
4612 FA (IPS Panel)
Overclock.net - 2009 Chimp Challenge Champions 1 Million+ Folding at Home points

Last edited by MadCatMk2 : 09-09-09 at 03:05 AM
MadCatMk2 is offline I fold for Overclock.net   Reply With Quote
Old 09-07-09   #2 (permalink)
*cough* Stock *cough*
 
zodac's Avatar
 
intel nvidia

Join Date: Jul 2007
Location: Dublin, Ireland
Posts: 1,724

Rep: 220 zodac is acknowledged by manyzodac is acknowledged by manyzodac is acknowledged by many
Unique Rep: 175
Folding Team Rank: 303
Trader Rating: 0
Default

Wow, nice guide. Rep+

Don't think I'll use it myself though; I don't game that much, so instead I just forget to pause folding while I playing agmes
__________________
"He who is not courageous enough to take risks will accomplish nothing in life"
~Muhammad Ali~

System: Dimension E520
CPU
Intel Pentium D 2.66GHz
Memory
5GB DDR2 667mhz
Graphics Card
PNY nVidia 9800 GT
Hard Drive
Samsung F1 1TB
Power Supply
ThermalTake 420W
OS
Windows 7 RC x64
Monitor
Samsung T220
zodac is offline I fold for Overclock.net   Reply With Quote
Old 09-07-09   #3 (permalink)
Linux Lobbyist
 
amd nvidia

Join Date: Apr 2009
Location: In an Igloo
Posts: 1,295

Rep: 72 MAD_J is acknowledged by some
Unique Rep: 61
Folding Team Rank: 62
Trader Rating: 0
Default

O nice I was thinking about making something similar but I couldn't find out how to do cron jobs on Windows.

Im definitely going to use this.
__________________
I <3 Quake 3
Fold for OCN to help us take over the world! Team#37726
Phenom II X4 940 BE @ 3.6GHz 3D Mark Vantage: P 15,517 3D Mark 06: P 15,780
Quote:
Originally Posted by franz View Post
Lazy about overclocking.?!?!?!?!?!?! Sorry son, but you are on overclock.net and that is about as close to blasphemy as you can get.

System: Shenanigans
CPU
Phenom II X4 940 BE @ 3.6
Motherboard
ASUS M3N-HT
Memory
4x 2Gb Kingston HyperX
Graphics Card
3x GeForce 9800 GX2
Hard Drive
150Gb
Power Supply
Corsair HX1000W + HX750W
CPU cooling
Xigmatek HDT-S1283
OS
Win 7
Monitor
Samsung 226bw
Overclock.net - 2009 Chimp Challenge Champions 3 Million+ Folding at Home points
MAD_J is offline I fold for Overclock.net   Reply With Quote
Old 09-27-09   #4 (permalink)
4.0 GHz
 
My arms stuck's Avatar
 
intel ati

Join Date: Jan 2007
Location: New York
Posts: 370

Rep: 23 My arms stuck is acknowledged by some
Unique Rep: 22
Folding Team Rank: 573
Trader Rating: 0
Default

I don't pause folding while I play games and don't notice any difference. I'm confused, I assumed it auto-paused or at least gave priority to the game by default.
__________________
Quote:
Originally Posted by Licht View Post
Anyone who isn't paranoid about Google taking over the world isn't a real overclocker...
http://valid.x86-secret.com/show_oc.php?id=180417
4.5 Ghz Prescott on air cooling.^

System: My System
CPU
Q6600 G0 @ 3.0
Motherboard
Asus P5B Deluxe
Memory
Corsair 2GB PC6400
Graphics Card
Saphire 4890
Hard Drive
~750
Sound Card
X-Fi Extreme Gamer
Power Supply
PC P&C Silencer 610
Case
Antec 900
CPU cooling
Blu Orb II
OS
XP Home & Ubuntu.
Monitor
22 In. Westinghouse
My arms stuck is offline I fold for Overclock.net   Reply With Quote
Old 09-27-09   #5 (permalink)
Folding Fanatic
 
MadCatMk2's Avatar
 
intel nvidia

Join Date: May 2006
Location: Greece
Posts: 1,950

Rep: 200 MadCatMk2 is acknowledged by manyMadCatMk2 is acknowledged by manyMadCatMk2 is acknowledged by many
Unique Rep: 158
Folding Team Rank: 201
Trader Rating: 0
Default

Quote:
Originally Posted by My arms stuck View Post
I don't pause folding while I play games and don't notice any difference. I'm confused, I assumed it auto-paused or at least gave priority to the game by default.
Firstly, this is mainly intended for GPU folding (in case you don't fold on your GPU).
And yes it is meant to give priority to other apps, although it does not seem to work, at least for the most of us. Not to mention how many work units I've personally lost cause of forgetting to close it. But no, it does not auto-pause.

On another note,
This guide is also useful for "pausing" cpu/smp/vmware CPU clients when you need the RAM.

System: Turtle.
CPU
E8500 @ 3.58 - 1.12v
Motherboard
Penryn1600SLI (650i)
Memory
3/4GB
Graphics Card
8800GT
Hard Drive
Loud, slow, noisy.
Power Supply
PCP&C Silencer 750W
Case
Coolermaster HAF932
CPU cooling
Xigmatek HDT-S963
GPU cooling
Stock
OS
XP x86. Mepis x64 soon..
Monitor
4612 FA (IPS Panel)
Overclock.net - 2009 Chimp Challenge Champions 1 Million+ Folding at Home points

Last edited by MadCatMk2 : 09-27-09 at 05:45 PM
MadCatMk2 is offline I fold for Overclock.net   Reply With Quote
Old 09-27-09   #6 (permalink)
4.0 GHz
 
My arms stuck's Avatar
 
intel ati

Join Date: Jan 2007
Location: New York
Posts: 370

Rep: 23 My arms stuck is acknowledged by some
Unique Rep: 22
Folding Team Rank: 573
Trader Rating: 0
Default

Didn't mean to offend, I was just asking. I'm assuming that right clicking the icon and pausing works the same as the auto-pause and therefore isn't sufficient? Or are you talking more about command line style folding, which I know nothing about?
__________________
Quote:
Originally Posted by Licht View Post
Anyone who isn't paranoid about Google taking over the world isn't a real overclocker...
http://valid.x86-secret.com/show_oc.php?id=180417
4.5 Ghz Prescott on air cooling.^

System: My System
CPU
Q6600 G0 @ 3.0
Motherboard
Asus P5B Deluxe
Memory
Corsair 2GB PC6400
Graphics Card
Saphire 4890
Hard Drive
~750
Sound Card
X-Fi Extreme Gamer
Power Supply
PC P&C Silencer 610
Case
Antec 900
CPU cooling
Blu Orb II
OS
XP Home & Ubuntu.
Monitor
22 In. Westinghouse
My arms stuck is offline I fold for Overclock.net   Reply With Quote
Old 09-27-09   #7 (permalink)
Folding Fanatic
 
xxbassplayerxx's Avatar
 
intel ati

Join Date: Jun 2009
Location: Louisville, Kentucky
Posts: 2,654

Rep: 170 xxbassplayerxx is acknowledged by manyxxbassplayerxx is acknowledged by many
Unique Rep: 146
Folding Team Rank: 687
Team Name: Team Mean Green
Trader Rating: 8
Default

Quote:
Originally Posted by My arms stuck View Post
Didn't mean to offend, I was just asking. I'm assuming that right clicking the icon and pausing works the same as the auto-pause and therefore isn't sufficient? Or are you talking more about command line style folding, which I know nothing about?
This guide (+rep, by the way) will pause folding any time you open a certain application, for instance, COD4, and resume once you've closed that application. It will also start by itself when the computer is started.
__________________
REPORT and move on.
Everyone, I have an urgent announcement to make:
[PWN]Schubie is tricky.

Usually,
4650<3850<4670<3870<4770<4830<3870X2<4850<5770<487 0<4890<4770 CF<4850X2<4850 CF<5850<5870<5770 CF<4870X2<4870 CF<4890 CF<5850 CF<5970<5870 CF

System: Miki <3
CPU
i7 920 @ 4.3GHz HT on
Motherboard
Gigabyte GA-EX58-UD4P
Memory
6GB OCZ Platinum 1600MHz
Graphics Card
Diamond XOC & Toxic 4890s
Hard Drive
WD Cavair 500GB & WD Black 1TB
Sound Card
Onboard
Power Supply
Corsair 1000HX
Case
HAF 932 Custom Painted White
CPU cooling
Enzotech Sapphire/EK NB/SB + Mosfet Blocks/MCR320
GPU cooling
Reference for Diamond, VaporX for Toxic
OS
Windows 7 Professional/nLite XP Professional
Monitor
Dell 22" @ 1680x1050
xxbassplayerxx is offline I fold for Overclock.net   Reply With Quote
Old 09-27-09   #8 (permalink)
Folding Fanatic
 
MadCatMk2's Avatar
 
intel nvidia

Join Date: May 2006
Location: Greece
Posts: 1,950

Rep: 200 MadCatMk2 is acknowledged by manyMadCatMk2 is acknowledged by manyMadCatMk2 is acknowledged by many
Unique Rep: 158
Folding Team Rank: 201
Trader Rating: 0
Default

Quote:
Originally Posted by xxbassplayerxx View Post
This guide (+rep, by the way) will pause folding any time you open a certain application, for instance, COD4, and resume once you've closed that application. It will also start by itself when the computer is started.
Yep, the whole point is not having to do it every time you start an application.

Command line has no way to pause by the way, you have to close it and start it again. As some of us like to run it as service it's quite troublesome doing the whole process.

Of course no offence taken

System: Turtle.
CPU
E8500 @ 3.58 - 1.12v
Motherboard
Penryn1600SLI (650i)
Memory
3/4GB
Graphics Card
8800GT
Hard Drive
Loud, slow, noisy.
Power Supply
PCP&C Silencer 750W
Case
Coolermaster HAF932
CPU cooling
Xigmatek HDT-S963
GPU cooling
Stock
OS
XP x86. Mepis x64 soon..
Monitor
4612 FA (IPS Panel)
Overclock.net - 2009 Chimp Challenge Champions 1 Million+ Folding at Home points
MadCatMk2 is offline I fold for Overclock.net   Reply With Quote
Old 09-27-09   #9 (permalink)
4.0 GHz
 
My arms stuck's Avatar
 
intel ati

Join Date: Jan 2007
Location: New York
Posts: 370

Rep: 23 My arms stuck is acknowledged by some
Unique Rep: 22
Folding Team Rank: 573
Trader Rating: 0
Default

Alright good. I'm new to folding, didn't mean to step on any toes lmao. Thanks for the info.
__________________
Quote:
Originally Posted by Licht View Post
Anyone who isn't paranoid about Google taking over the world isn't a real overclocker...
http://valid.x86-secret.com/show_oc.php?id=180417
4.5 Ghz Prescott on air cooling.^

System: My System
CPU
Q6600 G0 @ 3.0
Motherboard
Asus P5B Deluxe
Memory
Corsair 2GB PC6400
Graphics Card
Saphire 4890
Hard Drive
~750
Sound Card
X-Fi Extreme Gamer
Power Supply
PC P&C Silencer 610
Case
Antec 900
CPU cooling
Blu Orb II
OS
XP Home & Ubuntu.
Monitor
22 In. Westinghouse
My arms stuck is offline I fold for Overclock.net   Reply With Quote
Reply


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



All times are GMT -5. The time now is 04:12 AM.


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.15536 seconds with 9 queries