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

How to use the maxws option? It says Parameter is incorrect for it. #16

Closed
Gaurav-Original-ClassicShellTester opened this issue Jul 24, 2020 · 4 comments · Fixed by #17

Comments

@Gaurav-Original-ClassicShellTester

How to use the maxws option? It says Parameter is incorrect for it.

@lowleveldesign
Copy link
Owner

Thanks for reporting this. I can reproduce the error:

PS me> procgov64.exe --maxws 100M -p 22564
...
ERROR: The parameter is incorrect (0x80004005)

Unfortunately, I don't know yet what causes it, and 0x80004005 (E_FAIL) is a very generic error. I tried setting various values for the MinimumWorkingSet and MaximumWorkingSet values with no success. I need to spend some more time troubleshooting it.

@lowspecchaos
Copy link

@annon @lowleveldesign i'm guessing for now we should use "PspMinimumWorkingSet" and "PspMaximumWorkingSet"? These values can be overridden if "performance options" for exe were specified in "Image File Execution Options" under "PerfOptions"

@lowleveldesign
Copy link
Owner

@lowspecchaos, thanks for the suggestion! I wasn't aware of that option and, you're right, it is a good workaround.

The only downsides are:

  • it works only for the newly started processes
  • changing IFEO requires admin rights

I hope to find a moment in the coming weeks to debug the error and find a fix for the job object. I will keep this ticket updated.

@lowleveldesign
Copy link
Owner

lowleveldesign commented Nov 21, 2020

@anonimuos Please try the latest release (v2.6.20324.1). I updated the binaries on the release page for the v2.6 version. If you want to limit WS, set both options: --maxws and --minws.

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 a pull request may close this issue.

3 participants