test and control cpu usage