Bitcoin Forum
November 07, 2024, 08:49:28 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: ScalaMiner 0.x beta - new highly-concurrent mining control software (and proxy)  (Read 3712 times)
colinrgodsey (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile WWW
May 03, 2014, 07:06:43 PM
Last edit: July 07, 2014, 03:16:03 AM by colinrgodsey
 #1

Just launched the first 0.1 release of ScalaMiner! It's currently in beta, but im looking for a few people to check it out and help me test it. It's cross platform, so really all you should need is Java and a compatible device (or use the proxy). I'm pasting a snippet of the README below, but head to https://github.com/colinrgodsey/scalaminer for more information and installation etc...

Overview

ScalaMiner is a Scala/JVM implementation of several mining abilities available through software such as CGMiner and BFGMiner. This mining platform will give you a single performant process that can handle all of your mining device needs. Compatible with popular LTC/Scrypt and BTC/SHA256 mining devices (and more in the works), ScalaMiner will give you a stable, unified, cross-platform solution. It utilizes Akka actors for concurrency and usb4java/libusb for usb device control.

Goals

Provide a performant but fault-tolerant implementation of popular miner control.
Provide a portable and modular platform for mining device control, in which new driver implementation is neither destructive nor incompatible with existing drivers.
Provide a more efficient and performant stratum proxy for older devices.
Provide a durable hot-swap system that is tolerant of device failures. No more segfaults or disabled devices!
Utilize reactive programming principles to reduce overhead and enhance scalability.
Implement functionality in a distributed way that will take advantage of multi-core systems.
Support ARM devices, and keep a small RAM footprint (less than 100 MB)
Minimize kernel load to improve latency with USB and network devices.
Provide support for alternate JVMs (currently only tested in HotSpot 1.7 for ARM and x64)

Libraries

scrypt - Offers a pluggable native driver for extra performance
usb4java - requires libusb native driver. See their instructions on how to compile it if the included drivers are broken or don’t include your platform.
io.Usb - A fully reactive implementation of libusb using the akka.io framework, written specifically for ScalaMiner. Currently unpublished, but the code is available in this repo.
Akka - Amazingly strong actor-based concurrency platform for Scala/Java.
Spray - Akka actor based HTTP library using the akka.io framework.
SLF4J

Benefits

Akka actors provide a controlled mutability context within a parallel processing environment. This allows reactive principles to be implemented while relying on sequential access patterns for mutable data. This ultimately gives us an environment in which we can update state while seamlessly operating in a multi-threaded process. This functional distribution of concurrency units allows us to take advantage of a multi-core environment while respecting cache-coherency and freeing ourselves from mutexes and wait states. While avoiding wait/blocking states, we’re able to keep a lower thread counts, reduce context-switching and thread stack overhead.

Devices

Stratum Proxy - Implements a GetWork proxy that can be used with older devices to connect to a stratum pool. The fully concurrent proxy will give you much improved performance over the single-thread Python proxy by Slush.
GridSeed DualMiner - Support for either dual LTC/BTC or single LTC/BTC. No special procedure for dual mode! Just configure both a scrypt and sha256 stratum, set the switch on the device, and plug it in. Dual mode is detected per-device by only the switch, enabling you to run some devices in dual and some in single, all from the same process.
GridSeed 5-Chip 320kH/s ASIC GC3355 - Currently only LTC mode implemented (still trying to find non-conflicting specs).
Butterfly Labs BitForce SC - Single device only (no XLINK support). Has been tested with the 7.18 GH/s upgrade Jalapeno, should work with regular Jalapeno devices and the Little Singles.
Bitmain AntMiner U1/U2
ASICMiner Block Erupter USB

Hardware requests

The current device support for ScalaMiner is based on available access to mining hardware. If you are a hardware manufacturer/retailer/aficionado please file an issue request or contact me (colinrgodsey) otherwise to get the device support added!

Compiling/Configuring/Running

The project is managed with SBT. Running from source should be as simple as ./sbt run.
To prepare a bundled jar, use ./sbt assembly. This will create a jar with all deps and the default config in reference.conf (override using application.conf in the base dir).
See the Known Issues section below for instructions on how to compile the native driver if one of the provided ones doesn't work for you.
Configuration is done using Typesafe Config. Refer to the reference.conf file for config fields/structure. Place your overrides in application.conf in the base directory. Make sure to configure your pools, or it uses the default (as seen in reference.conf)!
More info coming soon....


Hardware support is rather limited! Basically developed and tested all of this on my frakenstein mining box::

https://dl.dropboxusercontent.com/u/3322922/miningbox1.jpg

http://dl.dropboxusercontent.com/u/3322922/miningbox2.jpg
colinrgodsey (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile WWW
May 09, 2014, 03:45:56 AM
 #2

**Version 0.2**

added Bitmain AntMiner U1/U2
ASICMiner Block Erupter USB

More 'icarus' like devices coming as soon as I can afford or verify in other ways.

also managed to max out power on my usb hub =\
colinrgodsey (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile WWW
July 07, 2014, 03:17:46 AM
 #3

Version 0.4 released!

https://github.com/colinrgodsey/scalaminer/tree/v0.4

* Stratum connection pooling with priority and weight
* BitFury support (Nanofury and Blue/RedFury)
* Various stability and performance fixes
* More accurate timeouts and identity failure

https://github.com/colinrgodsey/scalaminer/compare/v0.2...v0.4
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!