My earlier blog article named Buying an IBM mainframe did get way more exposure than I could have hoped for, thanks to everyone that read it! The discussions on various forums did naturally evoke some interesting questions. Mostly they are "Why?" in various shapes or forms. It is a totally understandable reaction, and thus I want to present some of the things that I am excited about having mainframes as a hobby.
I present to you: the follow up questions on the statement "I bought an IBM mainframe".
After watching this you might just have a different view of what mainframes are and what problems they solve. Just like we have machine learning accelerators, or Bitcoin miners, we have mainframes as a solution to solve transactions and I/O problems.
A brief note on the software side: z/OS is the flagship OS that IBM sells with their mainframes, and it is built to use all these hardware features of the mainframe. This means that the software you run on mainframes are built quite differently from how conventional distributed systems are built on PC servers. Given that the hardware is so reliable, and the OS is built to handle reliability, having to build in complicated distributed systems logic in your software is not really that important anymore - and as any experienced programmer will tell you when it comes to writing software: simpler is better.
I present to you: the follow up questions on the statement "I bought an IBM mainframe".
Why? I thought mainframes were dead
First of all, they are not. If you are buying a new mainframe today you will get a beast in terms of performance and especially I/O capability. There is no server platform that compare to my knowledge in pure numbers if you do not include cost. Of course, you would care deeply about cost in any real-life situation but the point is to dispel the notion that mainframes are antiquated technology wise.
Even my 8 year old z114 can run with 120 GiB of redundant RAM, and it is the physically smallest mainframe you could get.
I highly recommend people that are new to mainframes to take 6 minutes to watch this clip by Linus Tech Tips explaining what a mainframe really is. It is great and really approachable even if you have no prior knowledge of these terms.
I highly recommend people that are new to mainframes to take 6 minutes to watch this clip by Linus Tech Tips explaining what a mainframe really is. It is great and really approachable even if you have no prior knowledge of these terms.
After watching this you might just have a different view of what mainframes are and what problems they solve. Just like we have machine learning accelerators, or Bitcoin miners, we have mainframes as a solution to solve transactions and I/O problems.
A brief note on the software side: z/OS is the flagship OS that IBM sells with their mainframes, and it is built to use all these hardware features of the mainframe. This means that the software you run on mainframes are built quite differently from how conventional distributed systems are built on PC servers. Given that the hardware is so reliable, and the OS is built to handle reliability, having to build in complicated distributed systems logic in your software is not really that important anymore - and as any experienced programmer will tell you when it comes to writing software: simpler is better.
Why? What are you going to do with it?
This is the simplest thing to answer: anything I feel like :-).
Long answer: It is like when somebody buys their first server. They might have a plan to build a particular service, and they even might do just that, but sooner or later something else comes along and that server is now re-purposed into running some other service. So even if I do have a quite long laundry lists of projects I want to do with my mainframe, I do not know definitely which projects will be done or which new ones will be born as I go along.
Why? It seems expensive
Maybe. It is certainly a lot of money, so it does fit the definition of expensive - but I do think the system is worth the money, and here is why.
Over the last decade information has become more and more accessible to an incredible point. There are some many video courses, or even teachers that offer 1:1 courses where-ever you may be. It is easy to forget that some things cannot be acquired like that.
I have another expensive hobby which is flying airplanes. That is a money sink if there ever was one, and I spent way more money on that hobby than I have on this mainframe project. This is interesting as I do not even fly a lot compared to pilots e.g. in the US. Flying requires a lot of theoretical knowledge, but you cannot get your license without actually flying an airplane. You cannot get a CCIE without logging into a switch, and you cannot learn a new language without speaking it.
Mainframes are like that as well. There is not a particular single thing that makes mainframes so interesting. You can run COBOL on Linux if you want, and IBM could sell you z/OS in an emulator if they wanted. The interesting thing about mainframes is the full platform. From reliable hardware to OSes that have been taught how to use the reliability features of the platform. To learn about this ecosystem you need to study the theoretical but also be hands-on and feel how things work together.
Finally, there are courses that do teach you these skills - companies are probably quite heavy users of these to train new mainframe engineers - but they tend to run you $10,000 per course. In that light, the price I paid for the z114 is not that extreme.
It is still a lot of money though, but living in Switzerland I do not need a car so I tell myself it is from that fund ;-).
Why? Can't you just emulate it?
I touched on this a bit in the previous section. You can definitely emulate the S/390 architecture. Hercules is an amazing emulator for doing just that. However the mainframe is so much more than the CPU and the memory.
Mainframes for example have these things called Support Elements which more or less is how you configure them, set up hardware virtualization partitions (called LPARs), configure workload scheduling, and set up what PCIe card belongs to where. Emulating the CPU of the mainframe would not expose you to any of those very crucial tasks.
Now, if you do wish to get started on operating mainframes I do recommend using Hercules and downloading MVS 3.8j which is all free and legal. I would also recommend you to check out IBM's Master the mainframe.
If you do get hooked, you will likely soon find yourself asking the same questions as I did: "How does this work?". You might even end up finding that just having access to an emulated system console is just not scratching that itch and there are more questions you want answered. In that case, you have the same itch that I had.
What about the power bill and environmental impact?
Thanks to @iwangulenko I got put in touch with the hosting company ungleich in my current place of residence - Switzerland. Ungleich has a project called Data Center Light where they run their data centers from old industrial facilities that were once built with hydro power. This means that they can offer cheap space and good clean power. Being in Switzerland this means I can jump onto a train and end up 50 m from the entrance door to the data center within two hours.
By the way, they host other things than mainframes ;-). Consider them for your next hosting, they have been really nice to work with.
Closing words
I selfishly find that writing down answers to questions like this provides me with a much better forum to explain how I think about the matters at hand, which is mostly why I wrote this post. I am however quite comfortable to have discussions about these things IRL or e.g. over social media. I am very much a learning newbie on mainframes but having discussions around various topics is a great way to learn about gaps in your own understanding, so I whole-heartily welcome it.
I hope this put some light on why I think there are values to be learned from the mainframe, and why at least I am happy to invest a quite significant part of my free time learning and experimenting with technologies around it.
Thanks for reading!
Comments
Post a Comment