by aero-glide · 6y ago · 0 comments
“We’re not direct booting an alternate operating system,” says Craig Federighi, Apple’s senior vice president of software engineering. “Purely virtualization is the route. [...]”
https://www.theverge.com/2020/6/24/21302213/apple-silicon-ma...
There is a massive marketplace for tinkering on computers, from Arduinos to multi-GPU ML rigs. Trying to optimize for both classes of things seems like a foolish endeavor, especially when Linux users represent such a small fraction of the desktop market.
That's part of the value proposition (leave it or take it).
It's not clear to me that the new Macs won't allow booting Linux if the Linux community can figure out how to do it. The number of folks booting Linux on Mac via Boot Camp has to be really tiny.
Mainline Linux support requires a lot of work from vendors. Check out the ARM SoC Linux market for an abundance of examples of this problem. Many of the devices will be forever stuck an old kernel fork and will never run a mainline kernel.
For comparison you can check the progress of Linux on iPhones (which is actually a thing!)
https://forums.macrumors.com/threads/running-linux-on-apple-...
https://support.apple.com/guide/mac-help/macos-recovery-a-ma...
When it comes to ARM SoCs, Linux requires vendor support to get it running. If you want mainline kernel support, that requires even more work that many vendors just aren't providing.
A locked bootloader is just one issue to overcome for Linux support. A lot of the real issues come down to the lack of an enumerable bus on ARM SoCs, along with a lack of drivers.
Without vendor support from Apple to support Linux, these devices will be like the millions of iPhones and iPads that don't run Linux and will never run Linux.
Most ARM SoCs that are sold explicitly as mini Linux computers also have this problem. Many of them are stuck on old kernel forks, because vendors didn't give the proper support their SoCs needed to run a mainline Linux kernel.
tl;dr: For Linux to be a viable option on Apple's SoCs, Apple needs to put in a lot of work to explicitly support Linux. Without that vendor support, you will never be able to download a Linux ISO and install it like you can on an x86 Mac.
Even if Apple does nothing to stop you running whatever software you like on the device, you’re still likely to be out of luck. I wouldn’t be surprised if some enterprising folks have a good run at it, but it’s likely to be a massive undertaking.
But if you want full control over your hardware... Apple isn't the way to go. I'm not even sure what the "OS of our choice" means when we're talking about a custom-designed SoC. The amount of reverse-engineering required to get any other OS to work would be staggering, no?
If you want to run a custom OS natively, you need to buy a laptop with a commodity chip, not a custom one. Fortunately, there are tons of them.
If Apple had decided to support it, that is.
Apple's hypervisor technology runs natively on the M1; Linux running on that will be faster than Linux running on anything else you can buy for the same amount of money.
They showed Debian running on Apple Silicon during the WWDC keynote nearly 6 months ago.
I expect a future “M2” to maybe take the performance crown, but AMD isn’t standing still. Cezanne has Zen 3 cores, which should boost IPC by about 20%, and Rembrandt should get to 5nm and have RDNA2 graphics.
1. You're not going to get 20 hours of battery life.
2. Don't forget it's not just the M1—it's the unified memory, the 8 GPU cores and the 16-core Neural Engine. Most CPU and GPU-intensive apps are going to run faster on the M1 than on your machine. Even x86-64 apps using Rosetta 2 on an M1 Mac may run faster, since those apps are translated to native code on the M1.
3. Mac's SSD is probably faster; it's essentially a 256GB cache for the processor.
4. The Mac can run iOS/iPadOS apps too.
5. If done right, Linux compiled for the M1 will likely run faster on an M1 Mac than it does on a machine like yours, especially if Apple provides a way to access certain hardware features.
We’ll have to see what happens but expect these machines to be pretty popular with users, even those who need to run Linux when that the distros are updated.
We shouldn't forget that the underpinnings to all of this is Darwin, the BSD-derived Unix layer which is already running natively on M1, including the compiler and the rest of the toolchain.
Sorry to burst your bubble, but you're not going to get 20 hours of battery life in real world usage on the M1 either. The early tests show about 10-12h, which is the same as my (and many other) laptops under regular usage.
> 2. Don't forget it's not just the M1—it's the unified memory, the 8 GPU cores and the 16-core Neural Engine. Most CPU and GPU-intensive apps are going to run faster on the M1 than on your machine. Even x86-64 apps using Rosetta 2 on an M1 Mac may run faster, since those apps are translated to native code on the M1.
Now it feels like you're just regurgitating marketing talking points. Can you tell me what "unified memory" even is exactly? Is it zero-copy support, because AMD has had that on its APUs since... 2013 or thereabouts. Is it LPDDR4 on a pop package, because all that means to me as an end user is I can never upgrade my memory and that I'm limited 16GB of memory (which I regularly go over - I am using 19GB of RAM right now just with browser tabs open). As for performance, we already know from the early testing that the M1 under-performs 8C Zen2 for heavy MT workloads like compiles and renders, so ... what are you saying exactly, somehow running software via emulation/translation will magically make that faster?
> 3. Mac's SSD is probably faster; it's essentially a 256GB cache for the processor.
Again would you simply assume that a Mac's SSD is "probably faster"? It in fact is not. The 256GB SSD on the M1 MBA was tested at 2676MB/s reads, my value NVMe SSD, a $200 2TB ADATA SX8200PNP does 2917 MB/s on my laptop. As for SSD as cache - what are you talking about? L2/L3 latency is typically about 10ns latency. NVMe latency is typically on the order of hundreds of microseconds, roughly 10,000X slower.
> 4. The Mac can run iOS/iPadOS apps too.
Poorly, but I mean, but surely this irrelevant to Linux performance?
> 5. If done right, Linux compiled for the M1 will likely run faster on an M1 Mac than it does on a machine like yours, especially if Apple provides a way to access certain hardware features.
Which hardware features? This is rhetorical. I know this is just hand-waving.
> We’ll have to see what happens but expect these machines to be pretty popular with users, even those who need to run Linux when that the distros are updated.
We'll see what happens. You can track the state of Docker here, for example: https://news.ycombinator.com/item?id=25119396
> We shouldn't forget that the underpinnings to all of this is Darwin, the BSD-derived Unix layer which is already running natively on M1, including the compiler and the rest of the toolchain.
Darwin/macOS may be POSIX compatible, but it is not production compatible with Linux. Like lots of other devs, I've used Macs in the past (for many years) and you always run into compatibility issues small and not so small until you're either running either a completely parallel devchain via Homebrew or MacPorts, or in a VM. Honestly, WSL these days is a more Linux-friendly dev environment than macOS. But then again, it's even easier/better to run Linux and Docker these days.
Although hardware specific software from Apple is probably a big part of that draw too. I don't think we're ever going to see Linux prioritize a certain hardware and put in the effort to make it integrate as well as macs does.
Perhaps I'm a bit jaded after running into too much bullshit trying to get Linux running well on laptops in the 90s and 00s. Since I made the move I never wax nostalgic for the "Good Ole Days" of fighting for hours to get Wifi working properly.
Even assuming Apple released the specs so you could port Linux to M1, on top of the usual laptop driver issues around the trackpad, wifi drivers, and video drivers, you also have to deal with the Secure Enclave. Without that, you are stuck with either a non-encrypted drive or running drive encryption on the CPU which is likely going to kill many of the performance gains from using the Mac hardware. Likewise, without the Secure Enclave, you lose fingerprint auth.
Not anti-Linux by any means, but dropping Linux on the M1 isn't going to get you the same performance or battery life by any means. You are far better just going with a laptop which was designed to be Linux friendly to start with.
Comment I replied to was 'I wouldn't pay for Apple hardware if I didn't want the software' implying that would be a stupid thing to do.
I prefer its hardware to anything else; I prefer Linux to macOS. So that's exactly what I'd want to pay for.