News for hackers. Stuff that matters.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Tuesday May 18, 2021 @12:48PM (#27197437)
That seems a bit weird to me. Many programs are hard to multithread but I'd expect that if any given program can make effective use of 8 threads it can probably keep scaling to 16 and 32. The hard part is getting from 1 to 2 and 2 to 4. So I'd expect that in most cases having more than 8 high performance cores doesn't make that much sense.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by bombcar on Tuesday May 18, 2021 @12:54PM (#27197527)
A Mac Pro is likely to be dedicated to those workloads which ARE easy to thread - video editing and processing - or simply have multiple applications running simultaneously.

Someone who doesn't need more performance cores is unlikely to invest in a Mac Pro.

Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Tuesday May 18, 2021 @02:40PM (#27199140)
I'm confused at this response. My thought is that instead of 32 high performance cores and 8 efficiency cores it might be better to have 8 high performance cores and ~100 efficiency ones which ought to be about the same area and power but provide a lot more throughput if software can utilize that level of parallelism.

There's a lot of software that won't scale to 108 cores, of course, but again I expect the amount of software that could usefully scale to 40 parallel threads but can't scale to 108 to be fairly small.

Re:Apple Readies MacBook Pro, MacBook Air Revamps by bombcar on Tuesday May 18, 2021 @03:17PM (#27199637)
The performance cores seem to take maybe twice as much space as the efficiency cores, so I'm not sure the tradeoff would be worth it - the efficiency cores would need to be more than half as fast taking into account the parallelism to make the tradeoff worth it.

In a world where power and heat budgets don't matter at all you'd not have any efficiency cores, after all.

Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Tuesday May 18, 2021 @03:29PM (#27199812)
The general rule of thumb for reasonably sized cores, which both Apple's performance and efficiency cores are, is that performance tends to scale with the square of the transistor and energy budget due to N^2 structures like the bypass network, ROB, etc being the long poles. Now, for any given transistor budget there's going to be a non-linear tradeoff between performance and power governed by supply voltage versus process threshold voltage. And if you're testing a chip and using only one or the other of the two sorts of cores you're paying for the uncore and memory subsystem regardless of which cores you're testing which complicates things. But it would be really weird if power consumption wasn't super linear with performance, that's why "efficiency cores" have "efficiency" in their name.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by thinkingemote on Tuesday May 18, 2021 @12:58PM (#27197581)
Macs are primarily well designed consumer devices, status symbols and objects of brand loyalty. These factors will push sales beyond a basic functional need.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by kungito on Tuesday May 18, 2021 @12:53PM (#27197518)
Amdahl's law can be formulated in the following way:

<math>S_\text{latency}(s) = \frac 1 {(1 - p) + \frac p s}</math>

Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Tuesday May 18, 2021 @05:00PM (#27201036)
That's tautologically true but the question is what the distribution of p is over the 0-1 interval for real world programs.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by jeffbee on Tuesday May 18, 2021 @01:11PM (#27197779)
> it can probably keep scaling to 16 and 32

Bad assumption. It's pretty difficult to write a multithreaded program that scales up to 32 cores. You have to carefully avoid all sources of process-wide contention. The only cases where it is easy to just keep adding cores are where the units of independent work are overwhelmingly large compared to everything else, like video compression.

Re:Apple Readies MacBook Pro, MacBook Air Revamps by Someone on Tuesday May 18, 2021 @03:57PM (#27200205)
Even then, there’s the contention on memory access. If one of those easily paralleled tasks uses x% of your memory bandwidth, having more than 100/x CPUs won’t help.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Tuesday May 18, 2021 @02:43PM (#27199172)
No, it's certainly hard to write a multithreaded program that scales up to 32 cores. But it's also hard to write a multithreaded program that scales up to 8 cores. I'm saying that if we exclude the multithreaded programs that don't scale to 8 cores, most of them can be made to scale to 32 cores with reasonable effort.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by jeffbee on Tuesday May 18, 2021 @04:11PM (#27200367)
I don’t really agree. You can get cpus where eight cores share an l2 cache and you can pretty much obliviously program those and get totally reasonable scaling because the contention penalty is the L2 access latency. There are no 32-core parts with that property, so you’re paying for at best L3 access latency and maybe main memory, possibly even NUMA node-crossing latency.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Tuesday May 18, 2021 @04:52PM (#27200933)
Are there CPU architectures where 8 cores share a L2 cache? I'm not aware of any though I can think of several where 4 cores share a L2 cache, though those tend to be pretty lightweight cores. More often you see issues with the L3 cache being shared between 8 cores or no as with Zen 2 versus Zen 3. And since only lightweight cores tend to share L2s this isn't really an issue in terms of replacing heavyweight cores with lightweight ones. Mostly, though when I think about sharing data between 8 cores I tend to be concentrating on making sure it ends up as S in MESI, MOESI, MESIF or whatever cache coherency protocol the chip is using.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by jeffbee on Tuesday May 18, 2021 @07:00PM (#27202391)
Sure, POWER9 offers pairs of SMT8 cores sharing L2 caches, that's 16 thread contexts presented to software that are all sharing an L2 cache domain. Intel "Tremont" Atom has a shared L2 cache for a module of up to 4 cores. Maybe that is the one you allude to as lightweight.
Re:Apple Readies MacBook Pro, MacBook Air Revamps by Symmetry on Wednesday May 19, 2021 @10:32AM (#27209190)
Yes, there are clearly architectures where 8 threads share a L2$. L1$ too in both recent POWER SMT8 cores and SPARC Niagras. Yes, Intel Atoms were one of the examples I was thinking of regarding 4 cores sharing an L2$. One can quibble about what counts as a "core" when you're talking about POWER9 or Bulldozers but even being generous I don't think there's ever been a design where 8 cores all share the same L2$.