5 ms·
ARM big.LITTLE[1] SoCs have been a thing for about a decade now, and most operating systems have schedulers that take advantage of each set of cores. macOS isn'
by heavyset_go 5y ago
ARM big.LITTLE[1] SoCs have been a thing for about a decade now, and most operating systems have schedulers that take advantage of each set of cores. macOS isn't doing anything special that Linux et al. aren't doing.
[1] https://en.wikipedia.org/wiki/ARM_big.LITTLE https://en.wikipedia.org/wiki/ARM_big.LITTLE
- kbenson 5y ago> macOS isn't doing anything special that Linux et al. aren't doing. 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.
- hedgehog 5y agoI don't know of anything really magical but for years Apple has been steadily pushing apps towards APIs that give the OS a lot of latitude to manage energy [1]. Grand Central Dispatch, AVFoundation, etc. Then on iOS BackgroundTasks etc (and iPhones have had little cores for quite a while now). I would imagine a lot of that experience transfers to macOS. 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/Performance/Conceptual/power_efficiency_guidelines_osx/index.html https://developer.apple.com/library/archive/documentation/Pe...
- fomine3 5y agomacOS do some clever scheduling, but I don't know is it improves performance, Maybe mainly improves power efficiency at user idle. https://news.ycombinator.com/item?id=27182244 https://news.ycombinator.com/item?id=27182244
- imwillofficial 5y ago> macOS isn't doing anything special that Linux et al. aren't doing. And you base this comment on, what exactly?
- heavyset_go 5y agoCare to share what special things macOS is doing? Because according to Apple's documentation, it doesn't seem like they're doing anything special when it comes to heterogeneous multiprocessing and scheduling that Linux hasn't been doing for quite some time.
- nicce 5y agoAt high level yes, but on much lower level that is another story. When you manufacture your own chips and code your own OS, there are no limits on microtuning. You can design them to work together, instead of when you usually need to make compromises. 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.
- rowanG077 5y agoThis keeps getting repeated with nothing to back it up. Can you give very concrete examples that apple can do that Linux isn't doing?
- nicce 5y agoThe core reasoning is in the design, and in power to manufacture and update all parts (device, firmware, drivers, OS). You can design them to work flawlessly together in bigger picture. You can leave out properties from kernel to be done by OS apps. You can make hardware based submodules, such as DCP interface on M1 macs, main target of discussion on Asahi Linux (https://asahilinux.org/2021/08/progress-report-august-2021/ https://asahilinux.org/2021/08/progress-report-august-2021/). You can add own instruction sets for own purposes. Something which is hard to add for Linux kernel. In theory, you might be able to the same with Linux kernel, but in practice driver development and other stuff is relying on reverse-engineering, black box testing or written specs without access to source code. How time consuming is that compared that to Apple? Is it more likely that main line code in Kernel is acceptable when it works, not when it is perfectly optimized and works? You can't rely that some OS app handles something, when Apple has full power for that. Android and iOS are better example for this. I post few links which might give an idea. https://www.quora.com/Why-are-iPhone-processors-more-efficient-and-faster-than-Android-phones https://www.quora.com/Why-are-iPhone-processors-more-efficie... https://www.quora.com/Why-does-the-iPhone-need-so-much-less-RAM-than-Android-devices https://www.quora.com/Why-does-the-iPhone-need-so-much-less-...