← back to Exo
t
9dd33d37f2962434b5e5f06d695cf1c39ba60646 · 2024-12-11 17:44:14 +0000 · Alex Cheema
Files touched
M .github/bootstrap.shM .github/workflows/bench_job.yml
Diff
commit 9dd33d37f2962434b5e5f06d695cf1c39ba60646
Author: Alex Cheema <alexcheema123@gmail.com>
Date: Wed Dec 11 17:44:14 2024 +0000
t
---
.github/bootstrap.sh | 2 +-
.github/workflows/bench_job.yml | 13 +++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/.github/bootstrap.sh b/.github/bootstrap.sh
index c1264af4..13ec5b2d 100755
--- a/.github/bootstrap.sh
+++ b/.github/bootstrap.sh
@@ -27,7 +27,7 @@ REPO="exo-explore/exo"
# Add sudoers configuration
log "Configuring sudo access..."
-SUDOERS_CONTENT="$(whoami) ALL=(ALL) NOPASSWD: /usr/sbin/tccutil, /bin/launchctl, /usr/bin/tee /Library/LaunchDaemons/*, /usr/bin/sqlite3, /usr/libexec/ApplicationFirewall/socketfilterfw, /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart, /opt/homebrew/bin/brew, /usr/local/bin/brew, /usr/bin/xcode-select, /usr/bin/chown, /bin/mkdir, /usr/bin/touch, /usr/sbin/softwareupdate, /usr/sbin/sysctl, /usr/bin/pmset, /usr/sbin/powermetrics, /usr/bin/nice"
+SUDOERS_CONTENT="$(whoami) ALL=(ALL) NOPASSWD: /usr/sbin/tccutil, /bin/launchctl, /usr/bin/tee /Library/LaunchDaemons/*, /usr/bin/sqlite3, /usr/libexec/ApplicationFirewall/socketfilterfw, /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart, /opt/homebrew/bin/brew, /usr/local/bin/brew, /usr/bin/xcode-select, /usr/bin/chown, /bin/mkdir, /usr/bin/touch, /usr/sbin/softwareupdate, /usr/sbin/sysctl, /usr/bin/pmset, /usr/sbin/powermetrics, /usr/bin/nice, /usr/bin/renice, /usr/bin/ionice"
echo "$SUDOERS_CONTENT" | sudo tee /etc/sudoers.d/github-runner > /dev/null
sudo chmod 440 /etc/sudoers.d/github-runner
diff --git a/.github/workflows/bench_job.yml b/.github/workflows/bench_job.yml
index ba859f90..4b42fc61 100644
--- a/.github/workflows/bench_job.yml
+++ b/.github/workflows/bench_job.yml
@@ -110,13 +110,22 @@ jobs:
which .venv/bin/exo
echo "Starting exo daemon..."
- # Start exo with high priority
- sudo nice -n -20 .venv/bin/exo \
+ # Set process scheduling priority
+ sudo renice -n -20 $$ || true
+ sudo ionice -c 2 -n 0 $$ || true
+
+ # Start exo with inherited priority
+ .venv/bin/exo \
--node-id="${MY_NODE_ID}" \
--node-id-filter="${ALL_NODE_IDS}" \
--interface-type-filter="Ethernet" \
--chatgpt-api-port 52415 > output1.log 2>&1 &
PID1=$!
+
+ # Ensure child process inherits priority
+ sudo renice -n -20 -p $PID1 || true
+ sudo ionice -c 2 -n 0 -p $PID1 || true
+
echo "Exo process started with PID: $PID1"
tail -f output1.log &
TAIL1=$!
← a4bb4bb6 update bootstrap
·
back to Exo
·
t 8d9e3b88 →