pkg.install uses 100% CPU whenever there are no changes to the registry #30230
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
P2
Priority 2
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Windows
Milestone
pkg.install
uses 100% CPU whenever there are no changes to the registry.This is due to a for cycle that is in place in order to make sure there are no effective changes that still have to be applied to it.
This cycle made my Windows VM CPU spike, this is not very efficient and:
The relevant code is here:
I suggest to use a sleep function, and iterate for 30 seconds (this is what 1000 iterations take on my VM) (which should be sufficient, doesn't cause any timeout issues, and doesn't cause any CPU spike):
Any thoughts on this?
The text was updated successfully, but these errors were encountered: