The P and E cores do have the same instruction set; AVX-512 was fused off from P cores because it’s not in the E cores. Linus (Torvalds) hates AVX-512 so maybe it’ll go the way of the Dodo? The main differences between P and E cores is that E cores don’t have hyperthreading, and run at lower clock speeds (they’re also slower at inter-core communication but that’s not something you notice at a software level).
The kernel (Windows NT & Linux) really prefers symmetric/homogenous compute, but Microsoft and Intel have evidently made hybrid/asymmetric compute work as well if not better than previous Intel chips with identical cores on Windows.
I think that AMD, and to a lesser extent ARM, is really setting the pace here: they have more efficient silicon overall, and I’m sure I’ve seen that the upcoming Threadripper (Zen4?) will have big and little cores (IIRC I saw Dr. Ian Cutress/techtechpotato mention this in one of his videos).
ARM have 80 core server processors which obviously are more efficient than anything Intel or even AMD have to offer, so there’s a lot of potential in large numbers of efficient cores on the same substrate. I think we’ll be seeing more (hence my reassessment of where we’re going with hybrid compute).
It does help that the P and E cores are similar instruction set-wise. What I’m concerned with are the performance disparities between the cores, they have different clocks, IPC and cache depths.
Hypothetical here: program was properly coded to be multithreaded, but there is interdependency on the outputs of the threads at select points in time, if the performance of the threads is homogeneous then there is no problem, but if one of the program’s threads gets assigned to an E core the program can behave in unexpected ways like stuttering or processes timing out.
At this point in time I don’t trust any kernel’s scheduler to always choose correctly on a heterogenous arch, perhaps I never will unless there are hard flags added to compiled code to mandate how the code is executed by the scheduler.
I still have problems with the kernel putting two threads on the same core and slowing both processes down by a meaningful amount, perhaps 30%, when there is another unloaded core available to do the work; my solution is to disable hyperthreading to preserve performance… and this is in server 2022, not an OS with an old kernel.
I agree, AMD is vastly more efficient than intel right now (and probably for the foreseeable future), it’s crazy how intel when from being two nodes ahead of everyone else to a node or two behind TSMC in a relatively short time span.
The new apple desktop silicon is super interesting too, from the limited benchmarks I’ve seen, it is even more efficient than AMD and potentially more performant. I have a mostly memory-bound workload I want to try on the apple silicon to see how it compares to the typical dual socket x86 performance. I’m burning like 60kWh of energy per run of this workload on existing x86 servers.
I’m worried about AMD’s zen 4 and zen 4D (dense) genoa arch, scheduling on this would theoretically be even more complex than intel’s, with the scheduler having to take into account what kind of core (4 vs 4d), what chiplet and what socket the thread should run on.
This is a generalization but I think the utility of large numbers of general purpose computing cores runs out pretty quickly for anything but virtualization workloads. If a workload is that parallelizable then it should be run on a dedicated accelerator or GPU.
That was an interesting discussion. Following on from the hypothetical scenario a little - it was brought up that disabling the e-cores would possibly provide a temporary solution. Aside from a drop in performance, are there any potential issues with disabling the cores?
You’d likely see an improvement in performance, so long as your workload isn’t running all cores at 100% all the time. This is an interesting scenario however because the process knows more about its demand on processor resources than the kernel which is monitoring this metric in real time. That would imply that the software is essentially tuned for a certain hardware configuration in terms of cores, hyperthreading, and the performance of each. E cores and hyperthreading (and P cores for that matter) can be turned off in the BIOS to allow you more control over what processing resources the software has access to.
That’s an indictment on the correctness of Intel’s approach, and the ability of the kernel developers to correctly manage this. Those aspects remain to be seen IMHO.
You can set thread affinity and thread priority if it’s vital that your code operates in a deterministic manner with regard to performance of CPU cores. As mentioned elsewhere you could always disable E cores and even hyperthreading in the BIOS, but I get it that this is not the preferred or even a good solution: PCs are supposed to be general purpose devices that can run all manner of demanding applications, and the system software is there to supposedly hide these facets from the application programmer.
Isn’t that the point though - large numbers of cores are indeed aimed at general purpose computing loads, including virtualization.
That’s certainly one solution to ensuring the hardware is intimately tuned for specific software purposes, and one that we see cropping up in cases where the general purpose nature of PCs in not required, or is a hindrance (or a cost factor), such as crypto mining or database searching (both examples latterly employing FPGAs to increase performance). If you can’t make the hardware (via BIOS, e.g.) and system software behave the way your application/process requires, then a bespoke hardware solution is the way to go, if you have the resources and/or ability to do that. Most people will look for off-the-shelf solutions, typically in terms of bigger and faster hardware, or get domain-specific help from (system) software vendors so that they can run the code as required. Microsoft and the Linux community are very responsive to requests to overcome these sorts of issues in software (can’t vouch for Apple or other vendors).
I understand that, for the cases where scheduling isn’t being optimally used. But could there be any negative effects that arising from disabling the e-cores?
Well, yes. You’re going to lose performance cores to tasks that could be run at lower performance/priority.
My take, as yet inproven (I’m in the midst of a build) is that if you disable E cores you get essentially the previous generation of your chip with single core improvements. So if you have a i9-12900 for example and disable all the 8 E cores then you get an i9-11900, but with the performance improvements that Intel engineered for the 12th gen cores, minus AVX-512 which has been removed because the E cores don’t support it (and the kernel would somehow have to know not only what type of core to schedule, but what type of work regarding 512-bit matrix ops in x86 code the thread would be doing).
As ever with this sort of complex problem you’re going to have to test and benchmark it. If you can’t do that for whatever reason or don’t want to risk it then stick with something tried and true. If you know that heterogenous core computing is going to be an issue then I’d say look at current Ryzen or Threadripper systems, and/or hold off until the next generation of those architectures are released.
Perhaps this is my ignorance of what exactly the “thread director” is doing showing here.
I think this is the future, for all even moderately large/complex problems, the computing architecture is going to be tailored to them as opposed to in the past where a big problem got a bigger and faster cpu thrown at it… maybe even got several of those big fast cpus thrown at it if the problem could be efficiently split up. There is a proliferation of accelerators for a decent subset of common computing problems.
My background is mostly FEA so I’m coming at it from that mindset, I’m sure there are scenarios that fall outside this.
I’ve looked in the Intel documentation regarding the Hardware Feedback Interface which is what the “Thread Director” operates on, but I don’t have in-depth knowledge of the feature.
At regular intervals - some number of milliseconds - the processor reports via a table two metrics for each core, a relative performance metric, and a relative efficiency metric. Both are single bytes within an 8 byte entry and use 0 to 255 to indicate the relative value of each metric. How the processor is making the determinations I don’t know: presumably number of instructions executed in a time slice for performance, and possibly temperature for the efficiency metric.
I’m not a kernel dev so I don’t know what’s going on inside the kernel to make use of these metrics. I’ve seen presentations where the split between performance and efficiency core usage is not fine-grained: basically “background” tasks get E cores and foreground or particularly real-time threads - as you’d expect - get P cores.
I’m a little concerned about this myself. I’ve gone for an i9 build, but can’t help shake a sneaking feeling that I made the wrong decision. Much depends on how Linus et al solve the problem in the Linux kernel. Windows 11 seems to have done a good job, with a lot of help from Intel engineers reportedly, but I’ve also caught implications that there are still issues with responsiveness and throughput that didn’t exist in the previous purely symmetric compute architecture.
I have to believe, given that ARM has been using big.LITTLE for some time, that any issues will be fixed, but there’s no doubt in my mind that there’s a certain amount of “magic” required - tuning - to make this new approach work as flawlessly as the previous symmetric variant. Given that Intel is committed to P & E cores I also have to believe that this will be solved by brute force if necessary, if indeed there is something still to be solved. We’re going to find out re: Linux with the release of 5.18 some time in the next 6 weeks or so.
That is interesting. I suppose we’ll see in the coming years how effective using such a low level strategy is, it doesn’t sound bad on the surface but there are going to be so many layers of execution interacting with each other.
I’ve heard the same stories about how intel really worked closely with Microsoft on Win11 to get the scheduling right too, I wonder if clear linux got some kind of special treatment as well since theoretically it is “in house” to intel.
I’m open to trying new computing architectural shifts, but when they aren’t very fruitful I’m also just as open to pruning them. Not every advancement is an advancement; like when intel jumped headlong into VLIW… it took almost 20 years for Itanium to die off but it had it’s hooks in the enterprise market which prolonged it.
I can’t think of any negative affect from disabling the e-cores as long as you aren’t trying to get peak multithreaded performance out of the machine, even with the e-cores disabled you’ll get better single and parallel performance than the last gen.
In fact I was looking around the web and saw that someone mentioned a 33% performance degradation (as measured by SPECapc_Solidworks2021_V1.1) when running solidworks and going from Win11 to Win10… I highly suspect the scheduler is the culprit of this.
Intel tried getting away from the x86 baggage with Itanium, but backward compatibility is Intel’s bread and butter. That and poor execution did for Itanium. And AMD inventing x86-64…
ARM have been successfully deploying hybrid performance/efficiency core architecture for years, which is probably where Intel got the inspiration. They really needed to do something to mitigate the ever-increasing power consumption of their chips. Raptor Lake will come with even more efficiency cores so we’re not backing down from this brave new world. @wendell assured us that the 5.18 kernel is going to be fantastic for Alder Lake so I’m trusting that he’s correct (he usually is). Microsoft and Intel have showed that the feature can work well, as you’d expect: they’d have been benchmarking this thing on their own variant of the Linux kernel in-house for a few years before releasing it into the world.
I’m mildly squeamish about it, just because it’s something new and more complicated than the pre-existing solution (pure SMP) but I think I’m just being a worry wort. I hope so. I’m sure I am…
Itanium was definitely interesting, back in the day I got roped into a project where the goal was to completely and mostly perfectly emulate SGI’s IRIX environment on Itanium, supposedly this was doable because of Transitive Corporation’s QuickTransit. All because a certain entity not to be named would not move their software off of IRIX… to this day the software still only runs on IRIX.
Its not just you, I’m worried about it too. but on the bright side at least we know what kind of change is coming as opposed to being in the dark about it and the paradigm change surprising us.
@kristian80au
Forgot to mention that Win11>Win10 33% performance drop with solidworks was on a 12900K presumably without the e-cores disabled.
Right now I’m leaning towards just taking a tried an trusted route and going with a 10850k ($340 right now). SolidWorks 2020 will be capable enough for a long while as will a 10850k. I realized that technically, 10th gen is really only one generation old (and will be about the same as 11th gen for modeling and faster in simulation) so I don’t feel bad buying it.
On another note, do you have any experience with the I225-V ethernet controller? I posted in Networking but haven’t gotten a reply. Apparently it had its share of issues that weren’t ever resolved.
I changed tack: I haven’t even put my i9-12900 build together but I decided to go for a Ryzen 5950X & DDR4. I should have done that from the start. At least I know it’s going to work with Linux. Whether all the other hardware plays ball remains to be seen.
Going with 10th gen, you can weather things out for two to three years before your PC will feel a bit old. To be fair though, Gen 12 isn’t going to age much better, but motherboard should be compatible with Gen 13, which should last you 4 years or so.
Or go 10th gen and second gen AM5 to then update to 5th gen AM5 down the line. No clear winner here, up to you.
To a degree, I agree about longevity. For my use case it’s unlikely that I’ll need to update in 2-3 years. My 4790 has served me very well up until now, I’m just going to be dealing with larger SolidWorks assemblies soon so that’s my motivation. That, and I’m not prepared to run hardware until it physically dies, and can deal with shelling out money every 10yrs. I also won’t be using a new version of SolidWorks for a while. For those that have workloads that increase over time or game, I can see how they’d be on a shorter upgrade cycle.
Regarding AMD, I’d like to be able to consider them as an option, but I don’t have the impression that AMD is supported as well as Intel is for my use case and there seemed to be some maturity issues. If I didn’t trade, they’d be an option.
@kristian80au
Be careful with the I225-V controller, the B1 and B2 revisions of it are borked in hardware in a way that no driver update will make them function completely correctly. Supposedly the B3 stepping of the I225-V got it right but the fact that two released steppings of the chip were consecutively hardware bugged made me loose confidence in it. My current PC is using a Realtek 8125 2.5gbe controller; we’re in a bizarro world where Realtek>Intel for the network, at least for 2.5gbe controllers.
For Solidworks I’d lean toward alder lake instead of comet lake, according to passmark (a fairly reasonable cpu benchmark for “typical” workflows in my opinion) alder is ~30% faster than comet in single threaded; that’s a greater leap in performance than going from 4790k to 10850k is.
Also another con with comet lake is you don’t get pcie gen4 for your NVME drive, and almost all modern NVME drives can saturate pcie gen3.
I’m in the same situation with Intel being supported in software in a way that AMD isn’t, otherwise I’d pick AMD for my workstation.
Thanks for the info. I’ve found a number of sources stating that B3 still hasn’t fully fixed the issue, while some say that it has.
I was hoping to go with an ITX system this time around, but between the lack of ITX boards, their high cost, most of them having I225V and of course not being able to use a PCIE NIC, I think I’ll have to stick with ATX. I’m sure there’s a reliable PCIE NIC out there if I need to use one.
The 30%+ performance would be nice - especially being about the same price - but the idea of having a proven system that just works is appealing. I’ll just have to live with upgrading after 8 yrs instead of 10. While my assemblies are getting larger, they’re still comparatively small so gen4 would just be a bonus.
I have the non-K 4790, so add another 10% to the 30%. I’ve watched a number of 11th gen reviews and never really considered it, but I was surprised to see a 15% uplift in single threaded performance over 10th gen. I may just go with an 11700k for $300 instead given most of my work is in single threaded mode.