limit_process
Caps a process and its child processes to a CPU share and private memory limit on Windows, causing memory requests past the cap to fail until the limit is lifted or the process exits.
Instructions
Holds a process, and the processes it starts from now on, to a share of the machine's CPU and to an amount of private memory (Windows job objects: a cap the scheduler keeps, whatever the priority). Past the memory limit its requests for more fail, and most programs then stop with an error. Lasts until it exits or Anabolic quits; lift_limit takes it away. Windows' core processes and anti-cheat programs are refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| force | No | ||
| memory_gb | No | The most private memory it may commit, GB, with what it starts. | |
| cpu_percent | No | The most of the whole machine's CPU it may use, percent (1 to 99), as list_processes counts it. |