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

Multithreaded PVS Re-Hydrate script #363

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

infecticide
Copy link

@infecticide infecticide commented Dec 16, 2022

Added multithreading to the PVS hydration script. Will start as many jobs as there are CPU cores.

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:

Summary

This PR fixes/implements the following bugs/features

  • Bug 1
  • Bug 2
  • [X ] Feature 1
  • Feature 2
  • Breaking changes

Explain the motivation for making this change. What existing problem does the pull request solve?

This creates a powershell job for each CPU on the endpoint to speed up the process of re-hydrating the in-RAM file cache on the OS.

Does the code pass AppVeyor?

  • Yes

Closing issues

Closes #357

Added multithreading to the PVS hydration script.   Will start as many jobs as there are CPU cores.
@jeremyts
Copy link

For improved performance this enhancement would be better using runspaces instead of PSJobs. Runspaces are much faster and efficient. You are more than welcome to reuse the code I have here: https://www.jhouseconsulting.com/2023/06/27/cold-starting-andor-hydrating-your-applications-to-improve-their-startup-times-2352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multithreaded PVS Rehydration Script
2 participants