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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • SpringBoot(二十二)整合Mybatis,使用SqlSessionTemplate实现增删改查[通俗易懂]

    SpringBoot(二十二)整合Mybatis,使用SqlSessionTemplate实现增删改查[通俗易懂]在之前这篇基础上进行改造使用JdbcTemplate实现增删改查。SpringBoot版本:2.1.1目录结构如下:pom文件添加依赖,如下:<!–添加依赖以后Mybatis就自动配置好了,可以直接使用,具体自动配置代码到mybatis-spring-boot-autoconfigure包下查看–><!–上一篇博客里添加的spring-boot…

    2022年5月25日
    56
  • 我的世界怎么设置传送点指令_我的世界手机版领地指令

    我的世界怎么设置传送点指令_我的世界手机版领地指令今天小编为玩家们带来了我的世界服务器领地指令_我的世界地皮指令大全,希望对玩家们有所帮助,还不了解的玩家快来看看吧。圈地指令用木棍(各个服务器不一样,绝大部分默认是木锄)左击一个点,右击一个点(两点内为你想圈的长宽高,对角,一个高点,一个低点。)然后输查询大小,在输入创建领地。查询区域大小/resselectsize创建领地/rescreate名字移除领地/resremove名字领地转赠/resg…

    2022年9月15日
    0
  • p6使用说明_人员配置情况说明

    p6使用说明_人员配置情况说明P6SPY 是一个监控JDBC执行语句的开源产品,利用P6SPY很容易的就能监控到JDBC中执行的SQL语句,便于系统调试和性能调优。P6SPY 实现原理是对JDBC的关键类进行了一次包装,让应用系统调用自己的类;自己的类截获到SQL语句后再调用真实的JDBC驱动进行执行SQL,这样,在自己的类里面就可以监控到所有的SQL语句。    P6SPY 使用非常简单,只需要简单的几步即完成配置:

    2022年10月5日
    0
  • PIC单片机C语言简记「建议收藏」

    PIC单片机C语言简记「建议收藏」1.PICC安装:PICC编译器可以直接挂接在MPLAB-IDE集成开发平台下,实现一体化的编译连接和原代码调试。使用MPLAB-IDE内的调试工具ICE2000、ICD2和软件模拟器都可以实现

    2022年8月2日
    5
  • springcloud原理详解_SpringMVC运行原理

    springcloud原理详解_SpringMVC运行原理SpringCloudEureka原理分析一、Eureka的基础架构及服务治理机制  Eureka服务治理的基础架构包含三个核心:服务注册中心、服务提供者、服务消费者。其中服务注册中心,即Eureka提供的服务端,提供服务注册和发现的功能;服务提供者,即将自己的服务注册到注册中心;服务的消费者,从注册中心获取服务列表,从而使消费者知道到何处调用服务,服务消费可以使用Ribbon、Feign等。1、服务提供者:服务注册:服务提供者在项目启动时,会通过发送REST请求的方式将自己注册到eure

    2022年10月21日
    0
  • 克莱因瓶莫比乌斯带_克莱因瓶剪莫比乌斯带

    克莱因瓶莫比乌斯带_克莱因瓶剪莫比乌斯带  [克莱茵瓶&莫比乌斯带]在1882年,著名数学家菲立克斯·克莱因(FelixKlein)发现了后来以他的名字命名的著名“瓶子”。这是一个象球面那样封闭的(也就是说没有边)曲面,但是它却只有一个面。在图片上我们看到,克莱因瓶的确就象是一个瓶子。但是它没有瓶底,它的瓶颈被拉长,然后似乎是穿过了瓶壁,最后瓶颈和瓶底圈连在了一起。如果瓶颈不穿过瓶壁而…

    2022年9月13日
    0

发表回复

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

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