参考内核文档

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的时间。

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

  1. 0 full gc时cpu idle_结合GC日志讲讲CMS垃圾收集器

    1 CMS垃圾收集器介绍 CMS(Concurrent Mark Sweep)收集器旨在获取最短回收停顿时间的并发垃圾收集器.CMS基于"标记-清除"算法实现,并发指的是CMS的垃 ...

  2. 0 full gc时cpu idle_Go语言中如何观察GC

    我们以下面的程序为例,先使用四种不同的方式来介绍如何观察 GC,并在后面的问题中通过几个详细的例子再来讨论如何优化 GC. package mainfunc allocate() { _ = make ...

  3. 华为鲲鹏云服务器系列的规格,华为云服务器CPU架构x86计算和鲲鹏计算的区别是什么?...

    华为云服务器CPU架构鲲鹏计算和x86计算有什么区别?如何选择CPU架构?通用的CPU架构为x86,华为云鲲鹏是基于ARM架构,性能大幅提升,久云大使来详细说下华为云服务器CPU架构鲲鹏计算和x86计 ...

  4. SpringBoot2.0系列--06--定时任务Scheduled及具体例子

    SpringBoot2.0系列–06–定时任务Scheduled及具体例子 文章目录 SpringBoot2.0系列--06--定时任务Scheduled及具体例子 前言 介绍 总流程 时间循环参数 ...

  5. CPU知识(CPU个数、CPU核心数、CPU线程数、多核CPU等)

    CPU知识(CPU个数.CPU核心数.CPU线程数.多核CPU等 CPU个数.CPU核心数.CPU线程数 多核CPU 单核多CPU与多核单CPU 今天看到服务器中有8核8线程和8核16线程的区分,觉得 ...

  6. gc的原因 频繁full_系统缓慢+CPU 100%+频繁Full GC问题的定位排查思路!

    处理过线上问题的同学基本上都会遇到系统突然运行缓慢,CPU 100%,以及Full GC次数过多的问题. 当然,这些问题的最终导致的直观现象就是系统运行缓慢,并且有大量的报警. 本文主要针对系统运行缓 ...

  7. CPU C-state cpuidle driver

    1. 什么是C-states.C-mode? 为了在CPU空闲时节约能源,可以命令CPU进入低功耗模式.C-state是intel CPU处于空闲时的一种状态,CPU有几种电源模式,它们统称为&quo ...

  8. JS垃圾回收——和其他语言一样,JavaScript 的 GC 策略也无法避免一个问题:GC 时,停止响应其他操作,这是为了安全考虑...

    JavaScript 内存管理 & 垃圾回收机制 标记清除 js 中最常用的垃圾回收方式就是标记清除.当变量进入环境时,例如,在函数中声明一个变量,就将这个而变量标记为"进入环境&q ...

  9. 聊一聊Android 6.0的运行时权限

    Android 6.0,代号棉花糖,自发布伊始,其主要的特征运行时权限就很受关注.因为这一特征不仅改善了用户对于应用的使用体验,还使得应用开发者在实践开发中需要做出改变. 没有深入了解运行时权限的开发 ...

最新文章

  1. matlab减,matlab-线性代数 矩阵的加、减、乘、除
  2. IntelliJ IDEA2016.2 Eclipse(mac os x)常用推荐捷键手册
  3. 【PP操作手册】创建公司间交易采购订单
  4. vue学习:v-text,v-html, v-model, {{}}之间的异同
  5. Python基础day05【函数(局部变量、全局变量、多函数执行流程、函数返回值、函数参数)、拆包、引用、可变与不可变类型、函数注意事项】
  6. 【数据结构与算法】比较法分析查找算法与查找结构
  7. android studio | openGL es 3.0增强现实(AR)开发 (2) .so文件的应用和理解
  8. 工业数据采集平台SaaS
  9. 磁测仪高斯计与特斯拉计、磁通计的区别
  10. 数字化营销如何打造全链路数据统计解决方案
  11. [实战]200类鸟类细粒度图像分类
  12. 关于正向代理,反向代理,负载均衡的个人理解
  13. [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
  14. 机器学习:导数与偏导数的区别.
  15. 电脑游戏计算机哪年发明的,电子计算机发明于哪一年
  16. 37_Crop 选择相册图片并手动裁切
  17. 央行根据LPR调整房贷利率,看看你的房贷算法如何变化
  18. 【荤七素八之旅】 跟着吃货知已在一天之内吃透武汉
  19. psd 文件用什么打开
  20. 怎样把PDF文件转换成JPG格式保存

热门文章

  1. 1233. 删除子文件夹(中等)
  2. latex页码 页眉页脚
  3. 人生苦短 我用Python,零基础运行你的第一行Python代码
  4. 航班信息数据获取(传入起始点、终点以及日期)
  5. 通过一个微信小程序商城一步步来学习小程式开发
  6. 各版本Arx包的下载
  7. dell 重装linux系统_DELL 服务器 安装linux 系统
  8. [工具]EMAGNET:从Pastebin上传的泄漏数据库中捕获电子邮件地址和密码
  9. 《近匠》RealSense:几行代码,为游戏添增实感交互
  10. 组合数学——排列组合经典模型