5 ms·
>Am I missing something? The interesting part is that the fixed and variable record formats are first class things on the mainframe. So, something like DB2 on
by tyingq 10y ago
>Am I missing something?
The interesting part is that the fixed and variable record formats are first class things on the mainframe.
So, something like DB2 on a mainframe can use system supplied functionality (VSAM) as their storage engine. As opposed to unix, where higher level databases like MySql, CockroachDB, etc either roll their own (InnoDB) or use some 3rd party offering like RocksDB, LevelDB, etc.
VSAM isn't just one thing either...it supports k/v indexing, or indexing via relative byte address, or indexing via record number, etc.
So, basically, when you talk with mainframe people about interchanging data, they don't tend to consider that you might actually have to write some code to parse what they are sending you. They tend to assume you already have utilties that understand these things. It's not an interchange format...it's the native format for them.
I suppose the answer seemed novel because it's speaking with very specific "official sounding" terminology about something that's usually ad-hoc negotiated by project in the unix world.
- kbenson 10y agoSo I guess it's fair to say the difference is that the mainframes have a standardized format for record creation and consumption in the OS, sort of like DB2 being included in the kernel? That is nice, and it does explain why it might be confusing, even if I think it doesn't necessarily get you much over using a third party library (unless there are other benefits I'm not considering).
- tyingq 10y agoIt's less of a difference now, and somewhat unrelated to the specific topic, but... A big historical difference with mainframes and data was the architecture around I/O. They always had separate processors to offload I/O, and I/O was always asynchronous. And things like VSAM were highly tuned to take advantage of that. That's why mainframes continued to outpace Linux/X86 for some types of workloads...even after X86 performance far outpaced the main processors in a mainframe. I believe that advantage is completely gone now, but mostly via brute force vs elegance. Commodity hardware is just so fast now.
- kbenson 10y agoSure, I wasn't trying to indicate there was no reason or benefit to mainframes, just to summarize the situation to make sure I understood it correctly. It does make sense to have an integrated library for advanced file access if you have dedicated IO hardware. That prevents a lot of misconfiguration of libraries that might try unsuccessfully use that system, if they even support it at all (i.e. OpenSSL and crypto hardware such as dedicated AES hardware as in the Via mini-ITX platforms of yesteryear).
- BillWoodger 10y agoCorrect about the I/O. You can let the space-bar auto-repeat 1919 times, for instance (nearest equivalent to circling the mouse) and the CPU cost is... zero. When, exactly, do you think that the X86 surpassed the Mainframe processors, and in what particular way? Current generation (expect a new one this year) is 5Ghz (actually slower than the previous) and has lots of stuff. A fully-loaded box has a theoretical throughput of 30bn (yes, billion) RESTful transactions per day. And if that isn't enough power, you can hang another 31 boxes onto it and treat them as one.
- tyingq 10y ago"When, exactly, do you think that the X86 surpassed the Mainframe processors, and in what particular way?" Fairly recently. Through things like affordable ssd, enough Moore's law around intel, and better distributed data stores. And better app side knowledge on how to break up a monolith. I was around for a few failed "rewrite this TPF system" attempts and I saw what broke. Commodity stuff can replace it now...but only very recently. Or if you just meant x86-64 vs any other CPU, for the CPU alone? That debate is just done. They poured enough money into that mess that they won, assuming you don't care about power consumption.
- BillWoodger 10y agoMoore's runs into the laws of physics: https://www.forbes.com/sites/gregsatell/2016/02/24/how-ibm-plans-to-innovate-past-moores-law/#73e8afd24dde https://www.forbes.com/sites/gregsatell/2016/02/24/how-ibm-p... Mainframe DASD is the same as "X86" disks, at least for those using "storage arrays". Pretty much all the smaller Mainframes are gone, many years ago. I've not heard of any successful replacement of a loaded system which used fewer than three times the initial projection of "X86-power". Anyway, time will tell. In 10 years' time you'll still think X86 is faster and there'll still be Mainframes. As to your last line, who is "they"? I'm just interested. Thanks.
- BillWoodger 10y agoIf you want DB2 in the operating system, you need an "IBM midrange" or iSeries. Much shorter code-path, much faster. If you want the fastest record access, the operating system z/TPF for the IBM Mainframe. Not only just fixed-length records, but jus fixed-length records of one size. Effectively, there are no "third-party libraries" (until you get to IBM's Java, or any language someone has ported (Lua is a popular example).
- BillWoodger 10y agoAs to the interchange of data, unless you run into a bunch of lazy Mainframers (they do exist) there's a lot they can do at almost zero "cost" to make it easy for you. It is not often there is a genuine case that anyone outside the Mainframe needs to know about internal Mainframe formats. I rail against "how do I translated packed-decimal fields in language-x" questions. There's no need for them to be seen. Same with LRECL and RECFM. Text-only, explicit signs, explicit decimal-points (or scaling factors), then you can have delimited records and no worries. You can even have XML or JSON if happier with that.