by 2bitencryption · 5y ago · 0 comments
My question is, how much of the sublime performance of M1 Macs comes from MacOS being fine-tuned to take advantage of these two different type of cores?
If you simply get the bare minimum of NetBSD booting on an M1, will it not achieve nearly the same performance unless the OS is fine-tuned to schedule properly across the "performance" cores and the "efficient low power" cores?
I remember reading a recent article [0] about how future Intel chips plan to have similar "perf" and "low power" cores, and part of the presentation included someone from Microsoft saying they spent lots of time on the Windows team making sure Windows could schedule across these properly. So I wonder how much work it really takes.
[0] https://www.pcworld.com/article/3629502/intels-alder-lake-wh...
MacOS isn't doing anything Linux and others aren't doing, or MacOS isn't doing anything those others can't do?
That is, do we actually know how well tuned MacOS is for these cores and their capabilities, or is that an assumption? I thought I had read there were some specific instructions in the chip that were either new to it or were more aggressively used by MacOS to get additional energy savings or performance gains.
The centralized + draconian approach they take has a lot of problems but does help sweeping changes like this.
1. https://developer.apple.com/library/archive/documentation/Pe...
And you base this comment on, what exactly?
These kind of tuning might never end up to Linux kernel being too chip specific. Apple has also moved a lot of driver code to another layer, and you don’t need that on kernel for example.
It's not entirely new - Remember pretty much all ARM processors that aren't MCUs have big.LITTLE, but there is no doubt additional work to be done in the area.
Basically none. The performance comes from the big cores. Linux/BSD can guarantee good performance in the short term by disabling the little cores.
Even just pedestrian clock processing for interrupts could exploit the other cores. Or keyboard and mouse processing, whatever. Playing an mp3 while you compile? That other core sure would stop context switching in the compiler...
With a few tweaks, mostly those suggested by powertop, my battery range was indistinguishable from Mac OS. Which is impressive, given that Safari is known to be very optimized towards low energy usage. I guess I compensated that with a simpler graphics stack that generated less CPU wakeups.
My M1 Air was noticeably faster even with spotlight indexing and a massive build inside a virtual machine out of the box.