解释dumpsys cpuinfo [英] interpreting dumpsys cpuinfo

查看:1310
本文介绍了解释dumpsys cpuinfo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Android Shell中命令"dumpsys cpuinfo"的结果的解释.

Im looking for an explanation of result of command "dumpsys cpuinfo" in android shell.

:# dumpsys cpuinfo
Load: 17.78 / 16.97 / 16.29
CPU usage from 35983ms to 21604ms ago:
  97% 25268/com.firstprocess: 78% user + 19% kernel / faults: 19938 minor
  36% 25680/com.secondprocess: 19% user + 17% kernel / faults: 950 minor
  11% 25151/com.anotherprocess: 8.8% user + 2.4% kernel / faults: 13794 minor 6 major
  18% 739/system_server: 13% user + 5.4% kernel / faults: 3803 minor 2 major
  14% 1242/android.process.media: 11% user + 2.7% kernel / faults: 2413 minor
  8.4% 333/adbd: 0.2% user + 8.2% kernel / faults: 1 minor

  1. 第二行中的数字17.78/16.97/16.29是什么意思?
  2. 进程名称前的数字是什么意思?例如97%或36%?因为所有进程的总和将超过100%,所以这不可能是处理器时间的整体消耗.处理器的一个核心消耗时间吗?
  3. "78%用户+ 19%内核"是什么意思?

推荐答案

dumpsys cpuinfo中的信息只是unix top命令的一种变体.

The information in dumpsys cpuinfo here is just a variation of the unix top command.

1)此处描述了负载信息:

1) The load information is described here:

http://blog.scoutapp.com/articles/2009/07/31/了解平均负载量

2)如果您拥有多个内核(我希望您这样做),那么它将超过100%,因此它是所有CPU的平均值.

2) If you have more than one core (which I expect that you do), it will be more than 100%, so it is an average across all of the CPUs.

https://superuser.com/questions/575202/understanding-top-command-in -unix

3)在97%的CPU中,该进程在用户空间上花费了78%的时间,在内核空间上花费了19%的时间.

3) Of the 97% of CPU, the process is spending 78% time in user space, and 19% in Kernel space.

这篇关于解释dumpsys cpuinfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆