Self-hosted GitHub Actions runners consume excessive CPU due to a busy-waiting sleep implementation that continuously checks the system clock instead of using efficient OS-level sleep functions. This can be fixed by replacing the runner's safe_sleep.sh script with a smarter version that prioritizes native sleep commands, falls

3m read timeFrom meziantou.net
Post cover image
Table of contents
# The problem: Busy-waiting# The solution: A smarter sleep script# A word of caution# Additional resources

Sort: