232 points · by rbanffy · 7y ago · 293 comments
Before anyone starts a huge debate on everything I said it wrong, please understand I know it is not exact. This is just a base level set of one of the main structural differences in the HW/OS that everything is derived from.
More precisely:
You can even walk up to the mainframe and pull out the cpu the job is running on and you still get your paycheck.
I mean that in x86 you design so that the workload has parts, app server, db, web server etc. in order to spread the workload around. This is not really required on a mainframe as you can just run it all in the same instance (you do not have to nor do you really want to).
This is a very SIMPLE view. I am trying to point out that the HW/OS on a mainframe is design for a very different thing then how people today think of "cloud" design.
>"I am trying to point out that the HW/OS on a mainframe is design for a very different thing then how people today think of "cloud" design."
Might you or anyone else have any resources you could share this design paradigm? Thanks.
What is meant by "chuck" here? To throw? If so what is the thing thats needs to be chucked exactly in the case of x86 vs mainframe? Thanks.
the usual comparison is a cluster of cheap nodes vs a mainframe
Almost all value of mainframe lies in software compatibility. There's no theoretical or practical advantage they have over clusters of x86 servers.
I have worked on, designed and built both type of systems. Distributed systems cloud style are hard and require the software to sort for everything. For the most part the HW/OS on the mainframe just handles it. It is just a different way to build.
https://www.ibm.com/it-infrastructure/z/education/master-the...
For those of us with only exposure to PCs and commodity servers, I'd be interested to know who has encountered one in their day to day, and how that experience differed from the norm.
A system that runs a bank or an insurance company and wants good availability can be built in one of two ways: you either spend money on software that deals with the hardware being unreliable and save money on software (pioneered by Google) or you spend money on hardware that promises to be highly reliable and save on software.
No new player believes mainframe (extremely expensive hardware) is cost effective, they all use commodity hardware.
A bank that needs to run binaries from the 70s for which they don't have the source code can keep paying IBM and not investing in reverse engineering the binary and implementing it in Java.
A bank that has a billion lines of code in Cobol can compile it to run on jvm on commodity hardware and run it in parallel with the mainframe for a year to validate and then switch over to the new system and stop overpaying for hardware, but that sounds risky, so they keep paying a million dollars for a system with the same performance as a 50 thousand dollar server.
Seems like the first "save money on software" shouldn't be there.
Edit accidentally included runaway thought process...
It's OK to do most things with chunk of normal servers, but when you need to handle very large number of transactions with fast commits, and stuff like eventual consistency is not allowed, it becomes expensive to handle them no matter what.
One of the other big Australian banks (Westpac) has an "exit IBM" project as well, but it isn't complete yet.
Monzo? They're getting bigger now, circa 3M customers. More than First Direct, Starling, Metro Bank.
What is a problem is that the last time a lot of code was touched may be 5-10 years ago. That code may have started being written 20-40 years ago. It may well have been maintained by people who think "if it was hard to write, it should be hard to read" or "documentation is for the weak". It definitely will have been written when the cost of a gig of memory and storage was many orders of magnitude higher than today (indeed, last time I priced memory for a mainframe, a Z10, it ran to $10,000 a gig); hence terseness in everything from table and column names through stored data and everything else was prized. Dropping from COBOL into assembler is not uncommon for critical path performance.
Making any changes will be a week of coding and three months of working out the what and why of the code, because the last person who worked on it retired a couple of years ago.
It has worked for the past 30 years and hasn't been touched since 20.
Who are the vendors that provide a migration path from mainframe to a set of commodity hardware running an emulator, and subsequently provide continual maintenance and support?
A single computer with 4 sockets of xeons will outperform a mainframe but will have more downtime.
The mainframe has best possible single thread performance and as much cache as possible, redundancy and parts can be replaced while it's online, but not that many cores.
The cost is very high - when I looked, 1 million per year is the baby version with only 1 CPU enabled and no license to run the cryptographic accelerator and limits on software, etc.
Commodity hardware you buy and use for 5 years, so the amount of good hardware you can buy for the price of owning a mainframe for 5 years is a lot.
For the money, you can buy a lot more CPU, ram, network, storage, etc and hire Kyle Kingsbury to audit your distributed database.
For read-only batch computations you can always add some extra redundancy and partition the problem. So, I don't think it is likely that a mainframe would be useful here.
But we have literally thousands of internally developed applications. We can move thousands of apps the cloud and still have a need to keep thousands on virtual/physical machines. My own apps are stuck on commodity physical hardware for at least the next few years.
The type of applications that can historically been run on mainframes is not really moving to AWS/cloud. Most of what's going to the cloud is what I would consider to be "supporting" applications, not core applications.
My own experience, that of others may differ.
Programmers are taught that database transactions exist so that when you move money from one account to another and crash in the middle, no money is ever created or destroyed. Well, cat picture websites might do that, but banks don't. They reconcile logs at end of day.
Had to perform regular backups on the system as part of my internship.
Nowadays kids are all up with WebAssembly and WASI, well that is just how OS/400 works during the last 30+ years.
Originally designed in a mix of PL/S and Assembly, everything else (RPG, Cobol, PL/I, C, C++) compiled into ILE (Intermediate Language Environment) and cross language calls are relatively easy to do.
ILE applications are AOT compiled either at installation time, or anytime some critical hardware has changed or the application themselves have been updated.
Nowadays there is also Metal C (real native not ILE), Java via IBM's own JVM (which in early versions converted JVM bytecodes into ILE ones), and the C and C++ compilers are also to target actual native code besides ILE.
The database backed filesystem took some time getting used to, coming from Amiga/MS-DOS/Windows 3.x/Xenix experience, and the command line felt more cryptic those OSes, given the use of special characters as part of the name.
The company I did my internship was using them for their accounting, everything else were MS-DOS/Windows computers connected via Novel Netware, zero UNIX flavour in sight.
IBM z and Unisys ClearPath are two other mainframe models that also follow similar bytecode based deployment formats.
So in a sense you can say that on every Android phone, watchOS or Windows PC lives a little mainframe.
The main three benefits of the mainframes (as a non-mainframer):
- crazy amounts of caches
- crazy amounts of pcie-slots (and sufficient internal io and processing power to make it balanced)
- production environment mentality for everyone involved, incl. extremely engineered (and redundant) hardware
I think new customers are likely to run Linux on such a box in the future... The main cost-problem for mainframe customers is software cost (esp. z/OS, cobol etc..).
I have heard stories (from actual mainframers) about the sql-performance and key-value performance (read like mongodb) on these boxes that are eye-watering..
Does that mean great or awful?
I would love to see an article that breaks down clustering v. supercomputers v. mainframes in tangible use-cases. It is all a bit opaque to me where one officially starts and the other one(s) begin. As well as where (and to what degree) the value prop is of one versus the others.
I've heard folks say mainframes are just legacy stuff carried forward - I've heard others say they have specific use-cases that are not well solved by other current technologies (usually a cost of refactoring). That said, are there any current use-cases, where if I were to write code from ground zero, that are best solved on mainframe, hands down? That is my root question.
There are a lot of systems that are simpler (cheaper and less risky) to scale up than re-engineer to be distributed.
For example at the end of each day a bank has to generate the final balances of the accounts that it has with other banks and then it has to check for irregularities and then finally set those balances just right (e.g. enough to cover payments made by its customers but without leaving there millions) => if it doesn't then it might not be able to use the money that is "parked" there by mistake, or it might have a huge position with a risky bank, or if the balance is too low other banks might decide not to perform the final credit into the target accounts involved in the customers' payments (which would then generate a lot of complaints + lower the bank's reputation with its long-term consequences), etc... . (the opposite happens as well - https://www.investopedia.com/ask/answers/051815/what-differe... )
Nowadays even accounting (coupled with risk management) has become time-critical because of the many regulations - a 1-day delay filing the numbers with regulators and/or central banks can result in huge fines and loss of reputation (if the news about the problem becomes public it could happen that the news services try to highlight it increasing the focus on that negative publicity). In our case the detailed/low-level data (e.g. client X bought N shares of some company, client Y retrieved N$ from the ATM, etc) is all processed by the mainframe, which works fine 99.99999% of the time => then anything that comes afterwards which involves analysis/aggregation/reporting/etc of that data happens in other non-mainframe apps (they're all very different - from tiny to huge apps with distributed databases) and in general any such app has usually some kind of problem that results in a delay at least once every quarter due to the SW itself or even the HW => it's usually not a big problem (usually some hours are lost but there is a buffer) but if the central SW (running on the mainframe) would have the same problem then there would be a chain-reaction on all the other apps that need that data (and then their specific problems would be on top of that, and then there would be a hotspot of needed 100% CPU/RAM/network resources as they would all run at the same time as fast as possible which could cause further delays, and so on).
https://medium.com/@bellmar/is-cobol-holding-you-hostage-wit...
That's one of the best typos I've ever seen.
(Although I’m sure the precise problem set could be replicated with commodity hardware too).
Only pretty recently. You would be surprised at the number of crazy smart people that failed to make a commercially viable TPF replacement.
Including ITA, whom Google bought for ~$700M. Lots of top talent, lots of funding. They did build a reservation system, but nobody of note would use it.
Amadeus only got rid of their TPF mainframes in the last year or so. As far as I know, Sabre hasn't finished.
I don't know what progress VISA has made (another heavy TPF user). They are still hiring TPF programmers: https://usa.visa.com/careers/job-details.jobid.7439996782301...
Batch is the other aspect that takes mainframes to unbeatable status. When you run a batch job, you basically say "ok all daily OLTP is halted, we are going into a completely new architectural mode". Obtaining an exclusive lock on a table or an entire database for a single series of processes to operate on can yield insane amounts of throughput when you are finalizing the data from the day's operations.
A few years ago as a more junior developer, I will admit to being strongly "anti-mainframe" based on the principles I held at that time. Why can't we just put it all in the cloud, throw some MongoDB out there and pray it all works? After witnessing actual business cases for mainframe/batch unfold, I quickly started to change my tune. Mainframe is not for every business, but it does seem to be a tool you can reach for when someone says "everything just has to work always or someone dies", and "we have infinite money".
Due to io offloading to co-processors and a whole range of supporting cpu types you can set up a system which can handle thousands of transaction per second. Most of the application that are used on mainframe's are databases or message que's
Recently there is an increased interest in running Linux on mainframe's something which can be done since early 2000 you get the benefits of high available and secure hardware and the relative ease of Management of Linux. Another benefit is that you don't really need to train personnel in more exotic operating systems like z/OS.
Think of the number of transactions entities such banks and airlines perform a day. This article talks about this in the section "what is a mainframe today":
https://www.nanalyze.com/2017/10/ibm-mainframe-computers-tod...
I have seen a handful of mainframes on use, but I have never seen one used for something that it is good for.
http://www.winestockwebdesign.com/Essays/Eternal_Mainframe.h...
Long story, short: We will really have to watch out for our privacy because those two remaining platforms give The Management(tm) an irresistible temptation to stomp on us.
Evidence of the demise of desktop computing abounds, but I do hope you're merely being alarmist, not prescient.
Great essay. Please write more.
It seems to me if desktop general purpose computing becomes a distinctly minority need, then the future of hardware design will bend towards that article's view. Large scale design and manufacturer of hardware platforms will be (mostly) exclusively towards central servers and to specialized devices on the edge. I expect there's an awful lot of legacy desktop design that will disappear.
We're starting to see borderline-draconian privacy and data protection laws such as the GDPR in Europe, and while I question the implementation of that law and how effective it will be, the very fact that a group of politicians covering all of Europe managed to identify a risk and make actual law to try to deal with it is noteworthy in itself.
I suspect what will really make a difference in the near future though is that now social media and "fake news" and other consequences of the centralisation and commoditisation of online communications are messing with elections and our democratic systems. Politicians, even those who might otherwise give big businesses a pass on questionable ethical behaviour, do care about the systems that get them into positions of power, and they care very much about attempts to compromise those systems in ways that might remove them from power. If there's one thing in life that I have found quite reliable under all circumstances, it is the ability of a class of people in power to recognise threats and take steps to protect itself.
I also take some comfort in a few conversations I've had with non-techie friends in recent years, particularly those who are of the younger, digital native generations. It's become very clear to me that while my slightly older generation have sometimes been quite naive about the implications of new technologies, those behind us are much less so. Things like basic steps to stay safer online are taught in schools now. Social media accounts are ephemeral and kids switch to different networks in a way that would make it very difficult for the likes of Facebook to reach critical mass as it has with the older generations. The constant updates and sometimes breakages of software or access to multimedia content are getting old. And again, perhaps most heartening of all, while the younger generations consider these technologies an integral part of their lives and accept to some extent that there are compromises made in order to use them, that doesn't mean they like those compromises, and they will switch away if better options become available.
All of this is probably bad news for the long term prospects of businesses like Facebook and Google (and all the other big data hoarders we don't see because they run their marketplaces discreetly behind the scenes instead of with big public websites on the front). But it's probably good news for those of us hoping the centralised/distributed pendulum for computing is starting to swing back towards the distributed side again, in part driven by privacy, reliability and longevity concerns. The biggest weakness I saw in the article was quite a big jump to the conclusion that embedded and mainframe are the only two natural kinds of computing. I don't see why personal devices -- or rather, running substantial software and doing substantial data processing locally on those devices instead of just using them as essentially thin clients -- shouldn't be on that list as well. The form factors might change, but I don't see it as inevitable that personal computing will revert to being primarily a hobbyist's endeavour. There are some very good reasons it should not.
If the language runtime supports the platform (even bare metal), the AOT/JIT does a good enough job even exploring some vectorization and the large majority of the standard library is available, then it is just an instance of cattle OS.
Which by way, has been the way that those hyper engineered mainframes from IBM (and Unisys) are designed, with their "language environments".
Has this really been the case though? Apps are still very much OS specific. Even Web Apps in Backend are also OS specific ( Linux Specfic ). I just don't see any "mainstream" adoption of high level languages that does this.
The web app may be OS specific, but does the OS really matter? Any unixy thing would probably work fine with at most mild effort for almost all backend apps.
Microsoft (Azure) is investing heavily in FPGA based configurable cloud
https://www.micron.com/products/advanced-solutions/advanced-...
One could get a lot of mileage in many areas out of a desktop with a good CPU, lots of RAM, a graphics card for general-purpose use, and one or more FPGA's w/ HLS tooling (or just buy the modules). Especially if the basic components were standardized like the PC with minimum requirements on cores, slices, etc on each version of the platform. An app ecosystem could be developed or emerge with capabilities regular desktops couldn't match.
Post:- https://news.ycombinator.com/item?id=20766283
Tech use cases :- https://www.upmem.com/use-cases/
I wanted a future where people had big mainframes in their basement (like a furnace) as the sole computing source for their house and terminals in every room. Instead we got no one using computers and everyone having a dumbed down phone. :(
For those two do need it, you don't need a mainframe sitting in your basement like a furnace when a Rapsberry Pi has 500x the processing power of an IBM 4300 from the 1980s for a fraction of the price and size and power consumption.
There is absolutely no need to shit on the capabilities of modern smartphones when "arbitrary computation" devices are so cheap, small, and ubiquitous.
You probably can’t access mainframes file system directly either. That’s a security and reliability feature.
IBM Newsroom - https://newsroom.ibm.com/2019-09-12-IBM-Unveils-z15-With-Ind...
Someone suggested that they used infiniband or something similar to make a single instance span multiple machines, but I don't buy this. There would be performance characteristics that would show this, and it would be documented.
I think all sizes they offer are available as single machines, although the really large ones maybe are somewhat exotic (NUMALink or other interconnects to get a machine with 8 sockets? Not sure if the top Intel platforms do 8 sockets natively)
2) ... they could also time-share one core to as many virtual cores as they like, even more than the real number of simultaneous threads. This seems to make sense for better utilization of part of capacity, but I have no idea if they do it. Probably not for marketing reasons, they don't want to support an idea that their vCPUs are weaker than those of the competitor. Small providers are more likely to do this, I think, much less concerns about PR.
3) Big GAFA-like corps have access to specialized hardware from Intel. The cpus they operate may not be publicly known.
4 cpu, 12 cores each, 2 threads per core.
A large entity purchases 12 fridge-sized mainframes from IBM for over $100 million. Who might do that? Airlines, banks, governments, logistics, and others needing high levels of reliability.
To understand why this clientele would use a Z-series mainframe, first consider what the "z" in the name stand for: "zero," as in zero downtime. Typical compute providers express their downtime as "#-nines". For example, 5-nines reliability would mean you're down for around 30 seconds per year, on average. The Z-series mainframes are sold as having zero downtime, period. A remarkable amount of research, development, and engineering effort goes into achieving this level of reliability. Now, these clients usually perform jobs which are not computationally difficult (validating a credit card transaction, for example) but must work, since the economy depends on the availability of these services. The Z-series mainframe shines in processing these loads of many, short jobs.
There's a security angle to mainframes as well. Commodity hardware allows for fast scaling and redundancy. However, commodity hardware also allows for exploits to be shared easily. Once those exploits are discovered, companies need to patch, and there's no guarantee the patch will happen. Now, imagine trying to develop exploits for a system which is not commercially available (governments could still presumably acquire one), is a completely custom computer architecture (Z/Architecture, custom compiler, Z/OS, pretty much every layer below JVM), and has very few design documents available online. Oh, and consider that, from z14 onwards, any data in the mainframe is encrypted when at rest. (Decryption/encryption is handled beneath the ISA; once an instruction is run, the mainframe uses the central key management chip (tamper-resistance, designed to handle natural disasters, etc.) to decrypt necessary information. The information is processed, then encrypted again before the instruction is completed.) The likelihood of a script-kiddie getting into and exfiltrating data from one of these things is very unlikely. Hacking one of these mainframe would take an intense, coordinated effort.
Another important component is backward-compatibility. Take IBM's two main in-house storage protocols, FICON and FCP (FCP is FICON, minus most support for old systems to get higher throughput). FICON connects mainframes with giant storage arrays from EMC, Teradata, and others. FICON replaced ESCON, which replaced the parallel data communication system from the System/360 era. When a company upgrades their mainframe, knowing that your 20-year-old storage unit can still talk to your new machines relieves stress. Companies WILL pay for this level of backwards compatibility, and there's no reason to hate them for it.
Supporting backwards compatibility has historically not been too much of a problem for IBM. I worked with a person who took a class in IBM Poughkeepsie's now-abandoned Education Building on this hot new programming language called C (this was sometime in the 80's). Multiple people in my department were around for the development of not just the current generation of IBM tech but those before as well. The levels of technical depth they had were immense. I've heard people say, "oh, but that depth is narrow and won't get them jobs outside IBM mainframes." Perhaps, but in my experience, they don't care. They build systems the world depends on, whether the users of those systems realize it or not. I'll also add that in the days of Big Blue, your job was basically secured. Even after the layoffs of the 90's, IBM still needed to retain the old talent. (Imagine a company with lots of employees who've worked there less than 10 years and lots who've worked there more than 30 years. You'd describe IBM's mainframe division well.) Makes me sad to hear that IBM is discriminating against their older employees to push them out.
One commenter asks why IBM doesn't have "micro-mainframes" for smaller companies. For all I know, they could be moving this direction. At the same time, it seems like it wouldn't make much sense for IBM to do this. Why deal in thousands of dollars when you can deal in millions? Why put engineering effort into building computers for non-critical companies when, as long as you keep advancing performance and capabilities, your mainframes will provide you one of the best long-term cash flows possible?
Another commenter said new companies do not consider mainframes because they aren't cost-effective. I think it's for a different reason: new companies come and go. Their services aren't that important to the world, but they're trying to show the world their importance. Because of that, startups whip-up an infrastructure concoction which is inefficient, but that's ok because 1) they aren't encountering the issues of scale and 2) their workload and information can run anywhere. They just don't need a mainframe because they don't need that level of reliability.
Happy to answer other relevant questions you might have.
At a minimum, supporting infrastructure (power/networking/internet/etc) will eventually fail even with backups. On top of that, no mainframe is going to work when under water (flooding) or on fire (remember the delta outage?).
> The last time he did shutdown the Mainframe was 15 years ago
And that was a controlled shutdown, not uncontrolled.
If more than fifteen years is your time horizon to validate the zero downtime claim, that's cool. By that point, though, the system will have proven its worth.
Right; unreliable supporting infrastructure is the inherent trickiness with saying the mainframe has zero downtime. The manufacturer isn't being deceptive, though, if, given reliable supporting infrastructure, the system will stay online for as long as is stated. It's just not their problem.
Can't imagine a company would blame a manufacturer for downtime in the event of a flood/earthquake to protect the equipment. If a piece of equipment starts on fire, that's another story, but I suppose a zero-downtime system makes assumptions that it won't start on fire.
Well, looks like plenty of mainframes are very well exposed to the internet, which.. helps.
https://www.youtube.com/watch?v=Xfl4spvM5DI
https://www.youtube.com/watch?v=5Ra4Ehmifh4
https://mainframed767.tumblr.com/post/29672128939/yall-encou...
Just as well Soldier of Fortran doesn't exist or this would be a silly assertion.
http://www.winestockwebdesign.com/Essays/Eternal_Mainframe.h...
The new "cloud" running on racks and racks of cpus with memory and storage on nodes is really close to how mainframes are.
With Google and other cloud vendors making more specific hardware to deal with certain processes, we are entering even closer to similarities with mainframes. They have a lot of supporting processing power that offloads the CPU.
Mainframes now can also run Linux :)
Isn't Mainframe just powerful Servers? At least I thought the term meant ( or used to ) mission critical and massively powerful. Nowadays I could get 2S EPYC 2 with 128 Core and 4TB of Memory. What makes a IBM Server with POWER10 any more reliable than a powerful x86 Server? After all many SuperComputer are now running on x86 as well.
Or are we now using the word Mainframe specifically for IBM products? Rather than a category of its own?
Can you change physically change CPU, Memory, and internal components without any stop/delay?
Not only the Mainframe is Very robust it was made not to stop.
I used to work on a Data Center with Sparcs, Intel, Blades servers, and Mainframe.
The only time I saw the Operator with Fear was when he had to turn off the Mainframe because of electrical maintenance. The last time he did shutdown the Mainframe was 15 years ago.
VMs? The mainframe has it since the '60s.
IO? The mainframe is a BEAST on IO
Backward Compat? IBM guarantees that your code from the '40s will run today.
The whole research in mainframe is to Be a powerful beast with high availability and safety.
If you may check more about it, it is a part of Tech that is very beautiful yet.
I hope this is exaggeration, because I don’t think you’ll be running Colossus “code” (from the first programmable digital electronic computer) on your z15 :)
Your point still stands. They’re in a different class from x86 machines.
Mainframes have spectacular capabilities, like running a compute on multiple CPUs in multiple data centers to ensure integrity and survivability built in so that any software can take advantage of it. They have the lowest transaction processing costs of any machine. They detect hardware issues and phone home to order repairs without user intervention. And on and on and on.
Quite frankly, a lot more companies should be using IBM mainframes than trying to build a reliable infrastructure on the cloud.
Today, servers are adding redundancy where it matters most, but they still have a different philosophy where you should think about adding or removing servers, instead of components.
Commodity x86 and mainframes are both computers. But are as different as T and Civic.
Failing everything else, Intel could pay TSMC to make a 7nm processor for them, no?
TSMC is a pure-play foundry which sells wafers to the whole industry.
On 7nm, there's Samsung too making 7nm chips that are actually shipping (in the Note10(+)).
Intel could do that in theory, but their CPU design is so closely tied to their manufacturing process that they would have to do a substantial redesign in order to do so.
Amazing:
- Longevity - you can run code from 30-40 years ago easily. The only real operating system at this point to do this. Maybe linux will be able to say this in 1-2 decades.
Pretty good:
- I/O is pretty good
- Security - all the datasets were encrypted
Not great:
- Costs
- Open standards
Why IBM have no "micro-mainframes" or workstations so small companies and developers get on the game?
I see the problem with legacy code but then the big issue is how build new code in a platform where the hardware is so expensive?
Depending on what model of mainframe you got you can use up to 60 logical partitions which are firmware level virtual machines. and can extend this functionality using z/VM or just plain KVM in a Linux environment
But from a technical perspective, how hard would it be to turn Linux into something that could seemlessly use resources from many different machines? We already have NUMA machines in which some cores are “different” from others and Linux seems okay at managing that. Would it to be such a large step for it to deal with networked CPUs? And the networked filesystem part seems to be already solved.
IIRC Plan9 supported all this for both compute and disk a long-time ago.
Yes.
Mainframe 90% the hardware and 10% the OS. To get mainframe capability you need mainframe hardware. The use case/need for mainframe capability is very niche.
It seems to come up again a bit in research, given recent hardware developments, but I doubt it'll see widespread use.