0 full gc时cpu idle_【cpuidle】计算每个cpu进入idle的时间

0 full gc时cpu idle_【cpuidle】计算每个cpu进入idle的时间参考内核文档 Supportingmu sys devices system cpu cpuidleThecu

参考内核文档

Supporting multiple CPU idle levels in kernel

cpuidle sysfs

System global cpuidle related information and tunables are under

/sys/devices/system/cpu/cpuidle

The current interfaces in this directory has self-explanatory names:

* current_driver

* current_governor_ro

With cpuidle_sysfs_switch boot option (meant for developer testing)

following objects are visible instead.

* current_driver

* available_governors

* current_governor

In this case users can switch the governor at run time by writing

to current_governor.

Per logical CPU specific cpuidle information are under

/sys/devices/system/cpu/cpuX/cpuidle

for each online cpu X

——————————————————————————–

# ls -lR /sys/devices/system/cpu/cpu0/cpuidle/

/sys/devices/system/cpu/cpu0/cpuidle/:

total 0

drwxr-xr-x 2 root root 0 Feb 8 10:42 state0

drwxr-xr-x 2 root root 0 Feb 8 10:42 state1

drwxr-xr-x 2 root root 0 Feb 8 10:42 state2

drwxr-xr-x 2 root root 0 Feb 8 10:42 state3

/sys/devices/system/cpu/cpu0/cpuidle/state0:

total 0

-r–r–r– 1 root root 4096 Feb 8 10:42 desc

-rw-r–r– 1 root root 4096 Feb 8 10:42 disable

-r–r–r– 1 root root 4096 Feb 8 10:42 latency

-r–r–r– 1 root root 4096 Feb 8 10:42 name

-r–r–r– 1 root root 4096 Feb 8 10:42 power

-r–r–r– 1 root root 4096 Feb 8 10:42 residency

-r–r–r– 1 root root 4096 Feb 8 10:42 time

-r–r–r– 1 root root 4096 Feb 8 10:42 usage

/sys/devices/system/cpu/cpu0/cpuidle/state1:

total 0

-r–r–r– 1 root root 4096 Feb 8 10:42 desc

-rw-r–r– 1 root root 4096 Feb 8 10:42 disable

-r–r–r– 1 root root 4096 Feb 8 10:42 latency

-r–r–r– 1 root root 4096 Feb 8 10:42 name

-r–r–r– 1 root root 4096 Feb 8 10:42 power

-r–r–r– 1 root root 4096 Feb 8 10:42 residency

-r–r–r– 1 root root 4096 Feb 8 10:42 time

-r–r–r– 1 root root 4096 Feb 8 10:42 usage

/sys/devices/system/cpu/cpu0/cpuidle/state2:

total 0

-r–r–r– 1 root root 4096 Feb 8 10:42 desc

-rw-r–r– 1 root root 4096 Feb 8 10:42 disable

-r–r–r– 1 root root 4096 Feb 8 10:42 latency

-r–r–r– 1 root root 4096 Feb 8 10:42 name

-r–r–r– 1 root root 4096 Feb 8 10:42 power

-r–r–r– 1 root root 4096 Feb 8 10:42 residency

-r–r–r– 1 root root 4096 Feb 8 10:42 time

-r–r–r– 1 root root 4096 Feb 8 10:42 usage

/sys/devices/system/cpu/cpu0/cpuidle/state3:

total 0

-r–r–r– 1 root root 4096 Feb 8 10:42 desc

-rw-r–r– 1 root root 4096 Feb 8 10:42 disable

-r–r–r– 1 root root 4096 Feb 8 10:42 latency

-r–r–r– 1 root root 4096 Feb 8 10:42 name

-r–r–r– 1 root root 4096 Feb 8 10:42 power

-r–r–r– 1 root root 4096 Feb 8 10:42 residency

-r–r–r– 1 root root 4096 Feb 8 10:42 time

-r–r–r– 1 root root 4096 Feb 8 10:42 usage

——————————————————————————–

* desc : Small description about the idle state (string)

* disable : Option to disable this idle state (bool) -> see note below

* latency : Latency to exit out of this idle state (in microseconds)

* residency : Time after which a state becomes more effecient than any

shallower state (in microseconds)

* name : Name of the idle state (string)

* power : Power consumed while in this idle state (in milliwatts)

* time : Total time spent in this idle state (in microseconds)

* usage : Number of times this state was entered (count)

Note:

The behavior and the effect of the disable variable depends on the

implementation of a particular governor. In the ladder governor, for

example, it is not coherent, i.e. if one is disabling a light state,

then all deeper states are disabled as well, but the disable variable

does not reflect it. Likewise, if one enables a deep state but a lighter

state still is disabled, then this has no effect.

其中time显示了每个idle阶段的时间长短。

前后两次idle/state*/time的时间即是进入idle的时间。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/233943.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • jmeter 分布式测试

    jmeter 分布式测试

    2021年6月6日
    87
  • phpMyAdmin使用教程

    phpMyAdmin使用教程什么是phpMyAdmin?phpMyAdmin是众多MySQL图形化管理工具中使用最为广泛的一种,是一款使用PHP开发的基于B/S模式的MySQL客户端软件,该工具是基于Web跨平台的管理程序,并且支持简体中文,用户可以在官网上下载最新版本的。phpMyAdmin为Web开发人员提供了类似Access,SQLServer的图形化数据库操作界面,通

    2022年5月31日
    106
  • python小项目:1、人机剪刀石头布

    python小项目:1、人机剪刀石头布

    2021年10月6日
    40
  • PyCharm 2022.01.13永久激活[最新免费获取]

    (PyCharm 2022.01.13永久激活)本文适用于JetBrains家族所有ide,包括IntelliJidea,phpstorm,webstorm,pycharm,datagrip等。https://javaforall.net/100143.htmlIntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,上面是详细链接哦~1…

    2022年3月31日
    113
  • 《Dubbo进阶一》——RPC协议底层原理

    《Dubbo进阶一》——RPC协议底层原理一RPC协议简介在一个典型的RPC的使用场景中,包含了服务发现、负载、容错、序列化和网络传输等组件,其中RPC协议指明了程序如何进行序列化和网络传输,也就是说一个RPC协议的实现等于一个非透明的RPC调用。简单来说,分布式框架的核心是RPC框架,RPC框架的核心是RPC协议。二协议的基本组成IP:服务提供者的地址端口:协议指定开放端口运行服务(1)netty(2)mima…

    2022年5月19日
    37
  • 双系统ubuntu20.04安装教程_ubuntu20.04网络配置

    双系统ubuntu20.04安装教程_ubuntu20.04网络配置文章目录1.激活VMware1.2下载ubuntu20.04镜像2.安装虚拟机3.安装ubuntu20.043.1开启此虚拟机3.2安装ubuntu我的网站:https://pythoneers.cn1.激活VMware下载链接:https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html安装完成后,选择【帮助】,输入许可证密钥。1.2下载ubuntu20.04镜像htt.

    2022年10月4日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号