210 points · by dsr12 · 8y ago · 79 comments
Another point that isn't discussed is that the software solutions to manage large numbers of Pi/Beaglebone class machines is non-existent.
Because of the fast time to market, these machines are unstable... parts burn out all the time, they go offline randomly, a bad PSU can make a machine reboot every 10 minutes (making doing anything with it difficult), etc. Never mind, just keeping track of where an individual machine is in a data center (needle in a haystack).
There is a couple commercial and open source offerings, but the majority of them were built for when farms were only a handful of machines. Scaling to thousands of machines across different data centers has a lot of the same scaling issues I'd have running the same number of EC2 instances.
If you look on Github, you can see that most public development in the mining community stopped around 2014-2015 and hasn't picked up again. Even the largest pools have taken things closed source.
I find it amazing that literally billions of dollars is flowing through this stuff. If it wasn't for math being so factual, I'd really question it all because it is all barely held together with heat sink grease.
I have a friend who contracted to develop a custom DHCP server to allocate addresses based on Ethernet ports. This is superior to static IP configuration because you invariably make configuration mistakes.
Cisco provides this feature, but Cisco is expensive, hence a lucrative side job for my friend. There seems to be lots and lots of opportunities like this to provide custom softwares for mining farm.
The machines are originally come out of the box booting with DHCP and I immediately switch to static when we deploy them. This is based on experience running a large number of these machines originally with DHCP.
There is a few reasons:
1. They are physical machines in a physical location. Every DC, Row, Rack, Shelf, Position is defined and set with an IP address before the machine is even installed. It is very important to track which machine is where for maintenance reasons (remote hands, etc). If I don't use IP address, I'm stuck using MAC addresses and now I'm keeping track of two pieces of information instead of one. Oh and MAC address isn't printed on the outside, sigh.
2. DHCP can leave gaps in IP ranges. Unless you deploy your own custom server that is smart about always giving out the next IP, in practice, I see gaps form. You end up wasting private space and having machines cross subnets. I don't run the network in my DC, so if I want more IP space, I have to ask for it. One more thing to do, no thanks.
3. These machines tend to reboot a lot since they are basically hastily made junk from China. Time is money. Every second they are down means lost revenue. DHCP takes a minimum of 5-30 seconds to assign an IP. It adds up when you have thousands of machines.
4. More network load. 100mbit at best. Even updating software on them all can take hours.
5. An extra dependency, what happens if my DHCP server dies? The fewer moving parts, the better.
6. Speeds up the installation process, which uses DHCP to assign the initial IP range. Can't have two DHCP servers on the network conflicting with each other.
Installation is as follows:
1. Set the DHCP server to the range I want to use.
2. Unplug ethernet on all machines.
3. Turn them all on and get them warmed up.
4. Plug ethernet in one at a time, in order (to match their location) and watch the leases file.
5. Run a script that bulk sets their IP address as static (same address).
When you're turning on 500 new machines and it is an all day ordeal, this is the fastest process I've found so far.
In the future, I'd like to have a custom DHCP server (there is a DHCP golang server that I'd like to use) that already knows the ranges necessary, allocates the IP and pings my management system to set the location of the machine. Right now, I just keep the data in a Google Sheet, which works well enough.
As a result, I'm building it for myself as I go, which is a fun sadistic exercise.
Prometheus / Grafana (awesome tools), React / TypeScript, golang
Probably could be made to support it, but I'm honestly a bit wary of how much it installs onto each machine and their complicated bash code has zero tests [1]. I'd prefer a much simpler and solid solution.
[1] https://github.com/minershive/hiveos-asic/blob/master/hive/b...
Had they invested their $500k in BTC in 2015 instead of HashRabbit... 100m btc @ ~$200 = $1b.
It seems like they aren't really in business. Is there something you know that I don't?
Consider reaching out, I'm not sure they've published the latest stuff
Having a pool of different algorithms might improve the difficulty but it will also make it tricky to audit all algorithms for vulnerabilities. On top of that an ASIC might not have to implement all algorithms, they could idle and only spring into action when an algorithm they implement is selected for instance.
The main point of the article stands, no matter how complicated you make your algorithm a special-purpose solution will always be more efficient than a general-purpose one, it's just a matter of balancing the cost of developing the ASIC vs. the expected return.
If, as the article points out, developing chips for minor cryptocurrencies using ASIC-resistant PoW is cost-effective I can't imagine how anybody could hope to design as ASIC-resistant cryptocurrency designed to become the currency of the future. Think about it, in the unlikely scenario where a PoW cryptocoin eventually replaces the dollar the mining rewards will quickly amount to billions of dollars. The incentive to get an edge, no matter how small, would be tremendous.
An alternative scheme would be to change the change the PoW algorithm regularly like the article says Monero is doing, but then you give a huge amount of power to the people selecting the next PoW. Consider how incredibly tempting it would be to develop an ASIC for some PoW algorithm and then have it selected by Monero, you'd have a huge head start.
For mining chip manufacturers the gamble of choosing a few algorithms to support, especially if constraints are promised at the start of the PoW launch, can have favorable odds. There’s only so many PoW algorithms from which to choose.
When it comes to ASICs, it's very difficult for you or me to buy them outside the US or China. Someone wanting to set up a mining farm with 500 of them can probably arrange something, but if I want to buy just one here in Iceland, I'm screwed. No one ships single ASICs to Iceland for a sane shipping fee. Most won't ship them outside the US at all.
As a result, almost all the hashpower in bitcoin is coming from the US or China, and from the rest of the worlds perspective that's not good. It is /definitely/ within the Chinese governments power to seize all of bitmains strategic reserve of chips and use them to perform a 51% attack on bitcoin.
The benefit of ASIC resistance is that it forces everyone down to graphics cards or at least FPGA boards, and both of those can be bought over the counter in any western country, so it spreads the hashing out geographically, which is desirable from a resilience standpoint. If ASICs were widely available it would be a different matter, but since they aren't, it's overall better to force them out of the game for now.
Additionally, imagine you bought GPUs. Then of course you are going to oppose to changes destroying the profitability of your GPUs. If you then read about someone writing about ASICs fostering centralisation, you'll be inclined to approve such statements.
However ironically it has been shown that quite possibly GPU mining is more prone to centralisation attacks than ASIC mining.
If something designed to be hard can be made easy, you lose whatever goal you wanted to achieve by the former.
The amount of electricity it takes to secure the network is directly proportional to price. In order for BTC to replace traditional currency, it would require more electricity than the world currently produces each year.
As demand increases, so does price. So miners would purchase electricity at ever-higher marginal prices until an equilibrium is reached.
Mining rewards come from the coinbase reward and txn fees. The coinbase rewards go down over time according to a schedule. Bitcoin is currently highly inflationary to create mining incentive, but we are rapidly approaching the 'long tail' part of coinbase rewards. Txn fee behavior is less predictable, and a source of significant conflict.
> as ASICs continue to infiltrate every coin on the market
I think he means "every PoW coin", because PoS coins will change the game significantly (or am I missing something). In the comments at Medium we see several question being asked about this (at this point all unanswered).
Hash rate isn't much better, since it's the definition of a capital-intensive business, but there's still some possibility of getting better performance through clever innovations
I feel as if a proof of stake system that requires those staking to not only support the network but also be heavily involved in it as well would resolve some of the issues with current proof of stake systems.
The same issue as what i’ve encountered when trying to imagine a cryptocurrency that is slightly inflationary, like 1% yearly. There is no objective way to decide how much the money supply should grow, as far as I can tell, because there is no way to separate “real” from “fake” usage.
Proof of work is as expensive as it can feasibly be. When you say "nothing is cheaper than proof of work", it means you have the problem that only proof of work solves, which is that you want to achieve decentralized consensus and you trust nobody.
Everything is cheaper than proof of work, as long as you trust somebody. And if you're an anarcho-capitalist who trusts nobody, why should I want to live in the world you create? A little bit of trust is worth it to stop burning coal to power useless computation.
Also if you’re going to have POW, all these ASICS could at least be folding proteins or doing other grid computing, so they have a useful byproduct.
Haven't had a chance to really look at the implementation though (its on github)
If you know for certain that the operations you get will follow some distribution, you can customize towards that distribution in ways a cpu or gpu can't.
https://ravencoin.org/wp-content/uploads/2018/03/X16R-Whitep...
One potential issue perhaps would be that it would presumably violate the memorylessness principle, which really changes the mining dynamics.
Is there a difference between what you're proposing and the more memory-intensive hash algos like Scrypt, etc?
Also, the authors would do well to credit the original sources / authors.