Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet restore cache check is no longer using file existence cache #13058

Closed
lifengl opened this issue Nov 30, 2023 · 5 comments · Fixed by NuGet/NuGet.Client#5566
Closed

NuGet restore cache check is no longer using file existence cache #13058

lifengl opened this issue Nov 30, 2023 · 5 comments · Fixed by NuGet/NuGet.Client#5566
Assignees
Labels
Area:RestoreNoOp The PackageReference no-op Functionality:Restore Priority:2 Issues for the current backlog. Tenet:Performance Performance issues Type:Bug
Milestone

Comments

@lifengl
Copy link

lifengl commented Nov 30, 2023

NuGet Product Used

Other/NA

Product Version

Visual Studio 17.9

Worked before?

not sure

Impact

Other

Repro Steps & Context

Check Visual Studio solution loading trace when cache is available, or performance DDRITs can be used here. During NuGet restore runner time, NuGet took out many thread pool threads, and most of them will be blocked to check whether sha256 files exist (or basically, whether the version of NuGet package is still in the NuGet cache folder). Because package references are added to the closure of project references, each file is often checked in multiple projects. With often hundreds of files per project, in a large solution, it introduces heavy amounts of system calls/IOs.

Here is the thread time of one trace:

image

Verbose Logs

No response

@lifengl
Copy link
Author

lifengl commented Nov 30, 2023

@nkolev92 nkolev92 added Functionality:Restore Area:RestoreNoOp The PackageReference no-op Tenet:Performance Performance issues Category:Quality Week Issues that should be considered for quality week and removed Triage:Untriaged labels Nov 30, 2023
@lifengl
Copy link
Author

lifengl commented Jan 2, 2024

@nkolev92 : can we address this problem as it is a regression & showing in our perf test traces. It may expose other problems and help us to know how much further work we need do in this area?

@nkolev92
Copy link
Member

nkolev92 commented Jan 3, 2024

Yeah, we can schedule it. It should be a simple change, but not sure it'll make it in 17.9 since it's basically the last week for changes.

@nkolev92 nkolev92 self-assigned this Jan 3, 2024
@nkolev92
Copy link
Member

nkolev92 commented Jan 3, 2024

@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. and removed Category:Quality Week Issues that should be considered for quality week labels Jan 3, 2024
@lifengl
Copy link
Author

lifengl commented Jan 12, 2024

nice, thanks a lot to take care of it.

@kartheekp-ms kartheekp-ms added this to the 6.10 milestone May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:RestoreNoOp The PackageReference no-op Functionality:Restore Priority:2 Issues for the current backlog. Tenet:Performance Performance issues Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants