Linux 中使用 cpulimit 限制进程 cpu 使用率 1、下 - Assbbs

Linux 中使用 cpulimit 限制进程 cpu 使用率 1、下载 https://github.com/opsengine/cpulimit   下载: cpulimit-master.zip 2、编译 unzip cpulimit-master.zip  cd cpulimit-master/src  修改makefi…

Linux 中使用 cpulimit 限制进程 cpu 使用率 1、下载 https://github.com/opsengine/cpulimit   下载: cpulimit-master.zip 2、编译 unzip cpulimit-master.zip  cd cpulimit-master/src  修改makefile  CC=arm-hisiv300-linux-gcc  make 3、运行 cpulimit -l 10 run app.bin  限制应用程序 run app.bin 的 cpu使用率 不超过 10%   cpulimit -l 10 -p 1000  限制系统进程 id 为1000程序 的 cpu使用率 不超过 10% 注:  单核cpu的使用率范围为0%-100%,四核cpu的使用率范围为0%-400%.  相关工具  nice:以指定的优先级运行程序  renice: 调整以运行进程的优先级