max in montreal
|
|
July 19, 2011, 01:36:46 PM |
|
10. Now run AMDOverdriveCtrl -i 0. This opens up AMDOverdriveCtrl GUI for card 0. Overclock your card and setup your fan profiles. Export it as a file called gpu0.ovdr. Repeat for each card you have and change index numbers accordingly (ie AMDOverdriveCtrl -i 3)
11. Make the file /home/user/start.sh and put paste in the following:
Code: #!/bin/bash sleep 20 AMDOverdriveCtrl -i 0 -b gpui0.ovdr AMDOverdriveCtrl -i 3 -b gpui3.ovdr lxterminal --title miner1 --command "sh /home/user/miner1.sh" lxterminal --title miner2 --command "sh /home/user/miner2.sh"This will make the computer wait 20 seconds to loadup/connect to the network/etc. Then it will load the overclock and fan profiles for each GPU and then start your miners. Is the above correct?
|
|
|
|
Reckman
|
|
July 19, 2011, 05:02:59 PM |
|
10. Now run AMDOverdriveCtrl -i 0. This opens up AMDOverdriveCtrl GUI for card 0. Overclock your card and setup your fan profiles. Export it as a file called gpu0.ovdr. Repeat for each card you have and change index numbers accordingly (ie AMDOverdriveCtrl -i 3)
11. Make the file /home/user/start.sh and put paste in the following:
Code: #!/bin/bash sleep 20 AMDOverdriveCtrl -i 0 -b gpui0.ovdr AMDOverdriveCtrl -i 3 -b gpui3.ovdr lxterminal --title miner1 --command "sh /home/user/miner1.sh" lxterminal --title miner2 --command "sh /home/user/miner2.sh"This will make the computer wait 20 seconds to loadup/connect to the network/etc. Then it will load the overclock and fan profiles for each GPU and then start your miners. Is the above correct? No they need to match
|
|
|
|
shotgun
Member
Offline
Activity: 98
Merit: 11
|
|
July 19, 2011, 06:24:46 PM |
|
Headless automation is great. Thanks for the write up.
From personal experience, it's way easier to manage pool H/A with Bitcoin Mining Proxy than with Smartcoin or some homegrown scripts that watch load. I have 4 boxes with 3 cards each and I'm using MiningMonitor to notify me of down'd workers - having to ssh into a box to see Smartcoin information is a waste of my time. I have a separate web/db server running the proxy app so it doesn't get affected by rigs that need to reboot or have work done to them. YMMV.
|
<luke-jr> Catholics do not believe in freedom of religion.
|
|
|
Reckman
|
|
July 20, 2011, 12:23:32 AM |
|
the restart script doesnt seem to be working for me....followed this exactly
is it working for others?
|
|
|
|
Yanz (OP)
|
|
July 20, 2011, 02:15:39 AM |
|
10. Now run AMDOverdriveCtrl -i 0. This opens up AMDOverdriveCtrl GUI for card 0. Overclock your card and setup your fan profiles. Export it as a file called gpu0.ovdr. Repeat for each card you have and change index numbers accordingly (ie AMDOverdriveCtrl -i 3)
11. Make the file /home/user/start.sh and put paste in the following:
Code: #!/bin/bash sleep 20 AMDOverdriveCtrl -i 0 -b gpui0.ovdr AMDOverdriveCtrl -i 3 -b gpui3.ovdr lxterminal --title miner1 --command "sh /home/user/miner1.sh" lxterminal --title miner2 --command "sh /home/user/miner2.sh"This will make the computer wait 20 seconds to loadup/connect to the network/etc. Then it will load the overclock and fan profiles for each GPU and then start your miners. Is the above correct? No they need to match Yeah, they need to match. I was copying/pasting my own script and for some reason I put an extra i in there. Fixed in the post. Thanks for pointing that out.
|
With great video cards comes great power consumption.
|
|
|
Yanz (OP)
|
|
July 20, 2011, 02:17:51 AM |
|
can the cron job work?
when I setup the cronjob and added a debug info
echo "miner1->$pc $ld" >> /home/user/cron_job.log
the $ld always be blank, it seems "aticonfig --odgc --adapter=1" can;t been run at cronjob?
Hmm, I have no idea, I haven't tried. Maybe you should fix the $Id problem first?
|
With great video cards comes great power consumption.
|
|
|
Yanz (OP)
|
|
July 20, 2011, 02:19:07 AM |
|
the restart script doesnt seem to be working for me....followed this exactly
is it working for others?
Try this: Exit out one of the miners. Then run sh restart.sh See what happens.
|
With great video cards comes great power consumption.
|
|
|
Yanz (OP)
|
|
July 20, 2011, 02:24:10 AM |
|
Headless automation is great. Thanks for the write up.
From personal experience, it's way easier to manage pool H/A with Bitcoin Mining Proxy than with Smartcoin or some homegrown scripts that watch load. I have 4 boxes with 3 cards each and I'm using MiningMonitor to notify me of down'd workers - having to ssh into a box to see Smartcoin information is a waste of my time. I have a separate web/db server running the proxy app so it doesn't get affected by rigs that need to reboot or have work done to them. YMMV.
You have your point but this is designed to keep the GPU's online, not the connection to the pool alive. If the pool goes down then no matter how many restarts, the pool isn't going to come back up. And MiningMonitor is kinda expensive. Ins't it for profitable to let the worker stay down until you get home then to pay MiningMonitor's fees?
|
With great video cards comes great power consumption.
|
|
|
shotgun
Member
Offline
Activity: 98
Merit: 11
|
|
July 20, 2011, 04:28:35 AM |
|
Headless automation is great. Thanks for the write up.
From personal experience, it's way easier to manage pool H/A with Bitcoin Mining Proxy than with Smartcoin or some homegrown scripts that watch load. I have 4 boxes with 3 cards each and I'm using MiningMonitor to notify me of down'd workers - having to ssh into a box to see Smartcoin information is a waste of my time. I have a separate web/db server running the proxy app so it doesn't get affected by rigs that need to reboot or have work done to them. YMMV.
You have your point but this is designed to keep the GPU's online, not the connection to the pool alive. If the pool goes down then no matter how many restarts, the pool isn't going to come back up. And MiningMonitor is kinda expensive. Ins't it for profitable to let the worker stay down until you get home then to pay MiningMonitor's fees? MiningMonitor is only 1BTC/month. Pete has added so many new features in the last two weeks that it is fully worth the cost. The proxy + miningmonitor has solved all of my uptime and notification issues. For example, if one of my 12 GPUs goes down (or all b/c a pool is offline) at 10am and I'm at the office and don't get home until 6pm - then it definitely makes sense to pay 1BTC/month to know about it prior to losing 8 hours of mining time. Even if I were to ssh into my home LAN (which I do anyway) to fix things, that's a whole bunch of micromanagement during the work day when I'm supposed to be doing things at work. Handling the miners should almost never happen - they should be online 24x7 and if the primary pool is down then the secondary and tertiary pool should be available. If my outgoing internet connection on the LAN goes down then that's another story - and, once I get my secondary cisco router online - the internet will automagically connect to my secondary provider. Miners must be active 24x7!
|
<luke-jr> Catholics do not believe in freedom of religion.
|
|
|
jondecker76
|
|
July 20, 2011, 07:24:20 AM |
|
Headless automation is great. Thanks for the write up.
From personal experience, it's way easier to manage pool H/A with Bitcoin Mining Proxy than with Smartcoin or some homegrown scripts that watch load. I have 4 boxes with 3 cards each and I'm using MiningMonitor to notify me of down'd workers - having to ssh into a box to see Smartcoin information is a waste of my time. I have a separate web/db server running the proxy app so it doesn't get affected by rigs that need to reboot or have work done to them. YMMV.
Not to try to take focus away from the main topic of the thread here - but.. I think you have mistaken the purpose of smartcoin - its not meant to be a monitor at all. Its meant to automatically control your mining operation so that you don't have to check on it all the time (failovers, lockup detection, automatic restarting of miners, etc) - as well as give you features like profiles (I can change where I am mining to in less than 5 seconds just by changing to another profile that I have defined), easy multi-instance setups etc. Coming versions will have multi-machine support, munin plugin support (trending graphs viewable over the internet), email/SMS notifications, etc. Sure, it has an overview "status" screen where you can look at a quick overview of the operation, but thats not the purpose of smartcoin.
|
|
|
|
Reckman
|
|
July 20, 2011, 07:50:34 AM |
|
the restart script doesnt seem to be working for me....followed this exactly
is it working for others?
Try this: Exit out one of the miners. Then run sh restart.sh See what happens. It doesn't restart them, It logs it, but doesnt start the miners back for some reason.
|
|
|
|
Yanz (OP)
|
|
July 20, 2011, 08:59:56 AM |
|
the restart script doesnt seem to be working for me....followed this exactly
is it working for others?
Try this: Exit out one of the miners. Then run sh restart.sh See what happens. It doesn't restart them, It logs it, but doesnt start the miners back for some reason. Any errors when you manually run it?
|
With great video cards comes great power consumption.
|
|
|
Yanz (OP)
|
|
July 20, 2011, 09:05:50 AM |
|
MiningMonitor is only 1BTC/month. Pete has added so many new features in the last two weeks that it is fully worth the cost. The proxy + miningmonitor has solved all of my uptime and notification issues. For example, if one of my 12 GPUs goes down (or all b/c a pool is offline) at 10am and I'm at the office and don't get home until 6pm - then it definitely makes sense to pay 1BTC/month to know about it prior to losing 8 hours of mining time. Even if I were to ssh into my home LAN (which I do anyway) to fix things, that's a whole bunch of micromanagement during the work day when I'm supposed to be doing things at work. Handling the miners should almost never happen - they should be online 24x7 and if the primary pool is down then the secondary and tertiary pool should be available. If my outgoing internet connection on the LAN goes down then that's another story - and, once I get my secondary cisco router online - the internet will automagically connect to my secondary provider. Miners must be active 24x7! I think you missed the point. When miningmonitor notifies you of a downed miner you still have to manually reset it. What the script does is detect the downed miner and restart it without telling out. MiningMonitor Miner down -> MiningMonitor notification -> You reset -> miner Scripts miner down -> script detects -> script resets ->miner No middle man -> No money spent Anyways, that's how I view it. If MiningMonitor works for your setup then by all means use it. I'm not here to make you change your setup, I'm just stating the way I see it. Yes indeed 24x7 mining ftw!
|
With great video cards comes great power consumption.
|
|
|
shotgun
Member
Offline
Activity: 98
Merit: 11
|
|
July 20, 2011, 05:18:52 PM |
|
MiningMonitor is only 1BTC/month. Pete has added so many new features in the last two weeks that it is fully worth the cost. The proxy + miningmonitor has solved all of my uptime and notification issues. For example, if one of my 12 GPUs goes down (or all b/c a pool is offline) at 10am and I'm at the office and don't get home until 6pm - then it definitely makes sense to pay 1BTC/month to know about it prior to losing 8 hours of mining time. Even if I were to ssh into my home LAN (which I do anyway) to fix things, that's a whole bunch of micromanagement during the work day when I'm supposed to be doing things at work. Handling the miners should almost never happen - they should be online 24x7 and if the primary pool is down then the secondary and tertiary pool should be available. If my outgoing internet connection on the LAN goes down then that's another story - and, once I get my secondary cisco router online - the internet will automagically connect to my secondary provider. Miners must be active 24x7! I think you missed the point. When miningmonitor notifies you of a downed miner you still have to manually reset it. What the script does is detect the downed miner and restart it without telling out. MiningMonitor Miner down -> MiningMonitor notification -> You reset -> miner Scripts miner down -> script detects -> script resets ->miner No middle man -> No money spent Anyways, that's how I view it. If MiningMonitor works for your setup then by all means use it. I'm not here to make you change your setup, I'm just stating the way I see it. Yes indeed 24x7 mining ftw! I understand what SmartCoin does - but since I have actually spend time with both SmartCoin and BTC-mining-proxy I can say from *my* experience that the proxy accomplishes the purpose much easier and cleaner than SmartCoin. I can switch pools for all 12 GPUs in one click of a web interface with BTC Mining Proxy, where as SmartCoin I have to go and SSH into my bastion host, then ssh into the rigs, then get into the smartcoin interface, then issue a couple of commands. The proxy has a protected web interface that I can access much easier. I'm not trying to bad mouth smartcoin - it's a valid project and I'm glad its being developed. I just don't think it works as well as the combination of miningmonitor (trending and graphs and email/sms notification) and the proxy (pool management, worker management web interface, dashboard to see all 12GPUs state in one screen). If smartcoin works for you then that's great. It frustrated me and I didn't like the way it manages workers/pools/profiles/etc.
|
<luke-jr> Catholics do not believe in freedom of religion.
|
|
|
Reckman
|
|
July 21, 2011, 02:08:36 AM Last edit: July 21, 2011, 02:36:04 AM by Reckman |
|
the restart script doesnt seem to be working for me....followed this exactly
is it working for others?
Try this: Exit out one of the miners. Then run sh restart.sh See what happens. It doesn't restart them, It logs it, but doesnt start the miners back for some reason. Any errors when you manually run it? user@linuxcoin:~$ export DISPLAY=`cat /home/user/.display` user@linuxcoin:~$ pc=`ps waxuf | grep miner1.sh -c` user@linuxcoin:~$ ld=`aticonfig --odgc --adapter=0 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1` aticonfig: This program must be run as root when no X server is active user@linuxcoin:~$ if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then > kill `ps -ef | grep miner1 | grep -v grep | awk '{print $2}'` > lxterminal --title miner1 --command "sh /home/user/miner1.sh" & > date +"%D %r miner1 restarted" >> /home/user/cron_job.log > fi kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] [1] 3583 user@linuxcoin:~$ pc=` (lxterminal:3583): Gtk-WARNING **: cannot open display:
[1]+ Exit 1 lxterminal --title miner1 --command "sh /home/user/miner1.sh"
user@linuxcoin:~$ export DISPLAY=`cat /home/user/.display` user@linuxcoin:~$ pc=`ps waxuf | grep miner1.sh -c` user@linuxcoin:~$ ld=`aticonfig --odgc --adapter=0 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1` aticonfig: This program must be run as root when no X server is active user@linuxcoin:~$ if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then > kill `ps -ef | grep miner1 | grep -v grep | awk '{print $2}'` > lxterminal --title miner1 --command sh /home/user/miner1.sh & > date +"%D %r miner1 restarted" >> /home/user/cron_job.log > fi kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] [1] 3964 user@linuxcoin:~$ pc=`ps waxuf | grep miner2.sh -c`
(lxterminal:3964): Gtk-WARNING **: cannot open display: [1]+ Exit 1 lxterminal --title miner1 --command sh /home/user/miner1.sh user@linuxcoin:~$ ld=`aticonfig --odgc --adapter=1 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1` aticonfig: This program must be run as root when no X server is active user@linuxcoin:~$ if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then > kill `ps -ef | grep miner2 | grep -v grep | awk '{print $2}'` > lxterminal --title miner2 --command sh /home/user/miner2.sh & > date +"%D %r miner2 restarted" >> /home/user/cron_job.log > fi bash: [: -lt: unary operator expected user@linuxcoin:~$ pc=`ps waxuf | grep miner3.sh -c` user@linuxcoin:~$ ld=`aticonfig --odgc --adapter=2 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1` aticonfig: This program must be run as root when no X server is active user@linuxcoin:~$ if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then > kill `ps -ef | grep miner3 | grep -v grep | awk '{print $2}'` > lxterminal --title miner3 --command sh /home/user/miner3.sh & > date +"%D %r miner3 restarted" >> /home/user/cron_job.log > fi
?? not sure if im doing this right thanks for the help
|
|
|
|
Yanz (OP)
|
|
July 21, 2011, 09:59:55 AM |
|
That's weird. I don't get that message. Try running the aticonfig line as root.
|
With great video cards comes great power consumption.
|
|
|
Reckman
|
|
July 22, 2011, 01:36:10 AM |
|
root@linuxcoin:/home/user# export DISPLAY=`cat /home/user/.display` root@linuxcoin:/home/user# pc=`ps waxuf | grep miner1.sh -c` root@linuxcoin:/home/user# ld=`aticonfig --odgc --adapter=0 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1` root@linuxcoin:/home/user# if [ $pc -lt "2" ] || [ $ld -lt "50" ] ; then > kill `ps -ef | grep miner1 | grep -v grep | awk '{print $2}'` > lxterminal --title miner1 --command sh /home/user/miner1.sh & > date +"%D %r miner1 restarted" >> /home/user/cron_job.log > fi kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] [1] 3668 root@linuxcoin:/home/user# (lxterminal:3668): Gtk-WARNING **: cannot open display:
I tried a fresh install...still doesn't want to work, using the default restart script.
|
|
|
|
Yanz (OP)
|
|
July 22, 2011, 02:43:59 PM |
|
Are you doing this remotely over ssh or with a keyboard and monitor physically at that machine?
|
With great video cards comes great power consumption.
|
|
|
brunoshady
Sr. Member
Offline
Activity: 262
Merit: 250
Dubs Get
|
|
July 22, 2011, 03:42:51 PM |
|
yanz, give me a help here please.. I followed you guide, but using ubuntu, and everything gone fine, except the scripts parts... I've created the scripts that you asked, but when I run them, the terminal screen just popup and close... for example, I've created the start.sh script with the following code #!/bin/bash sleep 4 gnome-terminal --title GPU0 --command "sh /home/corelinux1/gpu0.sh" gnome-terminal --title GPU1 --command "sh /home/corelinux1/gpu1.sh" and the gpu0 and gpu1.sh on the same location, but when I run this script, I get the sleep time and then the bot miner scripts popup and close ps, the code for the miner #!/bin/bash cd ~/poclbm/ ./poclbm.py user:pass@blablabla#serv1 --frames=15 --device=0 --worksize=128 --vectors --tolerance=1 --failback=3
|
😆
|
|
|
Reckman
|
|
July 22, 2011, 05:24:57 PM |
|
Are you doing this remotely over ssh or with a keyboard and monitor physically at that machine?
Plugged in with keyboard and monitor, I can try over ssh w.o monitor if you think tht might help
|
|
|
|
|