胚胎停止发育怎么办:lingdxuyan - ChinaUnix博客 - IT人与你分享快乐生活

来源:百度文库 编辑:九乡新闻网 时间:2024/04/25 13:46:01
/proc/stat文件包含了所有CPU活动的信息,该文件中的所有值都是从系统启动开始累计到当前时刻,每一行以一字符串开始,该字符串为该行的关键字。该文件内容由Linux内核源码fs/proc/proc_misc.c中的show_stat函数提供。root@lingd-arm2410s:/proc# cat stat > /tmp/basic/gprs_pc/123
cpu  75 0 720 67657 1 614 14 0 0
cpu0 75 0 720 67657 1 614 14 0 0
intr 143743 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 910 0 0 0 0 0 0 0 0 0 0 0 138164 0 0 0 0 0 0 0 0 0 0 0 88 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 371 3814 0 0 0 0 0 396 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 20231
btime 0
processes 950
procs_running 2
procs_blocked 0

1)、CPU 以及CPU0每行的每个参数意思(以第一行为例)为:
参数     数值                   解释
user    (75)    用户态的CPU时间(单位:jiffies) ,不包含 nice值为负进程。1jiffies=0.01秒
nice    (0)     nice值为负的进程所占用的CPU时间(单位:jiffies)
system  (720)   核心时间(单位:jiffies)
idle    (67657) 除硬盘IO等待时间以外其它等待时间(单位:jiffies)
iowait  (1)     硬盘IO等待时间(单位:jiffies) ,
irq     (614)   硬中断时间(单位:jiffies)
softirq (14)    软中断时间(单位:jiffies)
steal   (0)     在虚拟环境下,处理其他作业系统占用的 cpu 时间(丛 linux2.6.11 开始添加此项信息)guest   (0)     作业系统运行虚拟cpu占用cpu的时间(丛 linux2.6.24 开始添加此项信息)CPU时间 = user + system + nice + idle + iowait + irq + softirq + guest + steal 2)、“intr"行第一个数是所有中断的总数,而其他的每一个数代表一个中断号的中断计数, 从中断号0开始3)、“ctxt”给出了自系统启动以来CPU发生的上下文交换的次数。
4)、“btime”给出了从系统启动到现在为止的时间,单位为秒。
5)、“processes (total_forks)给出自系统启动以来所创建的任务的个数目。
6)、“procs_running”给出当前运行队列的任务的数目。
7)、“procs_blocked”给出当前被阻塞的任务的数目。