记录cpu的使用情况和5分钟的平均负载
来源:互联网 发布:高性能编程cuda实战 编辑:程序博客网 时间:2024/05/20 13:13
#!/bin/bash
num1=15
num2=20
filename=`date +%H%M%S`
echo $filename
echo "#######################CPU 使用情况################################">>/home/guo/cpu_$filename.log
sar -u $num1 $num2 >>/home/guo/cpu_$filename.log
echo "#####################cup load###################################">>/home/guo/cpu_$filename.log
uptime>>/home/guo/cpu_$filename.log
num1=15
num2=20
filename=`date +%H%M%S`
echo $filename
echo "#######################CPU 使用情况################################">>/home/guo/cpu_$filename.log
sar -u $num1 $num2 >>/home/guo/cpu_$filename.log
echo "#####################cup load###################################">>/home/guo/cpu_$filename.log
uptime>>/home/guo/cpu_$filename.log
- 记录cpu的使用情况和5分钟的平均负载
- linux下的CPU平均负载
- SQLServer 维护脚本分享(03)数据库中记录CPU最近N分钟内的使用情况
- uptime详解,最通俗的说明了cpu平均负载
- uptime详解,最通俗的说明了cpu平均负载
- 使用gawk记录一段时间内,某个进程占用内存和CPU的情况
- shell脚本监控系统负载、CPU和内存使用情况
- shell脚本监控系统负载、CPU和内存使用情况
- cpu 平均负载
- Loadrunner增加对于Linux服务器负载以及CPU使用情况的监控
- 挑战:对目前所有过图掉线情况和CPU负荷,网络负载的原因分析
- windows高负载(cpu 100%)情况下的C++须知
- 编程获取Linux的cpu占用率和mem使用情况
- 获取Linux的cpu占用率和mem使用情况
- 编程获取Linux的cpu占用率和mem使用情况
- 编程获取Linux的cpu占用率和 mem使用情况
- 【AI, GPU】Ubuntu查看CPU 和 GPU 的使用情况
- python实时得到cpu和内存的使用情况
- 在cocos2d-x中编译/调试curl库 xcode中添加curl库
- CxGrid合计的设置
- 虚拟机下全屏时另一屏幕不显示或者花屏解决方法
- Android 关于RatingBar不交互情况下的大小设置
- 网页调用activex控件
- 记录cpu的使用情况和5分钟的平均负载
- js时间戳转为日期格式
- Android编程之解决android-support-v4打包问题
- SD tables
- C#与VC++数据类型对应关系
- ubuntu shell program
- 为VS2008安装STLport
- linux 内核初级教程-3
- Using Quaternion to Perform 3D rotations