actions / actions/setup-dotnet
extremely slow Network/Disk IO on Windows agent compared to Ubuntu/Mac
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 572
- Avg merge
- 12d 20h
- Merged PRs (30d)
- 1
Description
Description:
https://github.com/actions/virtual-environments/issues/3577
Ubuntu agents have slightly higher IOPS disk performance configuration. We use install-dotnet.ps1 script for installation provided by DotNet team . The DownloadFile and Extract-Dotnet-Package functions are being slow. We will investigate how to improve performance those functions if we replace DownloadFile -> WebClient and Extract-Dotnet-Package -> 7zip
DownloadFile and Extract-Dotnet-Package are awfully slow. Like 3x slower!

Task version:
v1.9.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
https://github.com/jetersen/dotnet.restore.slow.github.action
Expected behavior:
Faster downloads
Actual behavior:
SLOW downloads
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction and the install-dotnet.ps1 script, focusing on DownloadFile and Extract-Dotnet-Package. Compare their Windows performance with Ubuntu and macOS, then verify that downloads and extraction are faster on Windows without changing the expected setup behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- devops, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100