What is the best way to disable the mitigations if you don't care about security but care about performance?
https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/SpectreAn...
21–30 of 33 posts
What is the best way to disable the mitigations if you don't care about security but care about performance?
https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/SpectreAn...
AMD seems to fare better with the patches. Its good for AMD. I remember when AMD64 came out and AMD had a lead on intel. Its good to have have some competition.
Except Intel + mitigations still much faster on most workloads than AMD without mitigations.
Earlier quoted context omitted.
Except Intel + mitigations still much faster on most workloads than AMD without mitigations.
This isn't Bulldozer anymore. Intel has faster single thread performance on some workloads, but the difference for "most workloads" is modest and for the same money AMD is offering more cores, more memory channels and more I/O. For threaded (i.e. server) workloads it has been a solid choice even before these mitigations started eating into Intel's single thread performance lead.
Earlier quoted context omitted.
This isn't Bulldozer anymore. Intel has faster single thread performance on some workloads, but the difference for "most workloads" is modest and for the same money AMD is offering more cores, more memory channels and more I/O. For threaded (i.e. server) workloads it has been a solid choice even before these mitigations started eating into Intel's single thread performance lead.
A 2-socket AMD setup has the same NUMA topology as an 8-socket Intel machine, and because of that the performance is terrible on many workloads.
The first is that your working set won't fit in the processor caches and has regular cache misses into main memory -- but most of the Epyc line has 64MB of L3 cache.
Then the access pattern has to be random rather than sequential, which knocks out a major class of the applications satisfying the first criteria (all the ones that process big files in sequential order).
Then the operating system scheduler has to fail to schedule the process on a core in the same node as its data, most commonly because you have a process with more active threads than there are threads per node.
What you're left with is, basically, large databases. But large databases also benefit significantly from more cores, memory channels and I/O. Which factor dominates is going to depend on specific usage, e.g. a database with randomly accessed individual bits will be more sensitive to latency whereas one containing pictures or other medium-large blocks of data will be more sensitive to memory bandwidth.
You can certainly find a worst-case usage pattern for one or the other but in general they're going to counterbalance each other.
Earlier quoted context omitted.
A 2-socket AMD setup has the same NUMA topology as an 8-socket Intel machine, and because of that the performance is terrible on many workloads.
There are a lot of things that have to go the wrong way at once to get to the point where that really matters. The first is that your working set won't fit in the processor caches and has regular cache misses into main memory -- but most of the Epyc line has 64MB of L3 cache. Then the access pattern has to be random rather than sequential, which knocks out a major class of the applications satisfying the first criter…
Regardless of whether the impact is big or small, you are stuck with it if you need the security. But 5-10% performance impact is completely unacceptable for the cases where you don't care about security (much) such as gaming. Given how hard it is to keep my windows machine from eating my CPU anyway with updates etc while I'm gaming: should people start booting to a special partition with a legacy OS without these mi…
Earlier quoted context omitted.
There are a lot of things that have to go the wrong way at once to get to the point where that really matters. The first is that your working set won't fit in the processor caches and has regular cache misses into main memory -- but most of the Epyc line has 64MB of L3 cache. Then the access pattern has to be random rather than sequential, which knocks out a major class of the applications satisfying the first criter…
I don't think you really understand the architecture of the machine. EPYC looks on paper like it has a large L3 cache, but it consists of separate L3 caches per "core complex" of which there are two per die and four dies per package. So what you've actually got is a bunch of redundant 8MB caches, which is not the same thing. Because of the baroque topology, especially when you have two sockets, access to main memory…
Most working sets fit in even 8MB (or less) -- the reason for 64MB is to provide for multiple threads. In which case if one thread isn't using its proportionate share there are seven others that can use it. Sharing with sixty-three instead would be "better" but at some point it's diminishing returns.
Maybe we should just give up wanting to run untrusted code safely as a failed experiment. For example 90% of the JavaScript I run is for advertizing purposes. The pragmatic solution would be that either everybody moves to self-hosting ads, or that the neccessary telemetry for third parties is moved into a browser function. Web pages (that are not applications) should not need a "turing complete" language (in the vulg…
Care to elaborate? What about process isolation?