News for hackers. Stuff that matters.
Re:Apple M1 Max Geekbench Score by throwaway894345 on Wednesday October 20, 2021 @04:31PM (#28936073)
That's Docker for Mac versus native Docker. Docker only runs on Linux, so Docker for Mac spins up a linux VM to run your containers. When you mount your Ruby or Python projects into your containers, Docker for Mac marshals tons of filesystem events over the host/guest boundary which absolutely devastates your CPU.

Docker for Mac is really just bad for your use case.

No idea what's going on with the thumb drive, bluetooth, etc.

Beyond that, it's a little silly to compare a desktop (presumably many times larger, ~500+W power supply, cooling system, etc) with a Mac mini (tiny, laptop chip, no fans, etc).

Re:Apple M1 Max Geekbench Score by shados on Wednesday October 20, 2021 @04:46PM (#28936298)
> Beyond that, it's a little silly to compare a desktop (presumably many times larger, ~500+W power supply, cooling system, etc) with a Mac mini (tiny, laptop chip, no fans, etc).

You're totally right, but I see a lot of folks around me making absolutely bonker claims on these M1 devices. If I believed everything I'm told, I'd be expecting them to run complex After Effect rendering at 10000 frames per second.

Re:Apple M1 Max Geekbench Score by alwillis on Wednesday October 20, 2021 @06:34PM (#28937697)
I think that’s disingenuous. I haven’t seen any claims that haven’t been backed up by benchmarks and specific use cases.

What most people keep missing is the M1 jumped out way ahead on performance per watt on their first attempt at making their own processor.

I’ve seen the M1 Mac for less than $700. In that price range, there’s not much competition when it comes to computation, GPU performance, etc. and comes fairly close to much higher priced x86 Macs and PCs.

That’s why people are excited about the M1. You generally can’t edit 4k (and 8k) video in real-time on a machine in this price range—and what people happily paid 5x that price to get this level of performance just a few years ago.

Re:Apple M1 Max Geekbench Score by LordDragonfang on Wednesday October 20, 2021 @07:58PM (#28938481)
> on their first attempt at making their own processor.

They've been making their own chips for over a decade now. The M1 is not fundamentally different from the A series, and in fact seems to serve as a drop in replacement (in the iPad Pro line).

That being said, this is the first time they're confident enough in their own processor to rewrite their whole desktop software stack and market what are traditionally mobile-exclusive cpus as being superior to x86 in the personal computing space. And in all honesty, for good reason.

Re:Apple M1 Max Geekbench Score by alwillis on Wednesday October 20, 2021 @10:50PM (#28939658)
That being said, this is the first time they're confident enough in their own processor to rewrite their whole desktop

Pretty sure it wasn’t a matter of confidence, as Apple has been signaling making their own desktop processor for a while. There was an iPad launch a few years ago where Phil Schiller said that particular A-series processor had desktop-class performance like three different times.

Also, it’s the third time they’ve done a processor transition: 68K to PowerPC to Intel to ARM. There’s no doubt they’ve known for years they could do this if needed.

It wasn’t a rewrite; it was mostly a recompile, especially after Apple dropped support for 32-bit apps. iOS and macOS share many frameworks and APIs and that’s been running on ARM since 2007.

When Apple announced the switch to Intel in 2006, Jobs revealed they had Mac OS X running on Intel in the lab for years; there’s no doubt they’ve had macOS running on ARM for years as well.

Likely getting the logistics of software and hardware development to align at the scale Apple operates at is what took the time; not the lack of confidence.

This move was probably inevitable but it certainly didn’t help that Intel repeatedly missed deadlines and performance goals.

Re:Apple M1 Max Geekbench Score by zimpenfish on Thursday October 21, 2021 @04:03AM (#28941677)
> There’s no doubt they’ve known for years they could do this if needed.

Honestly would not be surprised if it comes out at some point in the future that they launched the ARM-Mac project as soon as they'd successfully switched to Intel.

Re:Apple M1 Max Geekbench Score by alwillis on Thursday October 21, 2021 @12:14PM (#28946676)
Honestly would not be surprised if it comes out at some point in the future that they launched the ARM-Mac project as soon as they'd successfully switched to Intel.

If not right after the switch to Intel, certainly when the A7 was on the drawing board, since it was the first mainstream 64-bit ARM processor.

Re:Apple M1 Max Geekbench Score by BugsJustFindMe on Wednesday October 20, 2021 @05:05PM (#28936604)
> You're totally right, but I see a lot of folks around me making absolutely bonker claims on these M1 devices.

What "but"? The claims are less bonkers with a perspective that acknowledges the significance of those physical differences.

Without the case, would the full internals (motherboard/CPU/GPU/PSU/ram/heatsinks/storage) of your desktop fit in your pants pockets? Because the M1 Mac Mini's fit in mine.

How much fan noise does your desktop produce? How much electricity does it consume? M1s are fast compared to almost everything, but they're bonkers fast compared to anything getting even remotely close to 20 hours on a battery at 3 lbs weight.

Re:Apple M1 Max Geekbench Score by shados on Thursday October 21, 2021 @11:15PM (#28953359)
I get the point, but I was answering the question of "why do people compare this with desktops". Because people compare them with everything.

You're totally right that they are impressive in their own right, especially in their category. I'm not arguing that.

Also:

> How much fan noise does your desktop produce

Basically none since modern high end air cooling is essentially silent. Water cooler pumps are noisier though.

Re:Apple M1 Max Geekbench Score by rbanffy on Thursday October 21, 2021 @07:56AM (#28943138)
If Geekbench scores are an indication, it is well into the HEDT league [1]. Some results of previous-gen servers are equally surprising, such as this 2-way 2x64-core EPYC Rome setup [2].

1- https://browser.geekbench.com/v5/cpu/compare/10508517?baseli...

2- https://browser.geekbench.com/v5/cpu/compare/9997439?baselin...

Re:Apple M1 Max Geekbench Score by matwood on Thursday October 21, 2021 @08:01AM (#28943183)
> You're totally right, but I see a lot of folks around me making absolutely bonker claims on these M1 devices.

I bought an M1 MBA to replace a 2017 (might have been 2018 - I forget now) top specced Intel MBP and it cut the time to run my large Java test suite in half. Of course those are generations/years apart in technology, but the MBA doesn't have fans, barely gets warm, the battery lasts days, and it's the low end of the first generation M1.

I'll fully admit that there might be other systems out there that can do exactly that in the same fan less, portable package that I'm unaware of.

Re:Apple M1 Max Geekbench Score by amelius on Wednesday October 20, 2021 @05:43PM (#28937126)
> You're totally right, but I see a lot of folks around me making absolutely bonker claims on these M1 devices.

Fake news happens on HN too. Apparently. Sadly.

Hopefully it's mostly limited to discussions about Apple.

Re:Apple M1 Max Geekbench Score by saila on Wednesday October 20, 2021 @08:23PM (#28938666)
I used to run Docker on an older Intel Mini and it was fine--a little slow but usable. I've also used it on other Intel Macs without major issues, including running giant Java apps and SQL Server.

On my M1 Mini, I found it unstable and incredibly slow (for Postgres at least, using stock images from Docker Hub) and mostly quit using it. I upgraded to the latest version recently and it was still too slow.

For everything else, though, I find that the M1 Mini is significantly faster. E.g., compiling Python versions is way faster.

Re:Apple M1 Max Geekbench Score by pxc on Thursday October 21, 2021 @01:17AM (#28940592)
What's the CPU arch of the container images you're running?
Re:Apple M1 Max Geekbench Score by saila on Thursday October 21, 2021 @09:10PM (#28952706)
The postgres image (postgis/postgis:12-3.1-alpine) is linux/amd64.

I see now that the official postgres images have other arch options compared to the postgis images, which are arm64 only. I wonder if that could make a difference...

And now I see that Docker Desktop actually shows a warning about potentially poor performance when using an amd64 image: "Image may have poor performance, or fail, if run via emulation."

This is good news, since I'd much rather use Docker to run postgres in dev.

Re:Apple M1 Max Geekbench Score by saila on Wednesday October 27, 2021 @05:23PM (#29019314)
Correction: in paragraph 2, "arm64" should be "amd64"

Update: I switched to an official postgres image and it works great. I just had to create a derived image that installs PostGIS like so:

    FROM postgres:13-bullseye
    RUN apt-get -y install postgresql-13-postgis-3
Re:Apple M1 Max Geekbench Score by musicale on Thursday October 21, 2021 @01:36AM (#28940720)
I wonder how well ARM64 is supported in the Docker community? Presumably x86 Docker images running in emulation would be even slower than ARM64 images running in a Linux VM.

Though as you note they're completely different classes of hardware (500W vs. 26.5W), a more Apples-to-Apples (so to speak) comparison would be native Ubuntu on both systems, though as I understand it Ubuntu for M1 is not complete and may lack GPU support and other important features.

Re:Apple M1 Max Geekbench Score by chrisjc on Thursday October 21, 2021 @06:26AM (#28942544)
I don't think chip architecture was the main issue that the parent was alluding to. The same issues would arise if it was Docker running an x86 image on an x86 chip on a Mac.

Docker doesn't run natively on OSX, unlike Linux where it does. As a result, Docker Desktop for Mac spins up a linux VM, and this is where penalties begin to be payed.

I do wonder if Docker Desktop is smart enough to tailor the VM's architecture to the image's architecture? Moreover, is it smart enough to tailor both the VM's architecture and images architecture to the host's hardware architecture?

I'd be interested to see how these soft and hard architecture combinations actually change the performance characteristics:

    M1/ARM -> x86-VM -> ARM-image
 vs 
    M1/ARM -> ARM-VM -> ARM-image
I wonder how difficult it would be to support docker natively on OSX (BSD?) or if Apple has any intention on providing that support?
Re:Apple M1 Max Geekbench Score by throwaway894345 on Thursday October 21, 2021 @08:36AM (#28943503)
> I wonder how difficult it would be to support docker natively on OSX (BSD?) or if Apple has any intention on providing that support?

I think it would be pretty difficult. Mac would effectively have to provide a fully compatible Linux interface in its kernel. It would probably be more likely to build a better fs-event bridge to guest systems, but considering MacOS still doesn’t have ext4 support, I’m not counting on it.

Re:Apple M1 Max Geekbench Score by throwaway894345 on Thursday October 21, 2021 @08:33AM (#28943473)
It’s supported pretty well. I’m running a Kubernetes cluster on Raspberry Pis and these days most popular images have ARM64 support.
Re:Apple M1 Max Geekbench Score by savoytruffle on Wednesday October 20, 2021 @10:09PM (#28939465)
Every Mac mini has had a fan. The 2018 Intel version and the M1 version use a lot of the small internal space for a large fan.
Re:Apple M1 Max Geekbench Score by mvanbaak on Wednesday October 20, 2021 @05:58PM (#28937311)
> Docker for Mac is really just bad for your use case. Nah, not just for mac, docker is really just bad. period ;P
Re:Apple M1 Max Geekbench Score by flatiron on Wednesday October 20, 2021 @07:13PM (#28938084)
Docker is certainly a hammer that makes a lot of problems look like nails. Maybe too frequently. But you can’t really debate that it’s a really powerful hammer.
Re:Apple M1 Max Geekbench Score by throwaway894345 on Thursday October 21, 2021 @09:39AM (#28944171)
What’s wrong with Docker? Are you opposed to Docker specifically or containers generally? What’s the problem and what’s your preferred solution?