05 2013 档案

摘要:转自:http://dzmailbox.blog.163.com/blog/static/12053438520121752313440/ 1. 模拟高CPU占用率 首先写一个C++程序,代码如下:#include #include #include #include #include int main(){int timeuse=0; struct timeval tpstar... 阅读全文
posted @ 2013-05-07 21:44 dorothychai 阅读(969) 评论(0) 推荐(0) 编辑
摘要:https://cpulimit.svn.sourceforge.net/svnroot/cpulimit/trunk/ 限制方法: 如果限制进程名,比如将httpd这个进程名的CPU限制在40% cpulimit --exe httpd --limit 40 cpulimit --exe /usr/local/bin/httpd --limit 40 将pid为2960的进程的CPU限制在5... 阅读全文
posted @ 2013-05-02 19:32 dorothychai 阅读(351) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示