docs: add guide for cpu keeper

This commit is contained in:
2023-02-01 13:33:57 +08:00
parent ac5799d1ec
commit a1c5652369

View File

@ -1,3 +1,23 @@
# debian
Debian init scripts
Debian init scripts
### CPU 占用率保持工具使用说明:
1. 将对应架构amd64、arm64的文件拷贝到需要的目录
2. 启动 screen 或者 tmux 进程
3. 执行 `./cpulimit -l 20 -i ./keeper`
- `-l 20`: 想要限制的占用率
- `-i`: 限制对子进程也生效
例如:
```bash
$ 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 占用率