免费注册 查看新帖 |

Chinaunix

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

Understanding /proc/stat [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-11 12:59 |只看该作者 |倒序浏览
$ cat /proc/stat
cpu 58903 1 7337 221340
cpu0 58903 1 7337 221340
page 97604 92120
swap 1 0
intr 571041 287581 3738 0 0 3 0 2 0 0 0 0 56043 202215 0 21398 61 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 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 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 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 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 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
disk_io: (3,0):(21459,9839,195208,11620,184240)
ctxt 1719440
btime 1005238271
processes 4997
The individual "cpu" entry is will be the same as "cpu0" if you only have one CPU on your system. Otherwise the "cpu" entry will be a total of all the separate CPU stats.
The four numbers following "cpu" entries are:
—————————————————————————————
| user  |       nice     | system | unused usage |
—————————————————————————————
| 用户态 | 低优先权用户模式 | 系统模式 | 空闲任务的时间 |
—————————————————————————————
The two numbers following the "page" entry are number of pages going in followed by the number of pages going out. Same goes for the "swap" entry. (交换页次数)

The "intr" entry show the number of interrupts. The first number is
the total interrupts between all IRQs. The remaining numbers are the interrupts for each IRQ in order. (磁盘请求——中断)

The "disk_io" shows data for each active disk. The above example only shows one active disk. The first pair is the major followed by the disk number entry. The others are:
+ - total number of I/O operations on this drive
+ - read I/O operations
+ - read I/O sectors
+ - write I/O operations
+ - write I/O sectors
"ctxt" the the contest switches. (上下文转换次数)

"btime" field the is up time of the system in seconds. (最后启动时间)

"processes" is the number of processes that have run since boot.



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/3767/showart_98182.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP