Bitcoin Forum
May 07, 2024, 12:14:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 [5] 6 7 »
81  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: 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?
82  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 20, 2011, 02:15:39 AM
Quote
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.
83  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 18, 2011, 07:27:12 AM
Oh, don't worry about me -  I personally don't overclock to the point of instability. But, as a software author, a majority of my support questions and problems revolve around users that overclock too aggressively, which is why I know quite a bit about the problem.
My only point was, that the software watchdog really doesn't do much, as it A) doesn't help a system made unstable from aggressive overclocking, and B) I know of no reasons other than what I posted that would cause a GPU to go below 50% load. (I.e. restarting a miner that is purposely throttled will have no positive outcome, restarting a miner that went low load because of overtemp will have no positive outcome, and restarting a miner pointed to a ddos'd pool will have no positive outcome)
Perhaps there is more reasons to have a software watchdog than I'm thinking of?
Well it's not designed to solve problem A so its moot. Problem B: Solves "Miner is idle" messages, and miner crashing (ie command window disappears, process dies)
84  Other / Beginners & Help / Re: First commercial ASIC miner specifications and pre-launch on: July 18, 2011, 05:45:54 AM
Related? http://forum.bitcoin.org/index.php?topic=26973.0 more specifically
im working on it. I think I should take a few days to learn mandarin but i have time while waiting for funding

Anyways I'm actually in China on vacation right now with nothing to do. I think I can fit in a trip to Guangzhou before I leave. Unless this is too secret for me to view of course.
85  Other / CPU/GPU Bitcoin mining hardware / Re: the most powerful mining rig ever contrived on: July 18, 2011, 05:37:07 AM
Is this related? http://forum.bitcoin.org/index.php?topic=29696.0? It talks about china, cheap manufacturing...Or is this all an elaborate scam?
86  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 17, 2011, 01:14:42 PM
I think the watchdog may need a little work.

The most common lockup that you will find is when a card locks up due to instability from too aggressive of an overclock.  When this happens, aticonfig will return 99% load, even though the card is essentially dead and not doing anything

(in fact, I don't think I've ever seen a GPU go below 50% in any case other than A) purposefully  throttling the card or B) when the card hits high temperature limit and throttles its self down for protection. - in either case, a restart of the miner wouldn't really be doing much)
yeah, pretty much what evlew said: unstable is...well not stable. I think you get better returns from a stable overclock.
Though I am working on a hardware watch dog to monitor my machines. I'll post a guide once I get it working..
87  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 17, 2011, 01:10:38 PM
I have a question, since you seem to have some knowledge about Linux:

Are there noticeable differences in speed to Win7?
I'm not sure, I moved to Linux because it's so much more reliable. My windows machines kept crashing/BSODing. Like twice a day. It got really annoying. Ask around on the forum I guess.

Well, then there's no need for me to switch, since my Win7 rig is working for five days already and never crashed so far...
Lucky you.
88  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 16, 2011, 09:35:12 AM
I have a question, since you seem to have some knowledge about Linux:

Are there noticeable differences in speed to Win7?
I'm not sure, I moved to Linux because it's so much more reliable. My windows machines kept crashing/BSODing. Like twice a day. It got really annoying. Ask around on the forum I guess.
89  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 16, 2011, 09:33:25 AM
Quote
8. Make the file and/or folders /home/user/.config/autostart/auto.desktop and add the following contents:


Code:
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "sh /home/user/start.sh"
Terminal=true
when doing this step and saving the file as auto.desktop and closing leafpad, the file is now called coin. Is this how it is supposed to be?

I made mine using nano and I didn't notice. Now that I check apparently that's how it's supposed to be.
90  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 16, 2011, 09:31:52 AM
Quote
user@linuxcoin:/opt/miners/phoenix$ ./phoenix.py -u http://my_user:my_pass@pit.deepbit.net:8332 -k phatk BFI_INT VECTORS FASTLOOP=false AGGRESSION=11 DEVICE=0 WORKSIZE=256
Traceback (most recent call last):
  File "./phoenix.py", line 123, in <module>
    miner.start(options)
  File "/opt/miners/phoenix/Miner.py", line 75, in start
    self.kernel = self.options.makeKernel(KernelInterface(self))
  File "./phoenix.py", line 112, in makeKernel
    self.kernel = kernelModule.MiningKernel(requester)
  File "kernels/phatk/__init__.py", line 132, in __init__
    platforms = cl.get_platforms()
pyopencl.LogicError: clGetPlatformIDs failed: platform not found khr

So when I try to start my miners I get the above error.  Any ideas?
Hmm... Seems like something isn't installed right. Is this a stock LinuxCoin install? Mine worked right away
91  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 16, 2011, 01:27:15 AM
I actually haven't tried SmartCoin yet but if I do I'll make another guide too.
92  Bitcoin / Mining / Re: Is there a way to get the power consome of a GPU without external devices? on: July 15, 2011, 10:47:59 AM
Or a clamp multimeter
93  Bitcoin / Mining / Re: [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 15, 2011, 08:17:53 AM
Close... Wink
You forgot to change the adapter number.
change line 2 to:
Code:
ld=`aticonfig --odgc --adapter=2 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
Other than that looks like your all set.
94  Bitcoin / Mining / [Guide]How to setup an automated headless LinuxCoin mining rig + watchdog on: July 15, 2011, 08:00:42 AM
All my mining rigs were running Windows 7 but they kept BSODing and crashing and I got tired of reseting them so I tried Linux. It kicked my butt the first day or so but in the end I got it to do my bidding Smiley

So in this guide I'll show you how to setup LinuxCoin to
  • run off a USB thumb drive
  • automatically boot and start mining unattended
  • automatically set overclocks and load fan speed profiles
  • setup a software watchdog to automatically kill and restart crashed miners
  • Huh
  • Profit


Credit: Most of this is based off a post by kjj http://forum.bitcoin.org/index.php?topic=7374.msg248025#msg248025
I couldn't get it to work for me so it's heavily modified by me to run on a stock LinuxCoin 0.2.1b install.

I'm using a 4GB flash drive I had laying around. I recommend good quality high speed flash drive. I'm using one of these http://www.newegg.com/Product/Product.aspx?Item=N82E16820220251

Rest of my Hardware
Two Sapphire 5850 Xtremes, Asus M4A79XTD EVO, 2GB RAM, Sempron 140 processor, 550W CoolerMaster PSU

OK let's get started.

1. Grab a copy of LinuxCoin 0.2.1b http://www.linuxcoin.co.uk/
2. Download Unetbootin http://unetbootin.sourceforge.net/
3. Download the persistence file. I got the 2GB (2048.zip) but I think the others would work too http://linuxcoin.co.uk/downloads/persistence/
4. Run unetbootin and select the LinuxCoin iso you just downloaded. Let it do it's thing. When it's done click exit but don't remove your flash drive yet.
5. Extract the persistence file to the root of your flash drive.
6. Open syslinux.cfg and replace it with this:
Code:
default menu.c32
prompt 0
menu title LinuxCoin
timeout 2

label linuxcoin
menu label LinuxCoin Persistent (flash only)
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config quiet splash persistent rw vga=791 noprompt
This let will make it autoboot into persistence mode. The noprompt disables the press ENTER to reboot/shutdown message at the end.

7. Plug the flash drive into your mining rig and boot it off the USB. Setup networking/wallpaper/whatever else you want to do. You might want to test out mining/connecting to the net/etc. Assuming you have no problems booting and running LinuxCoin...proceed.

8. Make the file and/or folders /home/user/.config/autostart/auto.desktop and add the following contents:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "sh /home/user/start.sh"
Terminal=true

9. Open up terminal run AMDOverdriveCtrl -h | grep active. (Hint type AMD and press tab to autocomplete) Note the index number of your active adapters. If you only have one then it is 0. Mine are 0 and 3.

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
xhost +
echo $DISPLAY > /home/user/.display
AMDOverdriveCtrl -i 0 -b gpu0.ovdr
AMDOverdriveCtrl -i 3 -b gpu3.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.

12. Make the files /home/user/miner1.sh and /home/user/miner2.sh and fill in:
Code:
#!/bin/bash
cd /opt/miners/phoenix
./phoenix.py -u http://yanz_1:pass@uswest.btcguild.com:8332/ -q 7 -k phatk BFI_INT VECTORS FASTLOOP=false AGGRESSION=11 DEVICE=0
Modify accordingly to mine for yourself.

13. Make the file /home/user/restart.sh and fill it with these magical lines:
Code:
#!/bin/bash
export DISPLAY=`cat /home/user/.display`
pc=`ps waxuf | grep miner1.sh -c`
ld=`aticonfig --odgc --adapter=0 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
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
pc=`ps waxuf | grep miner2.sh -c`
ld=`aticonfig --odgc --adapter=1 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
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
This will check the each GPU to make sure the load is greater than 50% and check to see that the process miner1 and miner2 exist. If not it will kill and restart the appropriate miner. It also logs it to /home/user/cron_job.log

14. Run sudo crontab -e -u user and add this line after the last line:
Code:
0-59 * * * * sh /home/user/restart.sh
This runs the restart miner script every minute.

15. Reboot

16.  Huh

17. Profit

18. Donate to 1LeLE4PP72CNfHDmT3JyFUQehZ4i41LxPz if this helped you.  Tongue

Comments and improvements welcome.
95  Bitcoin / Pools / Re: PoolMunity.com -we have Bitcoin and Namecoin! and MORE - first 100 pay no fees on: July 09, 2011, 12:31:15 PM
How do I know I'm one of the first 100? I'm looking for a no fee namecoin pool.
96  Bitcoin / Mining software (miners) / Re: fakeminer - All the thrills of mining, none of the drawbacks on: July 07, 2011, 02:36:54 AM
If only this could also recreate the soothing sound of a bajillion fans spinning at 100%.
97  Other / CPU/GPU Bitcoin mining hardware / Re: Has anyone tried 9mart's pcie extender cables? on: July 03, 2011, 10:07:30 AM
Do you understand what the difference is between these cables?
$20

Take a closer look...  Then read about power draw from the motherboard...

You see that 4-pin molex/power connector by any chance with cablesarus product?  What do you think it's for?
I was't talking about that one. The one with the Molex connector is $25 while the standard one is 12. 9marts is $4.50.
I was going to solder on my own molex connectors and BAM $20 for 5 mins of work.
98  Other / CPU/GPU Bitcoin mining hardware / Re: Has anyone tried 9mart's pcie extender cables? on: July 01, 2011, 02:45:56 AM
Thanks guys, you've been real helpful.

they are the same, same packaging, same component, same quality, both works as well.
You pay more for a little faster shipping.
Who's and who's are the same?
99  Other / CPU/GPU Bitcoin mining hardware / Re: Differences in 5850's on: July 01, 2011, 02:43:35 AM
Thanks guys!
I'm really worried about the warranty though. It seems the Sapphires have a fan problem though...
100  Other / CPU/GPU Bitcoin mining hardware / Differences in 5850's on: June 30, 2011, 03:13:01 PM
Are the newer Sapphire 5850 Xtremes better than the older(ish) 5850s? I'm looking at an XFX 5850 (non reference) that looks like this one on Newegg
http://www.newegg.com/Product/Product.aspx?Item=N82E16814150477 or should I go with the Sapphire? I know XFX has a better warranty but does it still apply if I buy it from a non authorized retailer? Sapphire does not honor the warranty without a legit sales receipt.
Pages: « 1 2 3 4 [5] 6 7 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!