Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1260302
  • 博文数量: 548
  • 博客积分: 7597
  • 博客等级: 少将
  • 技术积分: 4224
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-15 13:21
个人简介

嵌入式软件工程师&&太极拳

文章分类

全部博文(548)

文章存档

2014年(10)

2013年(76)

2012年(175)

2011年(287)

分类:

2012-12-19 14:49:35

原文地址:cpulimit 作者:7717060

文件:cpulimit-1.1.tar.gz
大小:5KB
下载:下载

cpulimit --help

Usage: cpulimit TARGET [OPTIONS...]

TARGET must be exactly one of these:

-p, --pid=N        pid of the process

-e, --exe=FILE     name of the executable program file

-P, --path=PATH    absolute path name of the executable program file

OPTIONS

-l, --limit=N      percentage of cpu allowed from 0 to 100 (mandatory)

-v, --verbose      show control statistics

-z, --lazy         exit if there is no suitable target process, or if it dies

-h, --help         display this help and exit


1./cpulimit -p 进程号  -l 50  限制某程序只能使用50%cpu资源


阅读(1111) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~