Re:Switching to AWS Graviton slashed our infrastructure bill...
by _joel on Wednesday November 30, 2022 @04:58PM
(#33808429)
Are you building on arm64 natively or via qemu. A few mins vs 35 for the same roughish spec of CPU, seems a bit off, even with optimisation considerations.
I've found arm64 builds on amd64 take longer when using one build context/arch (but doing multiple platforms), but that's as it's being emulated.
It's the oppostite on my M1, the buildx amd64 takes longer.
Re:Switching to AWS Graviton slashed our infrastructure bill...
by arecurrence on Wednesday November 30, 2022 @07:15PM
(#33810184)
oh it was with buildx (which uses qemu) as GitHub Actions run in x64. I was showing a specific example of arm64 build tooling challenges small startups encounter (Github Actions lack of arm job runners in this case). My arm64 builds on arm64 architecture scream.
Re:Switching to AWS Graviton slashed our infrastructure bill...
by _joel on Wednesday November 30, 2022 @09:26PM
(#33811515)
You can do a self hosted runner on arm though, even on a Raspberry Pi (if inclined), so not sure it's prohibitively expensive to a startup, could even afford a spot graviton :D
I've got to say though, I've not experience that delta in build times, even emulated on my machine.
Re:Switching to AWS Graviton slashed our infrastructure bill...
by sofixa on Wednesday November 30, 2022 @05:07PM
(#33808534)
> GitHub actions can build a container in a few minutes in x64 or 35 minutes in arm64
What type of container, and on what runner? That has not been my experience at all, a cross-compiling buildx build with Python and a bunch of libraries takes only slightly longer for arm64 than it did for x86.
EG: GitHub actions can build a container in a few minutes in x64 or 35 minutes in arm64... likewise aws-cdk literally could not run an arm64 fargate ecs deployment for months after support was added (They simply did not support the required attribute in the container definition).
I would love to see this change as I've had nothing but great experiences with graviton for virtually anything arm supported.