cgminer blues on Windows

by Peter Moss 10. April 2012 17:56

 

I have played with cgminer bitcoin mining program for few months now.  My rig is running on Windows 7, it consists of 3x7970 graphics cards and 5 icarus development boards.

Every time I tried to overclock or undervolt GPUs on any of the 7970 cards, I got crashes in AMD drivers.  I got tired of babysitting the rig constantly so I decided to write my own process watchdog for it.

I wanted something that would restart cgminer everytime there is a crash, slowdown in mining activity, network outage, or unresponsive system.  My watchdog needed to have minimal impact on CPU percentage and total usage time.   I opted for polling periodically (every 3 minutes or so) cgminer HTTP APIs, check the hash rates, status and more importantly checking if cgminer process ifself is running and not stuck in werfault prompt that would require user input.  Since my rig runs headless, my watchdog needs to detect those situations and act accordingly.  Also,  sockets code had to be run in non-blocking mode to handle unresponsive cgminer, OS or network outages.

After few weeks of trying and testing various, blocking cases I finally developed responsive, watchdog with minimal CPU and memory footprint.  It detects the nasty cgminer crashes, hung GPUs or a general slowdown in performance.  It supports remote HTTP interface to control the watchdog remotely.

My rig runs well (with an occasional cgminer crash here and there) undervolted now, consumes 740W and runs at 3850 Mh/s hashing rate.

Compiled binaries, conf, faq files can be downloaded from:

 

http://www.petermoss.com/akbash/

 

I have a short todo list:  email notifications when tiggers are set, maybe a fancier HTML output etc.

Right now, the output from the http://listen_ip:listen_port/wd_cmd=status; fits perfectly on my tiny Blackberry screen so I'm quite happy with the results.

My cgminer-wdog babysits my rig when I'm away.  The only issue I have that cannot be controlled from my rig is when my Internet connection/router dies, I have no way to bootstrap it from the Internet.

For that I'd probably need a wireless connection and PSU with ethernet connectivity and something to control that port to recycle power on my router/DSL link.

 

Anyway, if you run cgminer on Windows, you might find this program useful.  Enjoy.

 

Tags:

Downloads

Comments

3/6/2013 6:27:56 PM #

Good work, Peter. More robust than the WSH script we've been using. Burnins are actually done in Ubuntu, but our Customer Service people don't touch Linux. We try to keep a few people mining at a time, so they all get experience with running and monitoring a miner. The kinda get scored for uptime, so having a hung miner overnight or during a weekend is pretty frustrating.

A couple issues we have with WSH are that it sometimes loses track of the process and starts extra copies, and if we have it launch during boot (prior to Windows logon) then their's no UI to see after logging into Windows. Writing something more robust was on the "nice to have" list for quite a while.

We're thinking about having akbash run at boot time, and either launching a web browser with the URL when a user logs on or placing an alias on the desktop.

Butterfly Labs | Reply

Add comment




biuquote
  • Comment
  • Preview
Loading