Mac Mini on M1: an inside look
In this article, we'll take a look under the hood of the newest mac based on SoC M1, literally and figuratively.
As you know, guests are greeted by their clothes. Our guest today, the new Mac Mini, is minimally different from its 2018 predecessor. The first difference is the ThunderBolt interfaces provided. The old generation has 4 ports, while the newer has only 2. The second notable difference concerns the color of the Mac Mini. Devices with Intel processors come in Space Gray, while M1s come in Silver.
Apparently, Apple thus shifts the emphasis towards the inner content of the Mac Mini. The minimal differences in appearance across generations prompts more attention to their performance. A bonus is a reduction in risks, terms and costs for the development of new components.
We'll follow the urge to look inside the Mac Mini and take it apart.
Inner worldMac Mini 2020
Mac Mini 2018 (source ifixit.com )
The "keys" to the inner world of Mac Mini are Torx screwdrivers: T5, T6 and T8. As in the previous generation, behind the plastic plug is an aluminum cover, which is screwed on with six screws. It's easy to see that there is a lot of white space in the new Mac Mini. We remove the fan.
Mac Mini 2020 Fanless
A black strip similar to electrical tape is glued to the motherboard connection. Removal of this sticker voids the warranty. ... There are no upgradeable parts in the new Mac Mini, so there is no reason to remove the main board from the case either.
Main board outside the case
Motherboard without front panel and speaker
A motherboard without a case, front panel and speaker looks incredibly tiny. In the foreground, two unmarked iron components are visible, which are most likely a storage device. The most interesting thing awaits under the air duct and radiator. Unscrew the remaining 8 bolts and access the heart of the Mac Mini.
Under the heatsink, you can see three chips at once, marked with the Apple logo. However, the famous M1 is immediately recognizable. Next to the main crystal of the processor are two LPDDR4X RAM modules. Many chips are not labeled, however, the following are recognized:
MegaChips MCDP2920A4, DisplayPort 1.4 to HDMI 2.0 converter;
Broadcom BCM57782 Gigabit Ethernet Controller
2x Intel JHL8040R, ретаймер ThunderBolt 4;
Apple 1096 и 1097.
Chips on the back of the motherboard:
2x Texas Instruments CD3217B12;
Fresco Logic FL1100SX, контроллер PCIe-to-USB;
The proximity of all components helps to increase the speed of information exchange, but this is only a theory. Let's test the Mac Mini in practice and draw our own conclusions.
PerformanceThe M1 processor consists of 8 cores on the ARM64 architecture. However, these are not ordinary kernels. Half of them are high-performance FireStorm cores, and the rest are energy-efficient IceStorm cores. There is no official information on the TDP of the processor, but the estimated heat dissipation does not exceed 21 watts.
Installing the Rosetta 2 translator
The first benchmark in our plan is GeekBench5, a quick benchmark of CPU performance. On a Mac with an M1, the benchmark can be run natively and via the x86 translator in arm64. The latter is not present on the system by default, but it can be easily installed using the following command:
softwareupdate --install-rosettaThe operating system will also offer to install the translator when starting the old application.
GeekBench5 Main Window
If you have Rosetta 2 in GeekBench5, you can choose Intel architecture. This will allow you to measure the performance of your Mac Mini on unadapted "classic" applications.
|Application architecture||Single-Core Score||Multi-Core Score|
|Intel Core i5-10500||1176||5979|
|Intel Core i9-9900||1246||7687|
|Graphics Accelerator||OpenCL Compute Score|
|GeForce GTX 970M||19743|
|Graphics Accelerator||Metal Compute Score|
|NVIDIA GeForce GTX 980||21820|
Apple M1 has 16-core Neural Engine for working with neural networks and machine learning. We wanted to test with AI Benchmark , however, this test does not run due to a processor detection error.
Therefore, we chose a simpler test - training a convolutional neural network (CNN) to classify handwritten digits on the MNIST dataset. We have applied script adapted for use with the macOS Tensorflow fork. There are three key parameters in this test:
average transit time of an epoch;
average time to pass an epoch step;
the accuracy of the resulting model.
We ran tests not only on the experimental Mac Mini, but also on selected video cards and processors for data centers. Here's what we got:
|Device||Average epoch time, s||Average step time, ms||Model accuracy|
|Apple M1 (CPU)||15||33||99.81%|
|Apple M1 (GPU)||19||40||99.36%|
|Nvidia GeForce GTX1080||3||6||99.85%|
|Intel® Xeon® Gold 6240||9||17||99.86%|
|Nvidia Tesla A100||3||3||99.87%|
|Nvidia Tesla V100||3||3||99.94%|
|Nvidia Tesla P40||3||5||99.89%|
ConclusionThe new Mac Mini on the M1 suggests that desktops will soon move to the ARM64 architecture. Apple has made a device that presents the user with something new and unusual, but does not take away the old and familiar, allowing them to run applications created for a different architecture.
Do you think ARM architecture can completely supplant x64?
|Vote for this post
Bring it to the Main Page