Bitcoin Forum
May 30, 2024, 10:22:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: February 16, 2014, 04:09:17 AM
Hi Jdape....Im enjoying the newer versions of cgmon so far (01b16)!

a quick bug report:

1) The rebooting of the rig if hasrate or pool is not communicating is a great thing. Only i did experiment it and i found that if the internet connection is not back after the reboot it will keep trying to reboot sgminer instead of rebooting the rig. Wouldn't it be better to reboot the rig, in case it has an issue?

Thanks for the report!

Maybe.  If one reboot didn't fix it, is another going to?  We probably don't want a rig to keep rebooting over and over.

3) Is it possible to add a scrypt (optional to user) to reboot the rig once in a while. Im not sure about this, but is it possible that we are stuck on old shares? Ive noticed i am more productive when i reboot the rig once in a while. Maybe rebooting the rig 3-4 times a day isn't a bad idea, considering Ubuntu takes less than a minute to reboot.

Thx again!

You can use a shell script like this:
Code:
#!/bin/sh
/sbin/shutdown -r now

Pop that in a file, chmod +x it, then add it to /etc/crontab to reboot every so many hours.

How safe is it to shutdown or reboot a rig while sgminer is running?
When i add a line in the BASH file to stop sgminer cgmon tries to re-open it (since I am running it every 2 minutes). Is there a way to halt the cronjob until the next reboot?
2  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: February 12, 2014, 12:17:55 AM
Hey there!  I have cgmon installed. And I can run it manually, check the log and the manual run is logged. However, it will not run via cron. I have set up the cron as:

* * * * *        root     /home/cgmon.tcl


My cgmon file is located in /home.   So I feel that I have done everything right. But for some reason the cron is not running.  Btw I am using BAMT.  I would sincerely appreciate any help I could get.

Have you made sure cron is actually running on your system?  If so try adding
Code:
>/dev/null 2>&1
to the end of your cgmon cron config.

Hi Jdape....Im enjoying the newer versions of cgmon so far (01b16)!

a quick bug report:

1) The rebooting of the rig if hasrate or pool is not communicating is a great thing. Only i did experiment it and i found that if the internet connection is not back after the reboot it will keep trying to reboot sgminer instead of rebooting the rig. Wouldn't it be better to reboot the rig, in case it has an issue?

2) I dont put the /dev/null 2>&1 at the end of the cronjob and it works. Just thought i'd mention it

3) Is it possible to add a scrypt (optional to user) to reboot the rig once in a while. Im not sure about this, but is it possible that we are stuck on old shares? Ive noticed i am more productive when i reboot the rig once in a while. Maybe rebooting the rig 3-4 times a day isn't a bad idea, considering Ubuntu takes less than a minute to reboot.

Thx again!
3  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: February 01, 2014, 05:31:06 PM
funkycold:
Good to hear you fixed it, it was for that reason I originally added that line, helps you out quite a lot, especially when you are tired! Wink

rorbit:
I have a few times myself experienced that touching the clock speeds when, in my case, sgminer is running, and it locks up.
Doesn't always happen though...

bobers:
As it should (you guys with BAMT will have to give us some feedback) already work in BAMT, it's pretty easy to install.
If it will be included in BAMT as default, well, that is up to jdape and the BAMT developer Smiley

Never Liked BAMT (sorry just my Opinion). It kept giving me errors, had a terrible experience with it. Ubuntu is the only way to go IMO not even Xubuntu.
4  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: February 01, 2014, 12:02:31 AM
Try adding an extra line:

At line 102:
# cgminer is not running, restart it.
notice "$cgminer_exec not running, starting..."
notice "$mining_command"

With the extra line you can see the cgminer command when you run cgmon. Makes it a little easier to debug invalid arguments.

Thx thats a great addition!

I having an issue starting sgminer from cgmon.
It says "sgminer not running, starting.....
then it shows my config file (with your new addition line 102 command)
sgminer started successfully"

but nothing.....sgminer doesnt start at all...

If i start sgminer manually, it works...

Any ideas whats going on? cgminer doesnt have this issue.
here is what im doing different from cgminer to sgminer

set cgminer_exec "sgminer"
set cgminer_path "/my/path/to/sgminer/"
set use_sgminer "yes"

again, I have a shell file which starts sgminer just fine...but why isnt cgmon working?

what am i missing here?




UPDATE!!!!   

I had a "-" missing in front of the "I" in my config file.....aaarrrgghhhhhhhhh........
if it wasnt for your new command line 102  addition i would have never seen the mistake!!!

Great WORK!!! you saved me hours of debugging!!!

thx


5  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: January 31, 2014, 05:45:22 AM
Hey, I found this post a while ago, and as I am using sgminer and also wanted some easier customization, I have reworked the script quite a lot.

Still needs a little more work though, then I will be sharing it here.

I highly appreciate your work!

Sgminer is the only way to go for newer GPU's (R9 290, R9 290X, R9 280X, etc...)
it is very stable and has lots of bugs fixed....just my opinion
6  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: January 31, 2014, 04:57:13 AM

For me at least, when a GPU goes SICK or DEAD a full reboot of the computer is always required to get the GPU working again.   This has been the case with all my rigs and GPUs.  It could still be just me though since my rigs are running mostly identical software...  Anyhow, that's why it restart the entire computer.



its fine, rebooting the computer isnt a bad idea for dead/sick GPU's considering ubuntu is really quick to reboot unlike Windows....Linux is the only way to go for continuous mining IMO....thx for everything jdape! It is getting closer to CGwatcher....

7  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: January 30, 2014, 11:45:39 PM
Try changing values to:
set cgminer_exec "cgminer"
set cgminer_path "/opt/miners/cgminer/"

Did you remember to change username in:
set mining_user "user"

Thx dr00g!

I already had figured out the set_sgminer = "no" part, the issue was with the path.
I got everything working now.

For those who may struggle, here is what to put since the new 0.1b6 has two fields (path and exec) which kind of threw me off a little.

set cgminer_exec "cgminer"
set cgminer_path "/your/path/to/cgminer/"


About the GPU disabled. Yes i waited 3-4minutes and it did detect my DEAD/SICK GPU...one little problem, it rebooted my computer instead of cgminer...is this normal?

Here is the output message i got...

"GPU 0 no accepted shares in 458 seconds. GPU probably hung.
cgminer not running, starting....."

and it reboot my computer...Is this normal?

A small suggestion, maybe you should only reboot that particular GPU, I was looking at API commands for cgminer, The command for restarting a GPU is gpurestart|N where N is the GPU number. So gpurestart|0 would restart GPU0.

Just a suggestion, since GPU restarts are much quicker than cgminer restarts.

Thx and the only thing missing now would be:

1) Set Hash rate, if falls below reboot cgminer

Thx Guys!!

8  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: January 30, 2014, 01:51:58 AM
Yes That crontab suggestion worked thx!

Here are some of the issues im having with the new cgmon 0.16b

1) I cant get Cgminer to start, it shows "cgminer not running, starting..." "cgminer started successfully"
   But nothing happens.

When i remove the cgminer_path "" blank, it works, however it restarts cgminer multiple times....

Question: What should i put in the cgminer_exec and cgminer_path
              Whats the difference between these two fields?


2) I;m also having another problem where even if i disable all my GPU's manually from CGminer i still get all "GPU's running healthy" message from cgmon.

Am I doing something wrong? shouldnt it detect DEAD GPU's and restart cgminer?

Thx
 
9  Bitcoin / Mining software (miners) / Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more on: January 29, 2014, 11:03:35 PM
Great work guys! I love cgmon!

I am running 4X R9 280X GPU's on scrypt mining,
a few questions:

1) When i manually disable all my GPU's in cgminer, it still shows as "cgminer running and all GPU's healthy, cgmon 0.1b5"
Any idea's how cgmon can detect sick or Dead GPU's accurately?

2) Do I need to be root user to run cgmon,tcl ? since my rig reboots sometimes and i am not there 24/7, I would like cgmon to make sure cgminer is running at all times. I beleive my rig logs in as user and not root. Will cgmon still run?

Thx
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!