留言板 :
Number crunching :
How can you...
留言板合理
| 作者 | 消息 |
|---|---|
|
ampoliros 发送消息 已加入:24 Sep 99 贴子:152 积分:3,542,579 近期平均积分:5
|
|
|
N/A 发送消息 已加入:18 May 01 贴子:3718 积分:93,649 近期平均积分:0 |
Here is how I do it. [font='courier,courier new'] ! I think you should give Paul a copy of your how-to for the Wiki.[/font] |
|
ampoliros 发送消息 已加入:24 Sep 99 贴子:152 积分:3,542,579 近期平均积分:5
|
Ken, Glad to hear that it's working well for you, but don't give me any credit for this. :) I write web scripts not bash scripts. I've not had any problems with it on Mandriva (Mandrake) or Fedora except for the occasional glitch where the lockfile is not deleted on shutdown. It's a bit of a pain to su and delete it manually but it hardly ever happens so it's not a big deal. I've not seen anything like you describe so I'm not sure what that was about. If you were only looking at the seti app and not boinc in top it may be that boinc was doing it's CPU benchmarking at the time. That's about all I can offer without knowing more. 7,049 S@H Classic Credits |
|
Ken Phillips m0mcw 发送消息 已加入:2 Feb 00 贴子:267 积分:415,678 近期平均积分:0
|
And just in case there wasn't enough suggestions in this thread... Here is how I do it. This script has worked on Fedora, Mandriva, and other distibutions (Some exclusions may apply, see store for details). Ampoliros Cheers! I tried those script instructions you posted on RH8 (I know it's ancient!), and that script works a treat, once the user name is created properly and permissions sorted (goodbye two trashed workunits :-0 ), it even deletes the lockfile afterwards, however, I'm not sure this is a 'one off', but, the first time I actually rebooted, shortly after doing the setup, seti@home wasn't getting any CPU time, TOP showed it just sitting there running at zero! I stopped boinc, that didn't stop seti@home, so I killed it, then restarted the boinc service. All is now well, boinc is running at almost zero cpu, and seti@home is near 99%, and neatly steps out of the way when required. I haven't tried another reboot yet, but, is it likely to repeat the above issue? I'll try another reboot once/if it crunches a few more wu's. Wow, my RAC actually went up a bit today, there must be something wrong :-) TTFN, Ken Phillips Ken Phillips BOINC question? Look here "The beginning is the most important part of the work." - Plato |
|
ampoliros 发送消息 已加入:24 Sep 99 贴子:152 积分:3,542,579 近期平均积分:5
|
And just in case there wasn't enough suggestions in this thread... Here is how I do it. This script has worked on Fedora, Mandriva, and other distibutions (Some exclusions may apply, see store for details). I used to just call the BOINC daemon from rc.local but I dropped that in favor of this approach. Running it under a different user also makes it very easy to check on things [$ top -u boinc] and start and stop the service if I need to [# service boinc start|stop|restart|status]. 7,049 S@H Classic Credits |
|
N/A 发送消息 已加入:18 May 01 贴子:3718 积分:93,649 近期平均积分:0 |
[font='courier,courier new']That's pretty much it. I prefer the ~/.bash_profile method (as shown below) but the idea is that BOINC should be the last call in init, but before the login app is called. Here's how I do it: # ~/.bash_profile alias boinc="cd /Library/Application\\ Support/BOINC\\ Data/; (/Applications/BOINC\\ Menubar.app/Contents/Resources/./boinc &); cd $OWD;" # Some more junk here... boinc # End of file Depending on what you're running, you'll hafta adjust the execution line.[/font] |
|
Iztok s52d (and friends) 发送消息 已加入:12 Jan 01 贴子:136 积分:393,469,375 近期平均积分:116
|
So, what your saying is, put: Hi! I put this into my rc.local: echo "cd /home/boinc;./do_boinc >>b.log 2>&1 &" |su - boinc do_boinc is shell script to start boinc, b.log records all messages. Boinc runs as user boinc, of course. 73 Iztok |
Gonad the Destroyer®©™ 发送消息 已加入:6 Aug 99 贴子:204 积分:12,463,705 近期平均积分:0
|
So, what your saying is, put: /boinc/folder/destination/./boinc -return_results_immediately at the end of /etc/rc.d/rc.local???? (running Mandriva 2k5 LE) I been trying to figure this out also, I would like boinc to start on my P4, as all it does is crunch, that way, when the wife trips a breaker it doesnt have to wait till I get home from work......heh |
StokeyBob 发送消息 已加入:31 Aug 03 贴子:848 积分:2,218,691 近期平均积分:0
|
They have lost me to MiniZiper. Maybe the easy way is to just leave your machine running. |
|
N/A 发送消息 已加入:18 May 01 贴子:3718 积分:93,649 近期平均积分:0 |
[font='courier,courier new']"init" usually means initialization, and ".d" usually means daemon - What used to be called "TSR"s in DOS ("INIT" or "Extensions" in Mac OS). When Linux boots up, it reads its init.d file to find out what to do, in the same way that DOS ran autoexec.bat. Some distros execute rc; others, /boot. Ideally, you'd add your ./boinc line at the end of init.d, and it would work. Another possibility is to add it to your own .login (or .bash_profile) file. This is easier to recover from if the line doesn't work, but you'd have to login to your user account (on your computer) in order to get started. Either way, "Hay que ser Mandraque..." !-P[/font] |
|
Scarecrow 发送消息 已加入:15 Jul 00 贴子:4520 积分:486,601 近期平均积分:0
|
Make that BOINC starts automatically wen Linux starts ? I got Mandriva Linux BETA 2...Please help! One of the neat (and/or frustrating) things about Linux is that there are a bunch of ways of accomplising the same thing. In my case seti/boinc runs as a user only. While the init.d script will work for that, we only have system related items start up that way on the seti machine. The quick and dirty way we're starting it is via the @reboot instruction in crontab. There's all sorts of pros and cons on how you do it. In crontab, the user that is the 'seti user' has @reboot /home/scale1/BOINC/boinc as the first line. When the system reboots (which is seldom) boinc starts up and runs. If we want to shut it down (again, seldom) we kill boinc and the setiathome with kill and pidof. Bet you're REAL confused now, huh? :) |
Chilean 发送消息 已加入:6 Apr 03 贴子:498 积分:3,200,504 近期平均积分:0
|
|
|
Colossus 发送消息 已加入:8 Jul 05 贴子:73 积分:23,618 近期平均积分:0
|
Please have a look at the init.d script in this message: Linux init.d Script This might get you started. This is the voice of world control. I bring you peace. It may be the peace of plenty and content or the peace of unburied dead. The choice is yours. |
Chilean 发送消息 已加入:6 Apr 03 贴子:498 积分:3,200,504 近期平均积分:0
|
|
©2020 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.