cpulimit
cpulimit copied to clipboard
Can cpulimit be used for the simulation of cpu usgae?
Actually I need to simulate cpu usage for testing purpose. I need varied usage over the fixed span of time for testing one of my program. Like 40% usage for 10 minutes then 60%usage for next 20 minutes then 10% for 5 minutes and so on. And then I need the same cpu usage multiple times for testing performance of my program using different modes. Is it achievable using cpulimit? If yes let me know commands by which I can perform the same.
Look here http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups