restrict time-of-day when fah runs
Moderators: Site Moderators, FAHC Science Team
restrict time-of-day when fah runs
Is it possible to configure the FAH client so that it only runs during certain hours, and is idle the rest of the time? Thanks!
-
- Posts: 10179
- Joined: Thu Nov 29, 2007 4:30 pm
- Hardware configuration: Intel i7-4770K @ 4.5 GHz, 16 GB DDR3-2133 Corsair Vengence (black/red), EVGA GTX 760 @ 1200 MHz, on an Asus Maximus VI Hero MB (black/red), in a blacked out Antec P280 Tower, with a Xigmatek Night Hawk (black) HSF, Seasonic 760w Platinum (black case, sleeves, wires), 4 SilenX 120mm Case fans with silicon fan gaskets and silicon mounts (all black), a 512GB Samsung SSD (black), and a 2TB Black Western Digital HD (silver/black).
- Location: Arizona
- Contact:
Re: restrict time-of-day when fah runs
Run fahclient from a scheduled task in a command line. Since Windows has always had this feature, there was no need to add it in to fah.
Run fahclient full time in one task, for certain hours. Then set to run Only when Idle for other certain hours in a 2nd task.
Run fahclient full time in one task, for certain hours. Then set to run Only when Idle for other certain hours in a 2nd task.
How to provide enough information to get helpful support
Tell me and I forget. Teach me and I remember. Involve me and I learn.
Tell me and I forget. Teach me and I remember. Involve me and I learn.
Re: restrict time-of-day when fah runs
What about MacOS?
Re: restrict time-of-day when fah runs
Unix variants (including both Linux and probably OS-X) should allow services to run at scheduled times, though it'll probably take a programmer to set it up properly for you.
There's an open ticket suggesting an enhancement (#300) but it has been languishing, waiting for enough development time to add lower priority items to the client.
There's an open ticket suggesting an enhancement (#300) but it has been languishing, waiting for enough development time to add lower priority items to the client.
Posting FAH's log:
How to provide enough info to get helpful support.
How to provide enough info to get helpful support.
-
- Posts: 887
- Joined: Wed May 26, 2010 2:31 pm
- Hardware configuration: Atom330 (overclocked):
Windows 7 Ultimate 64bit
Intel Atom330 dualcore (4 HyperThreads)
NVidia GT430, core_15 work
2x2GB Kingston KVR1333D3N9K2/4G 1333MHz memory kit
Asus AT3IONT-I Deluxe motherboard - Location: Finland
Re: restrict time-of-day when fah runs
<edit>
Telnet is pretty universal, so something to this effect should be available for all operating systems. Windows has a built-in scheduler, Linux has cron. I'm clueless about Macs, but something like the above two just got to be there. Quick googling yielded http://macscripter.net/viewtopic.php?id=36932.
The following example is for Windows. Just tried it myself with v7.3.6 (except for the actual scheduling part). Seems to do the job.
</edit>
EDIT2: Huh, feeling rather dumb right now, I completely forgot that one can simply use the FahClient command line the way calxalot explained. One good thing about telnet, though: you can pause remote clients from a single controlling machine.
Not directly, but it's possible by using 3rd party methods. For example, the FAHClient listens to (default) port 36330 for telnet, so you could create pause/unpause scripts and put those in Windows scheduler. So, http://jerrymannel.com/blog/2008/11/11/ ... -tst10exe/ and schedule something like "tst10 /r:pause.txt /m" & "tst10 /r:unpause.txt /m".
pause.txt example (pauses slot 2, pause without parameter pauses all slots):
unpause.txt example (reverse of pause.txt):
Telnet is pretty universal, so something to this effect should be available for all operating systems. Windows has a built-in scheduler, Linux has cron. I'm clueless about Macs, but something like the above two just got to be there. Quick googling yielded http://macscripter.net/viewtopic.php?id=36932.
The following example is for Windows. Just tried it myself with v7.3.6 (except for the actual scheduling part). Seems to do the job.
</edit>
EDIT2: Huh, feeling rather dumb right now, I completely forgot that one can simply use the FahClient command line the way calxalot explained. One good thing about telnet, though: you can pause remote clients from a single controlling machine.
Not directly, but it's possible by using 3rd party methods. For example, the FAHClient listens to (default) port 36330 for telnet, so you could create pause/unpause scripts and put those in Windows scheduler. So, http://jerrymannel.com/blog/2008/11/11/ ... -tst10exe/ and schedule something like "tst10 /r:pause.txt /m" & "tst10 /r:unpause.txt /m".
pause.txt example (pauses slot 2, pause without parameter pauses all slots):
Code: Select all
localhost 36330
SEND "\m"
WAIT ">"
SEND "pause 2\m"
WAIT ">"
SEND "exit\m"
Code: Select all
localhost 36330
SEND "\m"
WAIT ">"
SEND "pause 2\m"
WAIT ">"
SEND "exit\m"
Last edited by Napoleon on Fri Jun 14, 2013 7:42 pm, edited 2 times in total.
Win7 64bit, FAH v7, OC'd
2C/4T Atom330 3x667MHz - GT430 2x832.5MHz - ION iGPU 3x466.7MHz
NaCl - Core_15 - display
2C/4T Atom330 3x667MHz - GT430 2x832.5MHz - ION iGPU 3x466.7MHz
NaCl - Core_15 - display
-
- Site Moderator
- Posts: 1117
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: restrict time-of-day when fah runs
Easiest thing would probably be to just leave the client running, and send pause/unpause commands via cron.
Like, at 8am run FAHClient --send-pause and at 8pm run FAHClient --send-unpause.
man crontab
There are gui apps to modify your crontab if you don't want to do it by hand from the terminal. Eg CronniX.
On OSX, if you're worried about the small amount of cpu time the client uses even when idle, you might modify the launchd plist that starts the client.
man launchd.plist
If these are user machines, instead of pausing during work hours you might want to use the idle power level.
If you're not using an idle folding power level, you can reduce the client's cpu usage some by setting client option idle-seconds 0 (zero) in FAHControl.
Like, at 8am run FAHClient --send-pause and at 8pm run FAHClient --send-unpause.
man crontab
There are gui apps to modify your crontab if you don't want to do it by hand from the terminal. Eg CronniX.
On OSX, if you're worried about the small amount of cpu time the client uses even when idle, you might modify the launchd plist that starts the client.
man launchd.plist
If these are user machines, instead of pausing during work hours you might want to use the idle power level.
If you're not using an idle folding power level, you can reduce the client's cpu usage some by setting client option idle-seconds 0 (zero) in FAHControl.
Re: restrict time-of-day when fah runs
Thanks for all the suggestions!
It would still be useful if this was a simple setting in FAHControl, but looks like that request is already in the database.
It would still be useful if this was a simple setting in FAHControl, but looks like that request is already in the database.