Docs
Right-sizing
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.
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
- Open Runners → Machine sizes in the dashboard, or choose Review smaller sizes in the sidebar.
- 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.
- 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.