-
Notifications
You must be signed in to change notification settings - Fork 159
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
Speed is too slow. Is there any way to speed up? #4
Comments
Thanks for pointing this out with real numbers @yjcn , since the general slowness is a problem for me too in other projects. On the other hand, Travis CI runs the jobs on real arm64 hardware (servers with a 32 cores X-Gene 3 APM883832-X3 cpu) and that's the reason for the difference you see right now. It could be interesting to see if they have dedicated machines for ppc64le and s390x too, and if not to compare the numbers and see if, on similar underlying hosts, there is space for improvements tweaking some parameters/options in QEmu. Refs: |
Just for future reference, the 18.04 distro is using References: |
@yjcn we recently released some changes that speed up builds. The architectures are still emulated, but if some of your build time is spent installing dependencies you can look into using the new As for faster compilation, you could try installing ccache in the container and persisting ccache's outputs between builds using name: Build
on:
push:
branches: [ '*' ]
tags: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
# Build for Linux aarch64, ppc64le, etc
build_linux_other_archs:
name: Build ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: aarch64
- arch: ppc64le
steps:
- name: Setup cache
uses: actions/cache@v2
with:
path: |
~/.ccache
key: build_ubuntu-18.04_${{ matrix.arch }}
- uses: actions/checkout@v2.1.0
- name: Build
id: build
uses: uraimo/run-on-arch-action@v2.0.4
with:
arch: ${{ matrix.arch }}
distro: ubuntu18.04
# Upload docker image to your project's public package registry
githubToken: ${{ github.token }}
# Create cached/volume directories on host
setup: |
mkdir -p ~/.ccache
# Mount cached directories in the container for faster builds
dockerRunArgs: |
--volume "${HOME}/.ccache:/root/.ccache"
# Install ccache and gcc/g++ symlinks in the container
install: |
apt-get update -q -y
apt-get install build-essential ccache -q -y
/usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
# compile things in the container
run: |
... I can't guarantee this will give a performance gain, but maybe. |
I am trying to run on ppc64le using this package; see The current state of the job is
It this just slow, or is there some other problem ? I cancelled the job with it got to the following state:
|
@bradbell github issue, thanks for reporting, I'll keep an eye out to understand if it's becoming more frequent for other projects too. |
The same problem happened to me as well: /~https://github.com/Dan-wanna-M/kbnf/actions/runs/9588165976/job/26439674105. |
If it's the free tier you are using, the waiting times are pretty large and completely random at times. I've seen jobs being stuck for days and some other times failing after a few hours of waiting. Extremely unpredictable. |
I think my jobs are actually being run since they quickly exit queued status? The build time is also stable between different triggering
获取Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: uraimo ***@***.***>
Sent: Thursday, June 20, 2024 1:01:23 AM
To: uraimo/run-on-arch-action ***@***.***>
Cc: Huanghe ***@***.***>; Comment ***@***.***>
Subject: Re: [uraimo/run-on-arch-action] Speed is too slow. Is there any way to speed up? (#4)
If it's the free tier you are using, the waiting times are pretty large and completely random at times. I've seen jobs being stuck for days and some other times failing after a few hours of waiting. Extremely unpredictable.
―
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe</~https://github.com/notifications/unsubscribe-auth/ANIMAX6NCJHUJRETQ7ATDILZIJV3HAVCNFSM6AAAAABJSX3LQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZHA4DANJTHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Yes, that's what happened in this case, overall very unpredictable. |
@uraimo I'm conducting the tests in my projects, I get the following build times:
I perfectly understand that the build time will be much longer than running in the host architecture, so the expected time in my case is 1h 40m, but look that Ubuntu aarch64 is the only one giving a painfully slow build time, there seems to be that specific image that is having some problem there, note that in all cases I'm installing the same packages with the same environment so the build times are expected to be more or less the same, its maybe some problem with that image and not in your side. |
I try to build qBittorrent. It works well, but speed is very slow. Travis CI only uses 9 min, github action uses 1h18m


Github Action arm64
Travis CI arm64
The text was updated successfully, but these errors were encountered: