ARM Mac: Why I'm Worried About Virtualization

栏目: IT技术 · 发布时间: 5年前

内容简介:It's late 2020 and you just got a brand-new Mac with Apple's own ARM processors. Exciting! But what will development be like?I would

It's late 2020 and you just got a brand-new Mac with Apple's own ARM processors. Exciting! But what will development be like?

Docker

ARM Mac: Why I'm Worried About Virtualization

I would expect about a 5x slowdown running Docker images.

Docker on a Mac utilizes a hypervisor . Hypervisors rely on running the same architecture on the host as the guest , and are about about 1x - 2x as slow as running natively.

Since you're running ARM Mac, these hypervisors can only run ARM Linux. They can't run x86_64 Linux.

What will happen instead? These tools will fall back on emulators . Emulators can run a different architecture between the host and the guest , but simulate the guest operating system at about 5x-10x slowdown.

ARM Mac: Why I'm Worried About Virtualization

A basic performance test comparing gzip performance on amd64 (hypervisor) and arm64v8 (emulator). Note that the emulator is over 6x slower. On an ARM Mac, the amd64 image will instead be 6x slower.

Why can't you update the Docker image to also support ARM? You theoretically could switch your backend to run ARM Linux. However, this would take months - renting out ARM instances, re-building all repositories, and a tense switch over. Worse, it might be impossible if your images include files downloaded off the internet, as those are often only compiled for x86_64. Getting a new laptop isn't enough justification to switch you backend architecture.

ARM Mac: Why I'm Worried About Virtualization

An example of a Docker command that will only work on x86_64. PhantomJS does not release an arm build.

Another option is to run Docker remotely . You set up an x86_64 Linux server, then allow Docker to connect to it remotely. From then on, all Docker commands instead run on the server. This is also supported in Docker, here is a tutorial on setting it up. This is what heavy Docker users will want to do.

VirtualBox

ARM Mac: Why I'm Worried About Virtualization

VirtualBox won't work.

VirtualBox is a hypervisor . Therefore, it won't be able to run x86 Windows or x86 Linux .

You could use VirtualBox to run ARM Windows. Windows already supports ARM, and has a similar binary translation system to Apple's, so it can run x86 binaries. However, VirtualBox only supports x86 hosts and guests and is unlikely to be ported by ARM .

VMWare Fusion similarly is a hypervisor that only support x86, but they're thinking about supporting ARM .

Instead of VirtualBox you might use QEMU, an emulator. However, QEMU is pretty low level and not often used to emulate Windows.

Boot Camp

ARM Mac: Why I'm Worried About Virtualization

Boot Camp won't work.

Boot Camp is an Apple-approved way to dual-boot Mac OS and Windows. Boot Camp will not be available on ARM Macs. It might be added later with the ability to run ARM Windows, though Microsoft would have to approve .

Should I get an ARM Mac?

The point of this post isn't to say that ARM Mac is a bad idea, but to give a realistic idea of what it will be like developing on one.

Should you get an ARM Mac if you're a developer? if you use virtualization often, I wouldn't recommend it. There will be a lot of problems early on, and not all of them will have solutions. My biggest concern is getting an ARM Mac and realizing I simply can't run an essential application on it.

However if you like troubleshooting these issues and are excited about ARM Mac, go for it! My plan is for those kinds of people to fix these issues.

Know something I don't? Have questions? Email me at bmalehorn@gmail.com .


以上所述就是小编给大家介绍的《ARM Mac: Why I'm Worried About Virtualization》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

IT大败局

IT大败局

Merrill R.Chapman、周良忠 / 周良忠 / 电子工业出版社 / 2004-8-1 / 35.00

这是一本由作者亲身经历写就的MBA式教案。通过作者那专业人士的敏锐、活泼流畅的文笔和美国人特有的幽默,本书为我们剖析了IT界十个有代表性且影响深远的愚蠢败局。这十个败局涉及企业经营的十个主要方面,它们是:产业标准的魔力,“缩水”产品的阴霾,产品定位的泥潭,市场关系的教训,巨型企业的困惑,企业并购的陷阱,品牌战略的迷茫,技术导向的失衡,企业公关的真谛和科技虚幻的诱惑。 书中有许多鲜为人......一起来看看 《IT大败局》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具