#!/usr/bin/ruby
cpunum=`cat/proc/cpuinfo|grepprocessor|wc-l`.to_i
before={}
whiletrue
file=File.readlines(‘/proc/interrupts‘)
puts"ifnamecpu0cpu1cpu2cpu3cpu4cpu5cpu6cpu7cpu8cpu9cpu10cpu11"
file.eachdo|i|
ifi.include?("TxRx")
lines=i.split("")
print"#{lin..
分类:
其他好文 时间:
2014-12-01 16:18:08
阅读次数:
168
系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -t...
分类:
系统相关 时间:
2014-12-01 08:53:02
阅读次数:
271
宏类似于c中的函数,传入指定参数后执行,并且宏内部可以包含data步程序和条件运算符号。宏变量只是小小的变量、、、、(by the way作用也很大)1:宏的基本语法如何创建一个简单的宏并使用?%macro prtlast;proc print data=&syslast (obs=5);title...
分类:
其他好文 时间:
2014-11-29 18:44:32
阅读次数:
2358
存储过程的优点: 1、快 2、省流量 3、安全 4、易管理1 、有参数存储的过程的创建:(注:带参数的存储过程当参数比较少时可写在存储过程名称后)create proc 存储过程名@参数名 类型 //可有可无多个用都好隔开@ag intasbegin //...
分类:
其他好文 时间:
2014-11-29 17:17:05
阅读次数:
210
transpose基本语法Note: If output-data-set does not exist, PROC TRANSPOSE creates it by using theDATA n naming convention. Note: If you omit the VAR stat...
分类:
其他好文 时间:
2014-11-28 20:07:22
阅读次数:
583
1.环境检测查看CPU是否支持虚拟指令集grep-E‘vmx|svm‘/proc/cpuinfoAMD速龙以上,INTEL酷睿以上基本都支持。平台64位。2.yum安装yum-ygroupinstall‘Virtualization‘‘VirtualizationClient‘‘VirtualizationPlatform‘‘VirtualizationTools‘3.启动servicelibvirtdstartrpm-qlqemu-..
分类:
其他好文 时间:
2014-11-28 18:31:14
阅读次数:
514
需要外挂一个程序,用于监控另一个程序运行状态,一旦检测到另一程序关闭,就触发一个事件做其他处理。
引用的类
using System.Diagnostics;//引入Process 类
声明
private Process[] MyProcesses;
主要处理部分,该段代码可放在定时器中循环检测监控的程序是否启动
MyProcesses = Proc...
create procedure proc_page_withtopmax( @pageIndex int,--页索引 @pageSize int,--每页显示数 @pageCount int output,--总页数,输出参数 @totalCount int output--总条数)asbegi....
分类:
数据库 时间:
2014-11-27 17:47:13
阅读次数:
247
这几日一直研究运维监控的事情,有次看见有一个脚本写的还不错,如今已经找不到地址了 就只能用Python代替shell了其中原理是 监控 /proc/下的各种文件,/proc/ 顾名思义其为进程的文件,可以看到很多进程信息。具体的请百度吧!1,cpu负载信息 1 def cpu_stat(): 2 ....
分类:
编程语言 时间:
2014-11-27 15:49:29
阅读次数:
244
相关命令:adb shell dumpsys meminfo > dumpsys_meminfo.txt adb shell cat /sys/kernel/debug/ion/ion_mm_heap > ion_mm_heap.txt adb shell cat /proc/mali/memory_usage > gpu_mali_memory_usage.txt adb shell ps > ...
分类:
移动开发 时间:
2014-11-27 10:43:52
阅读次数:
223