f31185d84625bec1f2ae7d14b28282a92023a6de
debian
Debian init scripts
CPU 占用率保持工具使用说明:
- 将对应架构(amd64、arm64)的文件拷贝到需要的目录;
- 启动 screen 或者 tmux 进程
- 执行
./cpulimit -l 20 -i ./keeper
-l 20
: 想要限制的占用率-i
: 限制对子进程也生效
例如:
$ git clone https://git.ofcss.com/kairee/debian.git
$ mv debian/bin/amd64 /usr/local/keeper
$ screen -S cpukeeper
$ cd /usr/local/keeper
$ ./cpulimit -l 19 -i ./keeper
另外启动一个窗口,用 top 或者 htop(推荐)查看 CPU 占用率
Description
Languages
Shell
100%