+ -
当前位置:首页 → 问答吧 → 请教一个关于top中TIME+的问题

请教一个关于top中TIME+的问题

时间:2010-03-09

来源:互联网

通过top命令能看到各个程序占用cpu的执行时间,单位试1/100秒,但是我不太明白是如何换算的,请各位高手指点!比如下面的mysql的占用cpu的情况,请高手指点迷津,谢谢了!
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
2586 mysql     15   0 2692m 580m 3648 S 52.4  3.6 263:26.99 mysqld

作者: 飞鸿无痕   发布时间: 2010-03-09

顶起,期待高手!

作者: 飞鸿无痕   发布时间: 2010-03-09

你什么意思?这不就是263分26.99秒么

作者: 紫暝   发布时间: 2010-03-10



QUOTE:
你什么意思?这不就是263分26.99秒么
紫暝 发表于 2010-03-10 19:09




  要的就是这个东西,谢谢!

作者: 飞鸿无痕   发布时间: 2010-03-11

错误
man手册不是这么说的
l: TIME -- CPU Time
Total CPU time the task has used since it started. When 'Cumulative mode' is On, each process is listed with the cpu time that it and its dead children has used. You toggle 'Cumulative mode' with 'S', which is a command-line option and an interactive command. See the 'S' interactive command for additional information regarding this mode.
m: TIME+ -- CPU Time, hundredths
The same as 'TIME', but reflecting more granularity through hundredths of a second.

作者: xuledw   发布时间: 2011-02-18