set_process_affinity
Assign specific CPU cores to a process to control where it runs, improving performance and resource allocation.
Instructions
Set CPU affinity for a process
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pid": "<pid>",
"cpuList": "<cpuList>"
},
"name": "set_process_affinity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID | |
| cpuList | Yes | CPU list (e.g., "0,1" or "0-3") |