找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7360|回复: 19

[开发]cpulimit ar71xx ipk 文件包,对应 OP TRUNK 版本

[复制链接]
本帖最后由 newboy123 于 2012-1-19 18:43 编辑

https://code.google.com/p/cpulimit-ng/

transmission 的 cpu 使用抖动很大,我用它来限制 transmission 的 cpu 使用率

cpulimit-ng -e transmission -l 25 -v

限制最多 25% cpu 量,详细用法在第五楼

需要根据你的具体情况,设置允许 TR 使用的最大 CPU 上限。如果因为某种原因 TR CPU 使用突然超出这个上限,那么就会强制限制 TR 在规定范围内,这个时候,TR 的运行会变慢,下载上传也会变慢。
如果 TR 恢复或者一直在正常的 CPU 用量范围内,那么是对 TR 下载和上传不会有影响的。

现在 OP TRUNK 默认编译 的 samba3 抢不过 TR 的,我主要用这个工具预留出 samba 播放 1080P 需要的 CPU。

根本改进还得等 TR-NG

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
1# newboy123

页面打不开啊
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 newboy123 于 2012-1-16 21:08 编辑

great firewall?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

mark 好东西 具体使用方法??
回复

使用道具 举报

 楼主| | 显示全部楼层
#安装
root@OpenWrt:/tmp# opkg install cpulimit-ng_1.2-1_ar71xx.ipk
Installing cpulimit-ng (1.2-1) to root...
Configuring cpulimit-ng.
#使用参数
root@OpenWrt:/tmp# cpulimit-ng
Error: You must specify a cpu limit percentage
Usage: cpulimit-ng [OPTIONS...] TARGET
   OPTIONS
      -l, --limit=N          percentage of cpu allowed from 0 to 100 (required)
      -v, --verbose          show control statistics
      -z, --lazy             exit if there is no target process, or if it dies
      -i, --ignore-children  don't limit children processes
      -h, --help             display this help and exit
   TARGET must be exactly one of these:
      -p, --pid=N            pid of the process (implies -z)
      -e, --exe=FILE         name of the executable program file or path name
      COMMAND [ARGS]         run this command and limit it (implies -z)

Report bugs to <marlonx80@hotmail.com>.
# 范例,限制 TR 最多 15% cpu
root@OpenWrt:/tmp# cpulimit-ng -e /usr/bin/transmission-daemon -l 15 -v &
1 cpu detected
name
Process 1110 found
Members in the family owned by 1110: 1

%CPU    work quantum    sleep quantum   active rate
15.64%   95896 us         4103 us       95.90%
14.85%   89539 us        10460 us       89.54%
回复

使用道具 举报

好东西,顶。
回复

使用道具 举报

有没有rg100a-aa的啊
回复

使用道具 举报

具体使用方法??
回复

使用道具 举报

好东西好东西
回复

使用道具 举报

好东西好东西
回复

使用道具 举报

打不开啊
回复

使用道具 举报

打不开啊
回复

使用道具 举报

看来LZ要发威了,开发这么多
回复

使用道具 举报

 楼主| | 显示全部楼层
12# jiaabc


补上了,可能是墙的问题。用法在第五楼
回复

使用道具 举报

本身占不占资源?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-23 19:27

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表