Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM binaries to releases #802

Open
cor opened this issue Jun 26, 2022 · 20 comments
Open

Add ARM binaries to releases #802

cor opened this issue Jun 26, 2022 · 20 comments

Comments

@cor
Copy link

cor commented Jun 26, 2022

Currently, there are only X86 binaries available on the releases page. This is a problem for our team as some people are developing on M1 Macs. Can you please also release ARM binaries?

@chevdor
Copy link
Contributor

chevdor commented Jul 6, 2022

The reason why we release only X86 binaries is that validators usually don't run nodes on anything else than Linux servers.
That being said, many devs are using Intel Mac and Mx Mac machines but usually build the binaries they need.

When building a node is an annoyance (it takes a while) and devs just need to run a node, there is also the option to use the Docker image we provide.

Could you provide details if your use case does not fall in the categories above ?

@coderobe
Copy link
Contributor

coderobe commented Aug 2, 2022

Note that the linux x64 docker image should also run fine on m1 macs (tested with a current dev build of podman w/ qemu)

@shawntabrizi
Copy link
Member

I just came back from the Parachains Summit, and there were others asking for ARM builds, specifically to speed up development, since you need a polkadot binary to run a test relay chain

@xlc
Copy link
Contributor

xlc commented Sep 16, 2022

AWS Graviton arm server is getting popular and it will be great if we can run polkadot nodes with it.

@kianenigma
Copy link
Contributor

+1

@bkchr
Copy link
Member

bkchr commented Sep 16, 2022

@chevdor compiling the binary for arm64 should work without any problems and it gets more and more popular as @xlc. Please prepare the necessary steps that we can have arm64 builds in the next release.

@johnmela
Copy link

Any idea when the next release containing the arm64 binaries will come out? Will it target v0.9.30?

@coderobe
Copy link
Contributor

We are looking into it.

Will it target v0.9.30?

no.

@andreclaro
Copy link

andreclaro commented Sep 29, 2022

+1

"Our latest cost analysis and performance benchmarks show that customers can realize cost savings of up to 23% and performance gains of up to 36% by deploying the GitLab application and GitLab Runner on the Arm-based Graviton2 when compared to the x86 based M5/C5 EC2 instances." - https://about.gitlab.com/blog/2021/08/05/achieving-23-cost-savings-and-36-performance-gain-using-gitlab-and-gitlab-runner-on-arm-neoverse-based-aws-graviton2-processor/

@bredamatt
Copy link
Contributor

+1

@ggwpez
Copy link
Member

ggwpez commented Jan 25, 2023

I think its being worked on here paritytech/polkadot#6108 @chevdor

@chevdor
Copy link
Contributor

chevdor commented Jan 25, 2023

Indeed, I am on the topic atm. If someone wants to test, feel free to ping me, I can provide an unofficial yet built in production profile for polkadot v0.9.37. For now I am testing it and working on the integration with our release process.
The PR mentioned above should also provide everything allowing to build such a binary already today.

@davedomainx
Copy link

@chevdor I am quite interested in testing out this arm64 image. Can you please let me know how get this image (is there a docker image available?)

@chevdor
Copy link
Contributor

chevdor commented Feb 17, 2023

There is no docker image yet.

I can provide a production build of an early RC of v0.9.38 for aarch64-unknown-linux-gnu but I don't have the latest/final build yet and no recent one for M1s.

The version linked below is:

  • really only for testing
  • do NOT run a validator on it, there are several reasons not to do so that I will cover when we publish those binaries
  • NOT the final v0.9.38 (it was RC5 if I recall and we added several fixes to the final)

You can get the build here: https://github.com/chevdor/polkadot/releases/tag/v0.9.38-beta

That being said, I would definitely recommend against considering the arm64 binary for a validator.
The binary itself is fine but I ran the benchmarks on various providers and machines and all the results were showing major weaknesses related to the single core performance, making those unsuitable for a validator. Nothing near the ...performance gains of up to 36%.

If you find a provider with good specs and price, please share your findings (I checked GCP and AWS).

Besides that, the build did work fine. I tested mostly wrap syncs with ParityDB and upgrading from v0.9.37 as well.
It all went fine and the nodes were running "solid" :)

@polkalegos
Copy link

Thanks for your work @chevdor. Do you plan to publish another build for M2/M2Pro?

@kogeler
Copy link

kogeler commented Feb 27, 2023

You can try to use my scripts to build an aarch64 binary that is optimized for your CPU.

Of course they are not suitable for production builds.

@okalenyk
Copy link

Hi everyone! Any updates or approximate ETA on this? Found out that it would be great to have an ability to launch zombienet kubernetes configuration locally having the Mac M1 with Docker Desktop based kubernets that runs ARM64 node. Currently I was able to make changes to Parity base-ci-linux and ci-linux Dockerfile to build them for ARM64 and succeded.

Here are the links to images:

base-ci-linux - required a single line of code to make it work cross-platform
ci-linux - same thing here

I can provide PRs if someone interested - just don't want to litter parity github repos.

I don't recommend to use the in production for sure, but for local development might be helpful.

@chevdor
Copy link
Contributor

chevdor commented Apr 12, 2023

There is some work probably interesing following in https://github.com/paritytech/release-engineering/issues/194
I am also trying to dissociate bin and docker images which require some work in other areas. More on that once it becomes usable.

Atm, if this is just to make it convenient, you could make a build or used one of those I published.
If this is for local dev, you may also skip the docker part entirely (unless you need/want it).

@frisitano
Copy link

Hi everyone! Any updates or approximate ETA on this? Found out that it would be great to have an ability to launch zombienet kubernetes configuration locally having the Mac M1 with Docker Desktop based kubernets that runs ARM64 node. Currently I was able to make changes to Parity base-ci-linux and ci-linux Dockerfile to build them for ARM64 and succeded.

Here are the links to images:

base-ci-linux - required a single line of code to make it work cross-platform ci-linux - same thing here

I can provide PRs if someone interested - just don't want to litter parity github repos.

I don't recommend to use the in production for sure, but for local development might be helpful.

Could you share the code changes with me please?

@okalenyk
Copy link

Hi everyone! Any updates or approximate ETA on this? Found out that it would be great to have an ability to launch zombienet kubernetes configuration locally having the Mac M1 with Docker Desktop based kubernets that runs ARM64 node. Currently I was able to make changes to Parity base-ci-linux and ci-linux Dockerfile to build them for ARM64 and succeded.
Here are the links to images:
base-ci-linux - required a single line of code to make it work cross-platform ci-linux - same thing here
I can provide PRs if someone interested - just don't want to litter parity github repos.
I don't recommend to use the in production for sure, but for local development might be helpful.

Could you share the code changes with me please?

@frisitano,

Sure, here are the links:

@Sophia-Gold Sophia-Gold transferred this issue from paritytech/polkadot Aug 24, 2023
claravanstaden pushed a commit to Snowfork/polkadot-sdk that referenced this issue Dec 8, 2023
* Benchmark with main spec

* Update benchmark.md
helin6 pushed a commit to boolnetwork/polkadot-sdk that referenced this issue Feb 5, 2024
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.56 to 0.1.57.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](dtolnay/async-trait@0.1.56...0.1.57)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 10, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 10, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
bkchr pushed a commit that referenced this issue Apr 10, 2024
* Add all members.

* Change members to globs.

* Remove runtime-common.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

18 participants