Story Details

  • Disk I/O bottlenecks in GitHub Actions

    Posted: 2025-03-28 15:22:36

    GitHub Actions workflows, especially those involving Node.js projects, can suffer from significant disk I/O bottlenecks, primarily during dependency installation (npm install). These bottlenecks stem from the limited I/O performance of the virtual machines used by GitHub Actions runners. This leads to dramatically slower execution times compared to local machines with faster disks. The blog post explores this issue by benchmarking npm install operations across various runner types and demonstrates substantial performance improvements when using self-hosted runners or alternative CI/CD platforms with better I/O capabilities. Ultimately, developers should be aware of these potential bottlenecks and consider optimizing their workflows, exploring different runner options, or utilizing caching strategies to mitigate the performance impact.

    Summary of Comments ( 16 )
    https://news.ycombinator.com/item?id=43506574

    HN users discussed the surprising performance disparity between GitHub-hosted and self-hosted runners, with several suggesting network latency as a significant factor beyond raw disk I/O. Some pointed out the potential impact of ephemeral runner environments and the overhead of network file systems. Others highlighted the benefits of using actions/cache or alternative CI providers with better I/O performance for specific workloads. A few users shared their experiences, with one noting significant improvements from self-hosting and another mentioning the challenges of optimizing build processes within GitHub Actions. The general consensus leaned towards self-hosting for I/O-bound tasks, while acknowledging the convenience of GitHub's hosted runners for less demanding workflows.