real,user and sys 进程时间统计
来源:互联网 发布:软件测试课程设计题目 编辑:程序博客网 时间:2024/06/05 04:41
在linux命令下,敲入time ls ,即可得到下面:
[root@mail ~]# time ls
2.doc bak mail package
AdobePhotoshopCS4-11.0.1.rar index.html Maildir
amavisd.conf install.log main.cf
anaconda-ks.cfg install.log.syslog master.cf
real 0m0.003s
user 0m0.000s
sys 0m0.002s
real,就是整个运行这个进程从一开始到结束的整个时间(时钟墙)
user,是指在运行这个进程中花在用户模式下的时间,即不包括内核的运行时间
sys,是指在运行这个进程,花在内核调用的时间,而不是代码库调用
user+sys=这个进程花的时间
下面是网上下的出处
Real, User and Sys process time statistics
One of these things is not like the other. Real refers to actual elapsed time; User and Sys refer to CPU time usedonly by the process.
- Real is wall clock time - time from start to finish of the call. This is all elapsed time including time slices used by other processes and time the process spends blocked (for example if it is waiting for I/O to complete).
- User is the amount of CPU time spent in user-mode code (outside the kernel) within the process. This is only actual CPU time used in executing the process. Other processes and time the process spends blocked do not count towards this figure.
- Sys is the amount of CPU time spent in the kernel within the process. This means executing CPU time spent in system calls within the kernel, as opposed to library code, which is still running in user-space. Like ‘user’, this is only CPU time used by the process. See below for a brief description of kernel mode (also known as ’supervisor’ mode) and the system call mechanism.
User+Sys will tell you how much actual CPU time your process used.
- real,user and sys 进程时间统计
- real,user and sys 进程时间统计
- time命令中的real,user以及sys时间
- linux clock()函数与real,user,sys时间
- UNIX环境中Real time, User time and Sys time
- UNIX环境中Real time, User time and Sys time
- UNIX环境中Real time, User time and Sys time
- UNIX环境中Real time, User time and Sys time
- 理解linux time命令的输出(What do ‘real’, ‘user’ and ‘sys’ mean?)
- 理解linux time命令的输出(What do ‘real’, ‘user’ and ‘sys’ mean?)
- 转载:Unix环境中Real time, User time and Sys time
- real time,user time,sys time
- Linux系统-real/user/sys time
- C语言计算时间函数 & 理解linux time命令的输出中“real”“user”“sys”的真正含义
- Linux time命令输出的user、sys、real
- 进程的real , effective , saved user ID
- 探讨linux进程的三种时间(real time, system cpu time, user cpu time)的实现
- 进程的Real UID Effective UID Saved Set-User-ID
- HTML和XML常用的转义字符
- C++总是能让我想起什么(3)——C++的几种类型转换
- apk安装及卸载的原理及代码
- GetManifestResourceStream的使用
- CSS 压缩在线工具
- real,user and sys 进程时间统计
- C# 嵌入式资源
- 六大设计原则[笔记]
- List 性能问题
- ExtJS 折叠模板
- 青春中国
- 如何在C#中使用内嵌资源文件(转载学习)
- Android 之对话框 2
- How I explained Design Patterns to my wife: Part 1