News for hackers. Stuff that matters.
Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by tpurves on Tuesday February 13, 2024 @11:07AM (#39359011)
As your workload grows in thread count, processors become limited by memory bandwidth per socket, as well as power and thermal constraints. The 'big' cores can only perform at their peak frequency, power draw and IPC when not in a high multicore workload. So you end up wasting silicon resources, power in an all-big core design. Instead if you make the last several cores to be turned on smaller and optimized for a lower power state, you can fit more of them in, and achieve higher overall thread throughput for a given die size or power/thermal envelope.

So imagine you set a given budget for silicon die size and chip power. You might then have 3 design possibilities. Say 8 big cores, 16 little or 12 in hybrid. The hybrid design should be able to match the all-big in single/lightly threaded loads, while beating the all-big in highly multithreaded. These tradeoffs of course work best in form-factors that are constrained by cost or battery power. Which is where you see amd using them in consumer. Or by space/power where you see AMD giving choice of small/dense core options in Epyc.

Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by elorant on Tuesday February 13, 2024 @11:49AM (#39359657)
And what happens if you run something that's embarrassingly parallel and you need all the juice you can get from your cores. With hybrids you have to rely on the OS to decide when it will utilize everything and when not which in some heavy loads could cost you performance wise.
Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by wtallis on Tuesday February 13, 2024 @01:41PM (#39361116)
The OS doesn't decide how many threads the application spawns. Is there a hybrid system you're aware of where the OS will refuse to schedule N threads across N cores due to the cores not all being the same type?

The only such example I'm aware of is Intel's recently-launched Meteor Lake laptop chips that include an extra two low-power E cores on a separate chiplet from the rest of the CPU cores, running at half the performance of the regular E cores and with no L3 cache, so whether they're used or not only makes a few percent difference to embarrassingly parallel workloads.

Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by elorant on Tuesday February 13, 2024 @02:01PM (#39361348)
I didn’t say that the OS refuses to utilize cores. But I’ve seen examples of embarrassingly parallel tasks that utilize 80% of the cpu to run faster on CPUs with only performance cores when compares to hybrids with the same number of threads. There might be some other reason for that, but my gut feeling is to stick with all performance designs.
Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by wtallis on Tuesday February 13, 2024 @02:12PM (#39361478)
> I’ve seen examples of embarrassingly parallel tasks that utilize 80% of the cpu to run faster on CPUs with only performance cores when compares to hybrids with the same number of threads

The "same number of threads" bit is throwing me off. A hybrid config will generally have more CPU cores allowing it to handle more threads for a chip of the same size, so testing with a fixed thread count can only tell you that the performance of each small core is less than the performance of a large core. But maybe the examples you have in mind are complicated by SMT/HyperThreading (which Intel has on P cores but not E cores, while AMD has it on both)?

Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by elorant on Tuesday February 13, 2024 @02:41PM (#39361889)
I only mention threads because it's the only way to draw comparisons between dissimilar cpus.
Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by wtallis on Tuesday February 13, 2024 @04:00PM (#39362760)
You already specified that we're discussing embarrassingly parallel tasks, so putting a constraint on thread count is of no use here. We can compare on the basis of performance, power and die size.
Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by yencabulator on Sunday February 18, 2024 @12:41PM (#39421137)
The smaller cores are not really much different from having other applications / kernel / device drivers running concurrently with your workload.

Bad design: see N cores, split work into N partitions, start N threads, each thread processes one partition.

Good design: see N cores, start ~N threads, each thread takes 1/M of work at a time, M>>N.

Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by binkHN on Tuesday February 13, 2024 @11:49AM (#39359649)
Do you have a URL or something that reviews this in greater detail? Perhaps in a laptop scenario?
Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by dtx1 on Tuesday February 13, 2024 @12:09PM (#39359941)
> The 'big' cores can only perform at their peak frequency, power draw and IPC when not in a high multicore workload.

This is really not true. With a decent motherboard and sufficient cooling, you can force the big cores to stay virtually locked at peak clock speeds. Der8auer does it for a Ryzen 8000 APU here just as an example: https://youtu.be/VNYx72Elgss?t=335

Re:AMD's Mild Hybrid Strategy: Ryzen Z1 in Asus's ROG Ally by wtallis on Tuesday February 13, 2024 @02:02PM (#39361362)
Putting a laptop chip into a desktop platform and giving it water cooling and unlimited power delivery isn't a particularly strong counterexample. That's nowhere near the operating point the silicon was designed for, and the fact that AMD shipped a few SKUs that enable such usage as an afterthought doesn't disprove much.