4 ms·
A lot of these look more like suboptimal implementations on ARM (or incredibly good implementations on x86). There is a lot of odd performance gaps all over the
by rbanffy 4y ago
A lot of these look more like suboptimal implementations on ARM (or incredibly good implementations on x86). There is a lot of odd performance gaps all over the tests.
- freemint 4y agoIf no better code exists that's the performance.
- cainxinth 4y agoThat’s technically true, but it’s also a bit like saying if there’s no fuel, a car is paperweight.
- bruce343434 4y agoIt is practically true! Beware of "Bionic Duckweed" and pricing in apparent future (thus yet nonexistent) tech (or software).
- jackmott42 4y agoWith every benchmark there is an objection, because every benchmarks measures a specific thing, and that specific thing is not the thing everyone wants to see measured. These benchmarks tell you what performance you get with this array of programs, on linux, with these machines. You want to know something about the inherent performance capabilties of each cpu, which is very hard to figure out, since we will never know when/if any of these programs has had a totally optimal solution for each piece of hardware. Usually the best you can do is just measure actual programs people use.
- Macha 4y agoWasn't this precisely the chicken/egg problem electric cars had to solve to start getting the adoption they're seeing now?
- microtonal 4y agoIt exists. E.g. on macOS it’d actually use the AMX matrix multiplication units (for benchmarks that use BLAS) and blow away most x86_64 CPUs that have to rely on AVX2.
- bildung 4y agoFair, but phoronix is a linux site, and thus performance under macOS won't be of interest for most readers. The performance as stated is the actual performance one currently gets under linux, regardless of potential.
- rbanffy 4y agoI’d say Phoronix’d audience prefers Linux but are quite friendly to other Unixes. The Mac has a very reasonable Unix running on it. Fun to think that Apple almost has a monopoly on RISC technical workstations…
- xbar 4y agoWhich is deeply interesting to people who want to run Asahi Linux on an M2. I found the data compelling--M2 silicon under Linux is generally competitive against contemporary strong x86 laptops, but if you are sensitive about the performance of a particular workload, choose your device carefully.
- freemint 4y agoIf it is not emitted by compiler running on a linux distribution targeted to run on M-Family Macs, it does not exist under Linux.
- kramerger 4y ago> incredibly good implementations on x86 In my experience Ryzen support on Linux is far from optimal. Have experienced tons of issues on zen+ and zen 2. And don't forget that the x64 code is slowed down by tons of security mitigations. I don't think most of these are available on M2 yet.
- cassianoleal 4y ago> Ryzen support on Linux is far from optimal What kinds of issues have you seen? I've been running a home server with a Ryzen 7 PRO 4750G and so far it's been stellar. > slowed down by tons of security mitigations. I don't think most of these are available on M2 yet. Are they needed at all? I thought the security mitigations were mostly for x86-specific architectural issues. Would you mind to elaborate?
- Macha 4y agoNope, Spectre type attacks work on ARM too: https://www.pcgamer.com/intel-amd-and-arm-cpus-hit-by-new-spectre-vulnerability/ https://www.pcgamer.com/intel-amd-and-arm-cpus-hit-by-new-sp... Now the existing discovered ones may not, but I'm sure in time there will be ones for Apple Silicon too. Just like how people for the longest time thought AMD was safer than Intel in this regard, or that ARM wasn't vulnerable.
- kllrnohj 4y agoARM (and IBM POWER) was vulnerable to meltdown, the huge practical bypass that AMD wasn't vulnerable to at all. Nothing about these attacks have been ISA dependent.
- kramerger 4y agoThere have been some issues with power management, load distribution and stability. A quick googling will show you more. Regarding the other point: run lscpu and compare enabled mitigations on Zen3 and M2. We still need a proper analysis to figure out which ones must be enabled on M2.
- hatch_q 4y agoApple is free to improve their Linux support.
- samstave 4y agoSteve jobs maniacally responds to your email from the grave.
- dralley 4y agoIt's not "their" linux support it's linux software support for ARM. A lot of software has x86 SIMD acceleration but doesn't necessarily have ARM SIMD acceleration.
- vbezhenar 4y agoApple supports Linux via virtualization. If you ask me, that's the most sane way to run Linux on macOS.
- kllrnohj 4y agoYou'd have the same ARM performance on Linux questions/problems when run under virtualization though, no? That doesn't actually change the complaint or situation here.
- dragontamer 4y agoI don't know if that's a valid excuse. Lammps molecular dynamics is by Sandia national labs, they probably have a good ARM implementation. LeelaChessZero is also a SIMD-implementation IIRC. Both are SIMD-accelerated, but LeelaChessZero is faster on M2, but LAMMPS is faster on AMD. I don't get it at all. Its really hard to see the pattern. Furthermore, its hard for me to imagine that LAMMPS would be much worse on one system over another, given the authors. --------- Then comes the "in-between" benchmarks. DaCappo is slower on low-power settings for M2, but high-power setting M2 faster than any setting. Very strange behavior, I can't imagine why this would happen. ZSTD compression is faster on AMD, but decompression is faster on M2. Same codebase, same authors, but different results over two different runs.
- jinto36 4y agoI'm not familiar with Zstandard and the Zstandard site doesn't discuss how they use threads in compression vs decompression, but I know that for gzip the parallel implementation in pigz is able to split the workload across threads for compression but not decompression. So it could be that similarly in Zstandard, decompression is not an operation that is identically implemented to compression in reverse. There could be differences in thread utilization that shift the balance to being more sensitive to single-core performance.
- GeekyBear 4y ago> I don't know if that's a valid excuse. It's certainly what Cloudflare found when they were evaluating early ARM server chips. >the first benchmark would be the popular zlib library. At Cloudflare we use an improved version of the library, optimized for 64-bit Intel processors, and although it is written mostly in C, it does use some Intel specific intrinsics. Comparing this optimized version to the generic zlib library wouldn’t be fair. Not to worry, with little effort I adapted the library to work very well on the ARMv8 architecture, with the use of NEON and CRC32 intrinsics. In the process it is twice as fast as the generic library for some files. https://blog.cloudflare.com/arm-takes-wing/ https://blog.cloudflare.com/arm-takes-wing/ SIMD code has to be hand written for both instruction sets before you are comparing Apples to Apples, as it were.