News for hackers. Stuff that matters.
Re:IBM mainframe beats other platforms for cost and performance by tw04 on Wednesday September 08, 2021 @09:56AM (#28457023)
Ignoring for a second that they claim these have the same performance without providing any actual benchmarks that I see... the server configurations alone make no sense. In 2021 nobody would order 12x HP proliants with less than 256GB of memory per server and then run 1,000 VMs on them. That averages out to what? Roughly 2GB of memory per server unless you're horribly oversubscribing them - which nobody who has ever designed a virtual environment would ever tell you to do - so your VMs are going to be memory starved pretty much 24/7. Even IBM tells you not to oversubscribe memory on their mainframes.

I also struggle to believe that oversubscribing the z CPUs 66:1 isn't going to result in performance issues. The documents on limits aren't clear but I foresee that mainframe spending a LOT of time on locks even with all the work IBM has done to help manage them.

This whole thing just really smells like a bad advertisement for IBM, which aligns with them announcing their latest gen z processor last week.

Re:IBM mainframe beats other platforms for cost and performance by evol262 on Wednesday September 08, 2021 @10:31AM (#28457590)
While I agree that this configuration needs more memory, mainframes are primarily used for very high throughput jobs. "Lots of memory to sit idle" isn't really a priority.

That aside, samepage sharing has been a thing in virtualization for more than a decade. If you have 800 VMs running RHEL8 for POWER, a significant amount of the memory load is kept in identical pages, which lowers the burden of oversubscription. The recommended workload is unlikely to be 1000 unicorn/pet VMs, and more likely to be a large number of VMs running the same base OS, and some of the same workloads.

Synchronous interrupt locking is also a solved problem.

Re:IBM mainframe beats other platforms for cost and performance by jfindley on Wednesday September 08, 2021 @11:10AM (#28458233)
If by "samepage merging" you mean KSM[0], it's hugely expensive in CPU cycles (not to mention severe impacts on membw, l3 cache, etc) and outside of low-end VPS hosting has relatively few real-world applications. I'm not sure why it would be a useful thing to mention here.

0: https://www.kernel.org/doc/html/latest/admin-guide/mm/ksm.ht...

Re:IBM mainframe beats other platforms for cost and performance by evol262 on Wednesday September 08, 2021 @11:21AM (#28458410)
Yes, I mean KSM (and its equivalents in other hypervisors).

The CPU cycles are a non-issue for the configuration on this mainframe, and it's fair to assume that, since IBM developed the silicon and IBM engineers wrote the hypervisor layer, that most of the detrimental effects of "we need this to work across multiple CPU vendors and multiple generations of the architecture" are covered.

Even x86 CPUs get improvements to cache coherency in memory dedupe scenarios with generational improvement, and intelligent NUMA topology layout helps a lot. It's also worth noting that it's a mainframe, so essentially every configuration has a large number of other processors with a couple of instructions disabled so they don't "count" as CPUs for licensing, but they still perform work. I would not be surprised in the least if there were 1+ co-processors dedicated to offloading operations exactly like "LPAR || z/VM memory dedupe"

Re:IBM mainframe beats other platforms for cost and performance by pgtan on Wednesday September 08, 2021 @01:33PM (#28460389)
[edit] sorry, I've mistaken the concepts. The name is active memory deduplication, which sits on top on memory sharing.

http://www.redbooks.ibm.com/redpapers/pdfs/redp4827.pdf

[old]

It is called active memory sharing in the POWER world

https://www.ibm.com/docs/en/power9/9080-M9S?topic=sharing-ma...

http://www.redbooks.ibm.com/redpapers/pdfs/redp4470.pdf

Re:IBM mainframe beats other platforms for cost and performance by jfindley on Wednesday September 08, 2021 @11:39AM (#28458691)
That's a good point - I was speaking from experience with KSM on x86, but having a dedicated coprocessor on system Z for this application would make a lot of sense and fix many of the problems I've seen on x86.
Re:IBM mainframe beats other platforms for cost and performance by eptcyka on Wednesday September 08, 2021 @11:25AM (#28458476)
This isn't something to be done at the guest VM level but at the hypervisor level. In an optimal scenario, it can be cheaper to clone a VM with CoW semantics than it would be to deduplicate memory dynamically. But I guess this would defeat kASLR between all of the clones.
Re:IBM mainframe beats other platforms for cost and performance by tw04 on Wednesday September 08, 2021 @11:32AM (#28458588)
The entire scenario outlined is for a production deployment of Websphere backed by Oracle. IBM specifically calls out 1:1 memory for production workloads (which oracle very much is) in their performance documentation:

Slide 17:

http://www.vm.ibm.com/library/presentations/syslimit.pdf

>Synchronous interrupt locking is also a solved problem.

No, it really isn't. I have not seen a production implementation of virtualization with > 4:1 CPU oversubscription that doesn't eventually or immediately have significant performance issues with database workloads.

Re:IBM mainframe beats other platforms for cost and performance by zozbot234 on Wednesday September 08, 2021 @11:42AM (#28458739)
Isn't WebSphere a web application server? That really doesn't look like the sort of extreme vertical scaling and integration that mainframes are supposed to perform well at. We would expect hyperscaled commodity hardware to perform best here.
Re:IBM mainframe beats other platforms for cost and performance by evol262 on Wednesday September 08, 2021 @11:46AM (#28458776)
> The entire scenario outlined is for a production deployment of Websphere backed by Oracle. IBM specifically calls out 1:1 memory for production workloads (which oracle very much is) in their performance documentation:

This discussion is about the configuration of the systems, not this specific scenario. While this may have been the scenario outlined for you, it wasn't apparent from your comment.

Production workloads on busy servers have very different requirements than consolidation, VDI, resiliency/redundancy, hardware abstraction, etc. Every workload needs a different evaluation.

All of these VMs running production Ora/OAM/OEM/Websphere workloads? No, don't oversubscribe. Some of them running similar workloads? More oversubscribe is ok. Few of them? Lots of oversubscribe.

Similar for interrupt locking. The "old" synchronous interrupt lock I was speaking about was "I have a bunch of VMs with CPU oversubscribe, and even if they're doing nothing, 30% or more of your CPU time goes to interrupt scheduling so every vCPU for a given VM can schedule simultaneously". This is solved.

"I'm running a CPU-intensive workload on a massively oversubscribed server" is not, and we really shouldn't expect it to be.

I am having a generalized discussion about virtualization oversubscribe. You are having a specific discussion about CPU-heavy DB workloads. Apples cannot be compared to oranges.

Re:IBM mainframe beats other platforms for cost and performance by tw04 on Wednesday September 08, 2021 @11:58AM (#28458951)
I guess you can move the goal posts now, but it should have been exceedingly clear that I was commenting on the workload in the link, because I'm replying to the link. My outline of hardware is the hardware in the link, I didn't just make up an imaginary scenario. Literally everyone else in the thread is commenting on the link, you appear to be the only one confused about what we're talking about.

>All of these VMs running production Ora/OAM/OEM/Websphere workloads? No, don't oversubscribe. Some of them running similar workloads? More oversubscribe is ok. Few of them? Lots of oversubscribe.

All of the VMs are running Oracle/Websphere/Apache, per the link. That is what the article is recommending, which is where my skepticism came and is coming from.

>I am having a generalized discussion about virtualization oversubscribe. You are having a specific discussion about CPU-heavy DB workloads. Apples cannot be compared to oranges.

Everyone in this thread is talking about the article, I guess everyone but you.

Re:IBM mainframe beats other platforms for cost and performance by evol262 on Wednesday September 08, 2021 @12:50PM (#28459724)
If those were goalposts, they weren't clear. The miss is that the article in the link doesn't discuss VMs or virtualization at all, so talking about oversubscription/etc seemed like an ad-hoc commentary on the hardware configuration unless I totally missed that in the article, but searching for "virtual", "VM", "vCPU", "subscribe", etc didn't find anything. There's a limited amount of effort I'm gonna put into digging into additional links on "Planet Mainframe" pushing mainframes.

That aside, comments on articles are sometimes more general. "How do mainframes compare in 2021?" is a conversation which is not intrinsically linked to "should you oversubscribe VMs 66:1 for this specific workload?", and I interpreted your comment at the former. I wasn't talking about the article at all.

Re:IBM mainframe beats other platforms for cost and performance by tw04 on Wednesday September 08, 2021 @01:09PM (#28460030)
> The miss is that the article in the link doesn't discuss VMs or virtualization at all, so talking about oversubscription/etc seemed like an ad-hoc commentary on the hardware configuration unless I totally missed that in the article

There is a giant table in the middle of the article that is impossible to miss if you read it. It literally says # of VMs. As well as calling out VMware, and z/VM as tye hypervisors in use. The oversubscription is a simple math problem, and that's assuming best case scenario.

Re:IBM mainframe beats other platforms for cost and performance by 300bps on Wednesday September 08, 2021 @10:28AM (#28457552)
The article's price tag of $2.3 MM for 12 HP Servers with 24 cores per server and 166 GB of RAM each is ridiculous.

We just paid just under $50k per server for on-prem physical servers that have 144 cores per server and 1.5 TB of RAM each.

For 12 of them it would be less than $600k and you'd get a total of 1,728 cores and 18 TB of RAM to compare against the mainframe's 30 cores and 2 TB of RAM for over 4x the cost!

Re:IBM mainframe beats other platforms for cost and performance by m4rtink on Wednesday September 08, 2021 @01:25PM (#28460274)
4x the cost is actually not bad for the massive redundancy, hotswap-everything, boatloads of IO, insane build quality and crtitical legacy software support a mainframe gives you!
Re:IBM mainframe beats other platforms for cost and performance by brianwawok on Wednesday September 08, 2021 @01:45PM (#28460560)
4x the cost for 5-10% of the performance? Yes, that is terrible.
Re:IBM mainframe beats other platforms for cost and performance by vntok on Wednesday September 08, 2021 @04:25PM (#28462575)
There are many other parameters to consider than raw perf.
Re:IBM mainframe beats other platforms for cost and performance by DaiPlusPlus on Wednesday September 08, 2021 @07:36PM (#28464371)
Qualitative ones, yes.

Apple’s Macintosh made waves with its cheeky hello world demo: “Never trust a computer you can’t lift” (…and defenestrate).

Similarly, with an IBM big iron box, if something goes wrong, I sure hope the 6-figure support contract gets it fixed - probably within a few hours if you’re in Manhattan or the SF Bay, but what about elsewhere? Whereas with commodity HP/Dell/Supermicro pizzaboxes in a HA configuration I don’t need to worry about needing a same-day fix for hardware issues - I could put things off for months, even - and probably do it myself and spend the support contract money on a Plaid Model S and have money left-over for a Mac Pro with XDR display (with the cool stand!).

I know IBM’s srsbsns machines have their own redundancies - including being able to hot-swap literally everything, it still feels like open alternatives are overall better in the long-run.

Re:IBM mainframe beats other platforms for cost and performance by tyingq on Wednesday September 08, 2021 @11:34AM (#28458621)
Using list pricing comparisons of course favors the mainframe in this comparison. Since commodity hardware is sold at a fraction of list price and mainframes are not.
Re:IBM mainframe beats other platforms for cost and performance by throwaway98797 on Wednesday September 08, 2021 @11:17AM (#28458351)
Nobody gets fired for buying IBM.
Re:IBM mainframe beats other platforms for cost and performance by matmatmatmat on Wednesday September 08, 2021 @12:34PM (#28459501)
Well, maybe in the past.
Re:IBM mainframe beats other platforms for cost and performance by abacadaba on Wednesday September 08, 2021 @12:54PM (#28459777)
Would be kinda cool to be able to say you got fired for buying IBM though.
Re:IBM mainframe beats other platforms for cost and performance by nix23 on Wednesday September 08, 2021 @03:12PM (#28461711)
Or i got sued for buying Oracle...by Oracle ;)
Re:IBM mainframe beats other platforms for cost and performance by Johnny555 on Wednesday September 08, 2021 @01:08PM (#28460002)
It's been a long time since I've run a VMWare cluster, but that's exactly what they told you to do - oversubscribe memory and let their memory dedupe, balloon driver + swapping handle the case where you run out of physical RAM.
Re:IBM mainframe beats other platforms for cost and performance by pickle-wizard on Wednesday September 08, 2021 @02:11PM (#28460953)
Starting with ESXi 6 VMware has disabled the transparent page sharing (Memory Dedup) by default. Back in 2015 or so there was a theoretical VM escape vector that used the shared memory pages. So VMware just changed the default to disabled. I usually recommend turning it back on in lab environments, but leave it off in production for security reasons.
Re:IBM mainframe beats other platforms for cost and performance by oneplane on Wednesday September 08, 2021 @10:21AM (#28457419)
Yeah, this whole LPAR thing is supposed to make oversubscribing less of an issue, but in practical terms it is comparable to Xen PV without HVM mode (Essentially Vt-i without Vt-d). It's not that it never works, it's just that you have to take severe shortcuts and snowflake kernels to get it to work in the first place (so now you're incompatible with the body of knowledge that is the internet), and then you essentially just do multiproces CPU core sharing, memory sharing with swapping etc... not great.
Re:IBM mainframe beats other platforms for cost and performance by evol262 on Wednesday September 08, 2021 @10:28AM (#28457539)
VT-d is used for device passthrough. I suspect you're thinking of VT-x. But LPAR have been around forever, and aren't that different conceptually from jails, systemd-nspawn, LXC, and any other of a large number of OS-level virtualization solutions, except that you can stub in/out different kernels.

Yes, the kernels need to be "snowflakes", but that's not necessarily an issue if this is functionality you really need.

Re:IBM mainframe beats other platforms for cost and performance by nix23 on Wednesday September 08, 2021 @03:11PM (#28461706)
LAPR is not a OS-level virtualization, you can install Linux on a LPAR (however you do it normally with z/vm), it's more like a Hard, Hardware divider.

https://en.wikipedia.org/wiki/Logical_partition

Re:IBM mainframe beats other platforms for cost and performance by oneplane on Wednesday September 08, 2021 @04:53PM (#28462923)
Essentially it's a microcode hypervisor. You can indeed install Linux on an LPAR, but it will be a useless linux unless you intend to use it for classic 'bog box' installations. (with big box referring to the cardboard boxes that come with installation floppies/CD/DVD media type of software 'distribution')

While an LPAR could technically be HVM, the nature of the changes required to an OS make it PV-like.

Re:IBM mainframe beats other platforms for cost and performance by nix23 on Wednesday September 08, 2021 @05:56PM (#28463536)
I just wanted to say that it's NOT like jails and it's not OS-Virtualization.
Re:IBM mainframe beats other platforms for cost and performance by oneplane on Wednesday September 08, 2021 @08:07PM (#28464594)
If someone wanted to make a comparison, it's like additional 'rings' the x86 ring security model, but instead of nested rings it's parallel rings. You might as well have a single OS with containers.
Re:IBM mainframe beats other platforms for cost and performance by oneplane on Wednesday September 08, 2021 @04:52PM (#28462899)
Yes, you are correct, I was thinking about the oldest of the VT's. The one that did accelerate but didn't even require an IOMMU.
Re:IBM mainframe beats other platforms for cost and performance by lucb1e on Saturday September 11, 2021 @03:48PM (#28495242)
> Roughly 2GB of memory per server [...] so your VMs are going to be memory starved pretty much 24/7.

Most applications don't need gigabytes of memory though? I don't know what one uses a mainframe for but web servers, file shares, remote login software, proxies, traffic scrubbers... lots of common applications use up to a few dozen megabytes of RAM; throughput is much more important there and memory to operate on is just for some state and buffers. Even a database with millions of rows and a dozen indexed columns, the index of that (I just checked a database of my own) is in the hundreds of megabytes, far from even one gigabyte.

It seems a bit odd to assume each server always needs multiple gigabytes of RAM.

Re:IBM mainframe beats other platforms for cost and performance by Misteur-Z on Wednesday September 08, 2021 @10:26AM (#28457506)
You a need a shitload more RAM for sure and this also forgets about plugging a SAN, and any SAN from IBM is super expensive on hardware AND licenses.
Re:IBM mainframe beats other platforms for cost and performance by spoonjim on Wednesday September 08, 2021 @12:49PM (#28459708)
The purpose of this article isn’t to actually argue that mainframes are cheaper. It’s an asset for a CTO who’s staying on mainframes. When the CFO asks him “why aren’t we moving to Azure? I heard my buddy say he saved $40 million doing that” the CFO sends this article.
Re:IBM mainframe beats other platforms for cost and performance by ksec on Thursday September 09, 2021 @04:44AM (#28467615)
If anything this article shows why Financial companies aren't moving away from Mainframe. It is comparatively speaking such as small amount of money while the risk are incalculable. Upgrading to Z15 is a much easier option.
Re:IBM mainframe beats other platforms for cost and performance by mathattack on Wednesday September 08, 2021 @11:26AM (#28458499)
Welcome to the world of IBM. This is consistent with their Watson marketing.

They’ve stopped being an innovation business.

Re:IBM mainframe beats other platforms for cost and performance by nix23 on Wednesday September 08, 2021 @03:07PM (#28461662)
Like Intel, Microsoft and Google?
Re:IBM mainframe beats other platforms for cost and performance by mathattack on Wednesday September 08, 2021 @05:48PM (#28463475)
Worse. The others still try.
Re:IBM mainframe beats other platforms for cost and performance by nix23 on Wednesday September 08, 2021 @05:53PM (#28463510)
Microsoft and Google try? But yeah Intel is trying really hard.