A program that stops FAH when a program/game is launched

Moderator: Site Moderators

A program that stops FAH when a program/game is launched

Postby ashrack » Sat Feb 20, 2010 9:40 pm

I've written a java program which stops FAH when a certain application is launched and after that certain application is closed it will start FAH again.
The applications for which you wish to terminate FAH must be written in a .TXT file.

So if anyone is interested let me know and I'll see what I can do to adapt the program for you.
ashrack
 
Posts: 59
Joined: Thu Mar 20, 2008 8:06 pm

Re: A program that stops FAH when a program/game is launched

Postby toTOW » Sat Feb 20, 2010 9:50 pm

What's the point ? With fahcores running at lowest priority, any other application requesting CPU time (game included) will get it, and FAH will go to sleep.
Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.

FAH-Addict : latest news, tests and reviews about Folding@Home project.

Image
User avatar
toTOW
Super Moderator
 
Posts: 9396
Joined: Sun Dec 02, 2007 11:38 am
Location: Bordeaux, France

Re: A program that stops FAH when a program/game is launched

Postby ashrack » Sat Feb 20, 2010 10:16 pm

toTOW
the point is that this is not true. I have tried with at least 4 new games and FPS are much lower with FAH on. Don't even get me started on FAH SMP or even FAH GPU.
ashrack
 
Posts: 59
Joined: Thu Mar 20, 2008 8:06 pm

Re: A program that stops FAH when a program/game is launched

Postby Tobit » Sat Feb 20, 2010 10:22 pm

ashrack wrote:Don't even get me started on FAH SMP or even FAH GPU.

Ok, we won't. Sorry but this just seems silly. :roll:
Semi-Live Folding Summary - http://teamtobit.net/fahstats/
User avatar
Tobit
 
Posts: 547
Joined: Thu Apr 17, 2008 3:35 pm
Location: Manchester, NH USA

Re: A program that stops FAH when a program/game is launched

Postby ashrack » Sat Feb 20, 2010 10:32 pm

what sounds silly?
ashrack
 
Posts: 59
Joined: Thu Mar 20, 2008 8:06 pm

Re: A program that stops FAH when a program/game is launched

Postby 7im » Sat Feb 20, 2010 11:09 pm

I guess the thinking might be that the CPU client, which does give up processor power to other applications doesn't need this application.

And the SMP and GPU clients are designed to be run 24/7 to meet the tight deadlines, so again they don't need this application.

But not everyone is as ruthlessly dedicated as those guys above who run fah 24/7 on every computer, so there is probably an audience for an app like this. :)
User avatar
7im
 
Posts: 7392
Joined: Thu Nov 29, 2007 5:30 pm

Re: A program that stops FAH when a program/game is launched

Postby Tobit » Sun Feb 21, 2010 3:55 am

Well, I run dedicated and non-dedicated systems here.. in two years of folding, I've never seen the need for an application like this... especially a Java based applet, talk about a resource hog.
Semi-Live Folding Summary - http://teamtobit.net/fahstats/
User avatar
Tobit
 
Posts: 547
Joined: Thu Apr 17, 2008 3:35 pm
Location: Manchester, NH USA

Re: A program that stops FAH when a program/game is launched

Postby 7im » Sun Feb 21, 2010 4:11 am

Silly me for being the optimist for once. Let's ask the author about that before passing judgment ;)

As an alternative, I used a scheduled task to do the same thing. Run when idle, stop when not. It's a little too all or nothing, not targeted like that java app, but worked for me. :)
User avatar
7im
 
Posts: 7392
Joined: Thu Nov 29, 2007 5:30 pm

Re: A program that stops FAH when a program/game is launched

Postby k1wi » Sun Feb 21, 2010 4:20 am

I could see this concept being useful to me - when watching HD content on my little Centrino 1.83 I have to pause the client - sometimes I forget to start it back up to. That's even with fah being set @ lowest priority etc.

I think its because my machine is *just* able to handle HD, so even as idle as FAH is, it isn't idle enough.

But I'm happy to keep on pausing and resuming, I'm not always watching HD after all!
Image
k1wi
 
Posts: 301
Joined: Tue Sep 22, 2009 11:48 pm

Re: A program that stops FAH when a program/game is launched

Postby ashrack » Sun Feb 21, 2010 10:04 am

Tobit wrote:Well, I run dedicated and non-dedicated systems here.. in two years of folding, I've never seen the need for an application like this... especially a Java based applet, talk about a resource hog.

It's only running when Windows Scheduler starts it and after a 1sec it shuts down again. I have set Windows Scheduler to run the app every 5min. So when the app is run it checks the running processes against the TXT file and if a match is found it shuts down FAH. Else, if a match is not found it starts FAH. So I never forget to turn it back on again after some gaming
ashrack
 
Posts: 59
Joined: Thu Mar 20, 2008 8:06 pm

Re: A program that stops FAH when a program/game is launched

Postby Anglik666 » Sun Feb 21, 2010 3:39 pm

I was looking for program like that when I folded on my ATi cards, they always frizzed when I was watching films. Good idea. Surely very useful for games as well.
I see like my son's comp slow down graphics with folding GPU client, and how fast is without !
Really I could see this program more useful for GPU client than CPU/SMP.

There was something like that:
http://foldingforum.org/viewtopic.php?f=14&t=52
named FoldWise: http://www.teammacosx.org/software.html
but disappeared long time ago...

I'd like to try it if any chances.

@Tobit
Well, I run dedicated and non-dedicated systems here.. in two years of folding, I've never seen the need for an application like this...

And probably you've never ever have any other problems with fah... Lucky man. Try a lotto. :D
Seriously, if you cannot accept others do things different way you shouldn't use internet.
Al least shouldn't call them or theirs silly. :twisted:
PC1: PII 940, 790GX-P, 4x2GB, GTS 250
PC2: P 9750, 790GX-P, 4x1GB, GTS 250
PC3: 2x O 2427, SM H8DII+-F, 4x2GB ECC
PC4: 2x X e5420, SM X8DLT-I, 6x1GB ECC
Image
User avatar
Anglik666
 
Posts: 203
Joined: Tue Dec 16, 2008 10:35 pm

Re: A program that stops FAH when a program/game is launched

Postby BuddhaChu » Sun Feb 21, 2010 4:38 pm

I've had a need for an app like this in the past as I manually shut down GPU folding to play TeamFortress2 and Borderlands. At one point I had to shut down the CPU client as well to play TeamFortress2 'cause the game crashed occasionally if the CPU client was running. They didn't play nice together on my gaming rig. Like the OP, I'd forget to restart the clients occasionally after I was done playing the game.

Command & Concquer 4 and Battlefield Bad Comapny 2 get released next month so I could use an app like this.

7im: can you do IF-THENs in the new Scheduled Tasks in Windows 7? I know you can do triggers now and they might do the same thing, but I haven't played with schtasks since WinXP.

Pseudocode:

Code: Select all
IF this_game OR that_game NOT running
    IF gpu_client NOT running
        start gpu client
    ENDIF
ENDIF
BuddhaChu
 
Posts: 115
Joined: Wed Apr 16, 2008 3:38 am

Re: A program that stops FAH when a program/game is launched

Postby ashrack » Sun Feb 21, 2010 4:38 pm

I have FAH setuped as a service so from the program I just call the command to stop the service. But if FAH is not run as a service than I do not know how to properly terminate it. As this command gives improper core termination in FAH:
Code: Select all
taskkill  /im folding* /t /f

Anyone got an idea how to properly kill FAH that is not run as a service?

Anglik666
if you run FAH as a service I can change the program to suit your need or if you wish give you the source and you can change it yourself.
ashrack
 
Posts: 59
Joined: Thu Mar 20, 2008 8:06 pm

Re: A program that stops FAH when a program/game is launched

Postby BuddhaChu » Sun Feb 21, 2010 4:54 pm

The correct way to stop the CPU client not installed as a service is:

Code: Select all
taskkill /F /IM Folding@home-Win32-x86.exe

Folding@home-Win32-x86.exe is the controlling program that starts the cores running. Stop that and you stop the cores. You don't really need to use the /T switch to stop the child processes (the cores), but it can't hurt I guess.
BuddhaChu
 
Posts: 115
Joined: Wed Apr 16, 2008 3:38 am

Re: A program that stops FAH when a program/game is launched

Postby jrweiss » Sun Feb 21, 2010 6:12 pm

For those running lower-power CPUs, using a CPU load of 90-95% for the F@H CPU client can eliminate most or all of the perceived slowdowns. The slowdowns occur when other tasks ask for the CPU time, and the F@H client is slow giving them up (especially when a pagefile swap must be done). If 5-10% of the CPU time is idle, most tasks can use that while F@H is waiting to yield the rest. This worked for me on a couple old P3 machines and a slower P-M laptop.
Q9650/HD4670 (SMP+GPU), Q9450 (4xCPU+GPU), Lenovo T9400 laptop (2xCPU [Win7] or SMP [Ubuntu]), IBM PM745 laptop (CPU), and 2 old Dells Folding@home and elsewhere.
User avatar
jrweiss
 
Posts: 936
Joined: Tue Dec 04, 2007 7:56 am
Location: Gotta guess!

Next

Return to 3rd party contributed software

Who is online

Users browsing this forum: No registered users