Last night benchmarked on cc2.8xlarge EC2 instance ( 2 x Intel
Xeon E5-2670 processors) got ~35 h/s
Thats 16 physical cores, 32 threads
Thanks - looking at this and the i5, I'm concluding the bottleneck is at L2 Cache - having about 2MB available per thread is ratio to aim for.
Now, if my calculations are correct, at current difficulty, 0.00028632, each hash represents about a 1 in a million shot at solving the block.
Your EC2 instance is giving about 35*60*60 = 126,000 hashes per hour - you'd expect to solve one block every 8 hours.
To calculate the current cost of mining a block, what's the lowest price Amazon does that type of instance for? (I had a look at their pricing, but couldn't work it out)
I nuked the instance after an hour... but.. its currently ~$0.253 hour on spot.
note 8 hour is the maximum time taken to try out all possibilities for a single block. A block could be found sooner, other users could find a block in meantime needing a restart...
Taking your 8 hour estimate, for EC2 mining to be successful, a single block needs to be worth > $2.024 at current difficulty.
Another thing i noticed was while mining, the memory usage for bitcoind was swinging wildly from couple of megs to > 1 GB . Is it possible to allocate memory once and re-use that? I think a lot of time may be wasted in memory allocation and subsequent garbage collection.
Is there some documentation about the hashing algorithm used? (Sorry im not fluent in reading c++ code)