how i setup folding@home as a background process
one point i will make, if you use this how to, please fold for team 12776 linux questions, who is supplying you with this how to!!!
that being said, i downloaded folding @ home from folding.stanford.edu under my users account. i simply ran Code:
mkdir folding Code:
cd folding Code:
wget http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02-Linux.tgz Code:
tar -xzf FAH6* Code:
./fah6 -configonly then team number 12776 then enter your pass key that you get from here http://fah-web.stanford.edu/cgi-bin/getpasskey.py now as super user aka root Code:
cd /etc/rc.d Code:
vi folding Code:
i then edit yourusername to fit the user name your using Code:
echo "cd /home/yourusername/folding; ./fah6 -verbosity 9 >> /dev/null &" | su yourusername now press esc a few times then Code:
:wq now make the file executable by running Code:
chmod 755 folding Code:
vi rc.M press the down key untill you reach the bottom of the script. press Code:
i Code:
# Start the folding edit to say that i recently got a quad core, but with the smp support from the folding program not really being there, i run multiple instances of folding. to do this i have 2 folders, one named folding and another named folding0. i just repeated the process for everything and added a 0 to the end of everything. |
if your processor is less than 1ghz i suggest you use small packets, if its greater than 1ghz and less than a dual core, i suggest normal packets, and if your processor is greater than a dual core, go all out with the gigantic packages.
now your folding at home will run in the background every time your computer goes up or reboots. i had the specification "if im gone for a month, and the power goes out, i want folding @ home to start automatically with out me issuing a startx, or even touching the pc" |
Hello forum,
I translate with babelfish, so it is not a good English. update done wget http://www.stanford.edu/group/pandeg...34-Linux64.tgz With/fah6 -configonly it's not starting. -configonly flag given, so exiting. With/fah6 -config it is started.. The rest is all done the same. They are now better ways to boot folding@home? have fun. |
just an additional idea: if you want to run something as a background process while using the machine interactively for something else it makes sense to give the process the scheduling priority SCHED_IDLEPRIO. Mainline doesn't have this feature, but you can get Con Kolivas' kernel patch and a program called schedtool to achieve it.
|
It seemed to start
with top PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2013 fietser 20 0 11300 660 536 R 100 0.0 37:10.48 fah6 and bash-4.1$ ps ux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND fietser 2013 99.5 0.0 11300 660 ? R 09:21 41:16 ./fah6 -verbosity 9 But it dit not. changed in /etc/rc.d/folding echo "cd /home/folding; ./fah6 -verbosity 9 >> /dev/null &" cd /home/folding; ./fah6 -verbosity 9 >> /dev/null & a now that it does work. In FAHlog.txt Arguments: -verbosity 9 [09:42:19] Completed 15000 out of 250000 steps (6%) @Martinus2u Thank you for your answer I do not understand. But let the folds run faster? What is the difference between the both of which are better. |
Quote:
And yes, I think running background tasks at idle priority is better, as is the whole scheduler. |
Okay, thanks for your information
I still have some gegoogle. http://www.linuxquestions.org/questi...isk-io-914322/ http://slackbuilds.org/repository/13...tem/schedtool/ Perhaps it is better that I do not start this. |
in terminal....
man nice all linux distributions have NICE process scheduling priority.... |
Quote:
|
All times are GMT -5. The time now is 10:13 AM. |