8 ms·
The Apple M1, ARM/x86 Linux Virtualization, and Boinc (2021)
- dvhh 4y agoQuite interesting, would linux running on quemu give a better experience than asahi linux ?
- StreamBright 4y agoAre you asking if virtualization is worse than not using it?
- fathyb 4y agoIt will take a while before we get Linux GPU drivers for M1, and if even if we do, it will be buggy. So running Linux on QEMU with a virtualized GPU should provide a better experience than using CPU rendering or buggy drivers for most day-to-day tasks like browsing the web.
- deleted 4y ago[deleted]
- sscarduzio 4y agoWhy do you assume they will be buggy? Marcan is really good at these things, I guess time will tell.
- rawoke083600 4y agoYea I also want to know, I love linux and mac-hardware (almost any generation, tbh)
- maven29 4y agoWhy not just SSH into a significantly more capable machine and enjoy two days between battery charges instead? (AMD just got done with their 5nm Zen 4 Computex keynote right now) https://www.anandtech.com/show/17399/amd-ryzen-7000-announced-zen4-pcie5-ddr5-am5-coming-fall https://www.anandtech.com/show/17399/amd-ryzen-7000-announce...
- jen729w 4y agoOkay I'll bite. Does that machine exist? You linked to a CPU page, not a machine-with-two-day-battery-life page.
- bitwize 4y agoBecause you can buy an M1 Mac today. By the time this Ryzen CPU appears in a real PC you can buy, the next-gen Apple Silicon Macs will have arrived, and they will be several years ahead of this Ryzen.
- dagw 4y agoAlso there is more to a laptop than just its CPU. Doesn't matter how great the Ryzen processor is if they can't get laptop manufacturers to put them into great laptops.
- grw_ 4y agoGP is proposing using Macbook as thin client to Ryzen build server. Laptop cpu is never loaded hence 2 day battery life, performance is better on anything benefiting from significant parallelization. I use same workflow with 5950X[0], works great. [0] https://www.hetzner.com/dedicated-rootserver/ax101 https://www.hetzner.com/dedicated-rootserver/ax101
- ithkuil 4y ago> Because you can buy an M1 Mac today You can order one today. I'm still waiting for mine I ordered in March.
- deleted 4y ago[deleted]
- sigjuice 4y agoThings have improved a lot since this article was written. Running Linux VMs on an M1 Mac is easier than ever. Homebrew Qemu and UTM work out of the box. UTM also supports bridged networking. I haven’t had a chance to try it myself, but I believe libvirt also works now without doing anything special.
- immmmmm 4y agoI have installed Ubuntu Server 20.04 on a M1 Max on UTM and it was the fastest linux installation ever by an order of magnitude! I tried the x86 version with UTM but got a crash. Highly recommended!!
- sigjuice 4y agoI should have been clear in my original comment that I was referring to virtualization, i.e. ARM Linux guests.
- boesboes 4y agoI was using UTM yesterday and it works great vor ARM vm's. x86 is to slow to use. Like, opening firefox takes 10 minutes. Not sure where that goes wrong yet. Or if qemu emulation is just that slow. This article suggests it could be better EDIT: nevermind, misread/understood the post. x86 code is fast, x86 emulation is not. It works, but is hardly usable.
- sdevonoes 4y agoI'm currently using VMware fusion (tech preview) and Vagrant (with the free vmware plugin) to spin up several Ubuntu VMs in my new (got it last week!) Mac M1. So far so good, although sometimes I need to restart the vmware thingy because it may not assign the custom private ip addresses I define in my Vagrantfile. One needs a Vagrantbox for Ubuntu arm (you either can trust one of the uploaded ones in Vagrant cloud or bake yours using Packer or similar tooling). Nice thing about this setup is that it's all free (just like I used to have when using Intel and Virtualbox).
- jaimex2 4y agoWas this satire at the time? Genuinely asking as its comparing a cheap pos system to a new one that's 6x the price and then playing a game that happily runs on a Core 2 Duo with 4Gb of ram.
- deleted 4y ago[deleted]
- titaniumtown 4y agoKerbal Space Program does not "happily" run on a core 2 duo with 4gb of ram lol. It's a very intensive game once you make anything even remotely complex.
- Syonyk 4y agoThe KSP reference, probably not well expanded, was in comparison to the 2018 Intel Mac Mini I had previously, which basically could not play it - it was barely livable with graphics turned all the way down, because Intel Integrated Graphics on that era Mac Mini suck (I don't think it even had the eDRAM cache). KSP ran fine on my 2014 iMac with discrete graphics. It absolutely did not run acceptably on the 2018 Mac Mini, and it ran wonderfully on the ARM M1. But, no, the post was not satire. Not sure why you would think it was. It was trying to, very soon after the M1 came out, work out some concrete ways to do Linux VMs and such, and playing with performance.
- moondev 4y ago> Linux, in hardware virtualization on the M1, is fast. Like, vastly, hugely, mind-bogglingly fast. Absolutely useful for anything that “needs Linux” on a M1, and very likely the fastest Linux machine you can get right now for single threaded work. Author seems to be basing this from their results of https://browserbench.org/Speedometer2.0/ https://browserbench.org/Speedometer2.0/ : * M1 - Chrome on macOS: 127 * M1 - Chrome on Linux via QEMU: 160 I just ran the benchmark on my framework laptop (2021 version - 11th Gen Intel® Core™ i7-1185G7) * Framework - Chrome on Windows 11: 138 * Framework - Chrome on Linux (manjaro): 160
- catfishx 4y agoHave seen linux machines with cheaper hardware than the M1 getting a lot higher scores on Speedometer
- ngcc_hk 4y agoAnother question is - do you want to carry multiple notebook or just 1 machine do it all.
- bla3 4y agoThose numbers look like they run Intel Chrome on the M1 Mac. The Universal Chrome binary gets close to 300 on an M1 Mac.
- moondev 4y agoI think the issue is improvements to Chrome since the article was published. Regardless the takeaway that "M1, and very likely the fastest Linux machine you can get right now for single threaded work." is conjecture. If someone can benchmark chrome on asahi linux it would give us a better comparison.
- deleted 4y ago[deleted]
- Syonyk 4y ago
- boesboes 4y agoInteresting claims on emulation. Perhaps a custom qemu build is in order. I’ve tried running a x86 linux on UTM yesterday and it was to slow to even boot before I gave up. I’ve entirely give up on doing x86 docker builds for the same reason..
- titzer 4y agoIt's worth noting that emulating x86 linux on M1 macs with qemu still sucks pretty bad. This was an important use case for me that I basically gave up on and got an EC2 instance, in addition to buying a couple more spare x86 machines.
- danaris 4y agoSince the article at least seems to be saying the opposite, can you give some specifics about just how it sucks?
- Syonyk 4y ago(Author here) Just a reminder, this article was published in Jan 2021, I'd had the M1 Mac Mini for about a month, and virtualization was still very rough around the edges. My understanding of the state of it today is that it's far better, with VMWare and such having actual working products for it (the very early beta was out, and it wasn't very good). The Speedometer numbers are a bit suspect, it turns out that some of the browser extensions were impacting performance more than I realized, so the "raw" speed is a bit higher on the M1 than I was reporting. However, I stand by my point that it's a properly quick little Linux VM. Unfortunately, I no longer have the M1, so I can't provide any current comparisons. Apple went in some directions I'm not OK with and I've stopped using their stuff pretty much entirely.
- woojoo666 4y ago> Unfortunately, I no longer have the M1, so I can't provide any current comparisons. Apple went in some directions I'm not OK with and I've stopped using their stuff pretty much entirely. As a non-Apple user considering an M1 myself, I'm curious what you mean by this
- Syonyk 4y agoYou can find some other posts on my blog relating to it - https://www.sevarg.net/2022/05/07/tech-philosophy-2022/ https://www.sevarg.net/2022/05/07/tech-philosophy-2022/ is one such. I'd been somewhat uncomfortable with some of the decisions Apple has been making for a while, mostly related to China. The "iCloud in China" thing in which Apple gave the keys to iCloud in China to the CCP (you can spin it how you wish, but from my point of view, if you've given a Chinese company physical access to the servers, you've granted everything on those servers to the CCP, regardless of how much you go on about keeping the encryption keys yourself) was one issue, the treatment of workers was another. They've supply chained themselves into a corner called China, and are now entirely subject to the whims of the Chinese government, under the "Nice factories, it'd be a shame if something were to happen to those agreements you've got!" logic. So I was considering what I wanted to do, and then they went down the whole on-device CSAM scanning path, complete with the internal email sharing the quote from a third party talking about crushing the "shrieking voices of the minority" who would dare oppose this obviously good thing. That, which I've also written about (doing some experiments in what it takes to change the hash and such), was a giant leap too far for me. I'm not OK with so overtly turning my devices against me with a system that has clearly not seen the slightest bit of adversarial analysis ("How can this be abused?"). Apple hasn't actually forced it out that we know of, but to borrow the punchline from a joke, "Well, we know what kind of company you are, now we're just haggling about timing" (https://quoteinvestigator.com/2012/03/07/haggling/ https://quoteinvestigator.com/2012/03/07/haggling/). They built up quite a "privacy capital" credit with their actions in the debate with the FBI over backdoors, and appear to have decided it was worth burning it all down over the CSAM scanning, which they've yet to deploy. So I've de-Appled my life quite substantially. I swapped from using an iPhone as my daily driver phone to a KaiOS Flip IV (wrote about that if you're curious on my blog), I sold the M1 and LG 5k monitor with it at a rather substantial loss, I don't use the iPad for anything anymore except ForeFlight (aviation software), I picked up a Kobo Elipsa for PDF reference for work to replace the iPad/Goodreader combo, and I've generally de-Appled my life as a result of their actions. It leaves me lurking in the weeds of Linux on ARM small board computers (a weird hobby of mine, but they're quite capable these days if you understand their limits), and Qubes on x86, though I've not entirely purged legacy Linux because I do enjoy Kerbal Space Program and Minecraft on occasion, as do my kids. The M1 Mac Mini was, for the time I had it, the best computer I'd used. It was blisteringly fast, and despite only 16GB RAM, didn't feel like it - you could just keep throwing workloads at it and it would chew through them, only occasionally spinning the fan above idle. The GPU was solid, the CPU performance was world class, and the entire experience, even running x86 binaries, just worked. The M1 MacBook Pro is literally exactly what I want in a laptop. A slab sided machine with a set of useful ports, blisteringly fast ARM CPU, battery life for days, and having abandoned the abomination that the Ive era keyboard was (thin for the sake of thin, functionality be damned). And I will never own one at this point, because I cannot trust Apple anymore not to turn my hardware against me anymore. So, I'm working out how to do my computing on far less. My daily driver laptop is a PineBook Pro, which is... adequate for my needs, if I'm willing to redefine my needs into "That which the PBP can do." Same for most of my desktops being weird little gutless ARM boxes anymore. Spotify won't run on ARM/Linux? Fine, ncspot it is. Etc. Anyway, I don't expect a lot of other people to agree with this path or to take similar actions (though I wish many would), but I simply couldn't be as strongly against Apple's CSAM proposal as I was and continue using their products. And having cracked that box open, we now see the EU proposals that expand drastically on what Apple has done, "because clearly it can be done, nerd harder to solve it!" ... I don't actually like consumer tech and what we've done with computers very much anymore, if it hasn't come through.