Docs

Right-sizing

The Runners page shows which jobs would cost less on a smaller machine or finish sooner on a bigger one. Pick them and we open the pull requests.

How we pick a size

Every second, each machine records how busy its cores were and how much memory it used. We read a job’s latest successful runs, at least three, and work out how long they would take on every other size. Suggestions update every hour.

A smaller size has to hold up on the runs that cost the most, not only on a typical one. A stretch that keeps every core busy costs the same on fewer cores and only takes longer, so a job that needs more cores than the smaller size has for over a tenth of its time stays.

Cost less
Cores sat idle, on the runs that cost the most
At most 10% slower, or 15 seconds
More cores than the new size for at most 10% of the time
At least 10% cheaper
Memory to spare: 1.5× the peak
Finish sooner
Every core busy 25% of the time or more
The next size up
Could be at least 15% faster
Shown as a range, from all of it faster to none

A smaller size is predicted from what the job did, so its time and cost are one number. A bigger size can only be a range: we know the job wanted more cores, not how many more.

Apply a suggestion

  1. Open Runners → Machine sizes in the dashboard, or choose Review smaller sizes in the sidebar.
  2. The jobs that cost less on a smaller size start ticked. Under the button you see the lines each pull request changes in its workflow file.
  3. Choose Open pull requests, above the table or under the changes. We open one per repository with the new labels. To change fewer jobs, untick the others first.

Click a row to see the CPU and memory its runs used, and the change for that job alone. Copy prompt for coding agent gives you a prompt with the diff, for when you’d rather make the change yourself, and Edit on GitHub opens the file.

Nothing changes until you merge. Each pull request’s checks already run on the new size, so you see the real time first. The × on a row hides a suggestion you don’t want.

For the labels themselves, see Sizes and labels. For changes beyond runner size, see how to speed up GitHub Actions.