Post
Topic
Board Hardware
Re: ANTMINER S3 Discussion and Support Thread.
by
BennyTheBall
on 02/08/2014, 20:23:12 UTC
Since I've added '/etc/init.d cgminer restart' to my crontab I've seen my 24-hour hashrate increase from 410 to 480 on my GOOD units. From 398-420 on my "Bad" units.

Some people are more code-friendly than others. chrontab is a bit too much for me right now.
what would be the string of code to put in after sshing to miner and in what directory?
If you don't mind, show us all commands, please.

You should contact Bitmain.  Perhaps they can include that modification in a firmware update.

I have already contacted Bitmain about adding a restart timeframe to the firmware. (Much like many of the SCRYPT mining controllers)
BEAR IN MIND, I AM AWAITING BMT ENGINEER'S ADVICE REGARDING RESTARTING THE CGMINER PROCESS SO OFTEN.
There may be a reason they didn't include it as an option, but I'm more apt to believe that they simply just didn't think to do so.
That OpenWRT controller is still VERY MUCH a router.

Here's the rundown. It's very basic stuff.

SSH into your miner

crontab -e

This will load up the crontab editor, the usage is the same as Vi
Press I to enter 'Input' mode.
Add the following text below the monitoring script.

0,30 * * * * /etc/init.d/cgminer restart

After doing so, press ESC to get back into command mode.

Type:

:wq

This will write your changes and quit.

Type:

crontab -l

This will let you see if your new entry has been added to the crontab.

If it's there, you're good to go.
If not, Google how to use Vi or read one of the many posts in this thread that explain it.







How often does cgminer restart with those settings?
it restarts at 0 minutes and 30 minutes every hour, day, week, and month. Basically every 30 minutes but on the hour and on the half hour if your clock is correct.

An easier way to do this if you don't want to mess with crontab is to use the web interface. Go to "System"->"Scheduled Tasks" and just add the 0,30 * * * * /etc/init.d/cgminer restart command there. Save and Apply.