uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
677 stars 149 forks source link

How to increase memory/cpu dedicated to container? #70

Closed ericdallo closed 1 year ago

ericdallo commented 2 years ago

I'm compiling something heavy on this action, I'd like to use all memory/cpu from github runner, how to achieve that?

martin-g commented 1 year ago

Why do you believe the Docker container started by the action uses less resources ? Unless you specify some limits in your dockerRunArgs it must use all available resources.

ericdallo commented 1 year ago

Sorry for not clarrifying, I used this action for some time on clojure-lsp to compile it to graalvm on aarch64, and the action take ~1h-15m while other builds take 10-15mins https://github.com/clojure-lsp/clojure-lsp/actions/runs/3191211682/jobs/5207278718

martin-g commented 1 year ago

This action uses QEMU to emulate the target CPU architecture and QEMU is known to be several times slower than native execution.

On Sat, Oct 29, 2022, 22:13 Eric Dallo @.***> wrote:

Sorry for not clarrifying, I used this action for some time on clojure-lsp https://github.com/clojure-lsp/clojure-lsp/ to compile it to graalvm on aarch64, and the action take ~1h-15m while other builds take 10-15mins

https://github.com/clojure-lsp/clojure-lsp/actions/runs/3191211682/jobs/5207278718

— Reply to this email directly, view it on GitHub https://github.com/uraimo/run-on-arch-action/issues/70#issuecomment-1295960220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABYUQVOZB5EZ3A2BPWXFKTWFWANTANCNFSM5NV6IBGQ . You are receiving this because you commented.Message ID: @.***>

ericdallo commented 1 year ago

I see, so it's a QEMU limitation, maybe we should mention it somewhere on the readme?

uraimo commented 1 year ago

Here :) https://github.com/uraimo/run-on-arch-action#architecture-emulation