Skip to content

Commit

Permalink
fix(cron): fix exhaustion caused by pahole (#97)
Browse files Browse the repository at this point in the history
The new pahole exhausts the CI machine's memory, so we need to decrease
the number of workers and make a swap area available. The latter avoids
kswapd0 from exhausting CPU resources when a swap area is not available.
  • Loading branch information
geyslan authored Aug 22, 2023
1 parent c83dbe1 commit aa6ef9b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
"github-self-hosted_ami-0f4881c8d69684001_${{ github.event.number }}-${{ github.run_id }}",
]
steps:
#
- name: Setup Swap File
run: |
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
shell: bash
#
- name: Install needed ubuntu packages
run: |
Expand Down Expand Up @@ -110,28 +118,28 @@ jobs:
- name: Fetch and Generate new BTFs (UBUNTU)
run: |
cd btfhub
./btfhub -workers 12 -d ubuntu
./btfhub -workers 6 -d ubuntu
# debian stretch seems to be gone, updates for buster and bullseye only
- name: Fetch and Generate new BTFs (DEBIAN)
run: |
cd btfhub
./btfhub -workers 12 -d debian -r buster
./btfhub -workers 12 -d debian -r bullseye
./btfhub -workers 6 -d debian -r buster
./btfhub -workers 6 -d debian -r bullseye
#
- name: Fetch and Generate new BTFs (CENTOS)
run: |
cd btfhub
./btfhub -workers 12 -d centos
./btfhub -workers 6 -d centos
#
- name: Fetch and Generate new BTFs (FEDORA)
run: |
cd btfhub
./btfhub -workers 12 -d fedora
./btfhub -workers 6 -d fedora
#
- name: Fetch and Generate new BTFs (ORACLE)
run: |
cd btfhub
./btfhub -workers 12 -d ol
./btfhub -workers 6 -d ol
#
- name: Take new BTFs to BTFHub Archive
run: |
Expand Down

0 comments on commit aa6ef9b

Please sign in to comment.