免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1121 | 回复: 1
打印 上一主题 下一主题

why "sadc" rob so much CPU load [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-10-03 00:55 |只看该作者 |倒序浏览
RHEL AS3, kernel 2.6.8.1

on start up, CPU loading is above 95%, and the process "sadc" robs most of them.
and the load "sadc" robs will dynamically varies when other applications run.


Why is that? and are there some methods to make it better?

I think CPU must be very unhappy now that it works so hard and be paid nothing.

论坛徽章:
0
2 [报告]
发表于 2004-10-04 02:07 |只看该作者

why "sadc" rob so much CPU load

Then I looked into the script files.

1. /etc/cron.d/sysstat:

  1. # run system activity accounting tool every 10 minutes
  2. #*/10 * * * * root /usr/lib/sa/sa1 1 1
  3. # generate a daily summary of process accounting at 23:53
  4. 53 23 * * * root /usr/lib/sa/sa2 -A
复制代码



2. /usr/lib/sa/sa1:

  1. #!/bin/sh
  2. # PREFIX/lib/sa/sa1.sh
  3. # (C) 1999-2002 Sebastien Godard <sebastien.godard@wanadoo.fr>;
  4. #
  5. umask 0022
  6. DATE=`date +%d`
  7. ENDIR=/usr/lib/sa
  8. DFILE=/var/log/sa/sa${DATE}
  9. cd ${ENDIR}
  10. if [ $# = 0 ]
  11. then
  12.         exec ${ENDIR}/sadc 1 1 ${DFILE}
  13. else
  14.         exec ${ENDIR}/sadc $* ${DFILE}
  15. fi
复制代码



Also the manpage of sadc, sa1 and sa2 was checked.

I edited the "sysstat" file to specify no intervals and counts for sa1 and let the accounting tool run at an interval of 1 minute for testing purpose. But things remained the same----the process sadc kept running endless, and another 1 minute more, another process sadc joined in. So I can imagine that as time passing by, more and more sadcs will come. :em12:

Finally and hopefullessly, I have to stop this accounting tool by editing  the line in /etc/cron.d/sysstat with a cute "#".

Still wondering.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP