opsengine / cpulimit

CPU usage limiter for Linux
Other
1.7k stars 270 forks source link

Set period of sleep-run #114

Open imgod2u opened 1 year ago

imgod2u commented 1 year ago

Anyone know what the period of calculating utilization % is? And if so is there a way to manually set it? I'd ideally like to be able to, say, set a period of 32ms with 50% utilization and get:

run(16ms) -> sleep(16ms) -> run(16ms) -> sleep(16ms)

etc.