Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2285841
  • 博文数量: 252
  • 博客积分: 5472
  • 博客等级: 大校
  • 技术积分: 3107
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-17 18:39
文章分类

全部博文(252)

文章存档

2012年(96)

2011年(156)

分类: LINUX

2012-03-07 17:23:26

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 used only 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 是时钟时间-程序从开始至结束的总时间。他包括期间其他进程所占用的时间片和进程被阻塞的时间(如IO等待的时间)
    * User 被测试程序在用户模式下所花的CPU时间。他是进程执行的正真的CPU时间。其他进程调度的时间片以及阻塞(如IO)的时间不包含在内。
    * Sys 是进程在内核中所花费的CPU时间。他表示进程在内核调用中所花的CPU时间,而程序的库调用仍然运行在用户空间下。
      User+Sys表示程序所执行的CPU时间(不包括IO以及其他进程的CPU时间).

 


history 列出最近使用的命令。
history -c 清除历史命令到记录 ,-c表示clear
dmesg = cat /var/log/dmesg

cat /var/log/messages  系统信息。比如如果你在messages中找到有许多登录失败到信息,就表示有人在猜你到root密码,企图登录你到电脑。

last 显示系统登录成功到信息
messages中显示一些登录失败到信息。

阅读(7948) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~