sysfs.txt 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Supporting multiple CPU idle levels in kernel
  2. cpuidle sysfs
  3. System global cpuidle related information and tunables are under
  4. /sys/devices/system/cpu/cpuidle
  5. The current interfaces in this directory has self-explanatory names:
  6. * current_driver
  7. * current_governor_ro
  8. With cpuidle_sysfs_switch boot option (meant for developer testing)
  9. following objects are visible instead.
  10. * current_driver
  11. * available_governors
  12. * current_governor
  13. In this case users can switch the governor at run time by writing
  14. to current_governor.
  15. Per logical CPU specific cpuidle information are under
  16. /sys/devices/system/cpu/cpuX/cpuidle
  17. for each online cpu X
  18. --------------------------------------------------------------------------------
  19. # ls -lR /sys/devices/system/cpu/cpu0/cpuidle/
  20. /sys/devices/system/cpu/cpu0/cpuidle/:
  21. total 0
  22. drwxr-xr-x 2 root root 0 Feb 8 10:42 state0
  23. drwxr-xr-x 2 root root 0 Feb 8 10:42 state1
  24. drwxr-xr-x 2 root root 0 Feb 8 10:42 state2
  25. drwxr-xr-x 2 root root 0 Feb 8 10:42 state3
  26. /sys/devices/system/cpu/cpu0/cpuidle/state0:
  27. total 0
  28. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  29. -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
  30. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  31. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  32. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  33. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  34. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  35. /sys/devices/system/cpu/cpu0/cpuidle/state1:
  36. total 0
  37. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  38. -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
  39. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  40. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  41. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  42. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  43. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  44. /sys/devices/system/cpu/cpu0/cpuidle/state2:
  45. total 0
  46. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  47. -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
  48. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  49. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  50. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  51. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  52. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  53. /sys/devices/system/cpu/cpu0/cpuidle/state3:
  54. total 0
  55. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  56. -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
  57. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  58. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  59. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  60. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  61. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  62. --------------------------------------------------------------------------------
  63. * desc : Small description about the idle state (string)
  64. * disable : Option to disable this idle state (bool) -> see note below
  65. * latency : Latency to exit out of this idle state (in microseconds)
  66. * name : Name of the idle state (string)
  67. * power : Power consumed while in this idle state (in milliwatts)
  68. * time : Total time spent in this idle state (in microseconds)
  69. * usage : Number of times this state was entered (count)
  70. Note:
  71. The behavior and the effect of the disable variable depends on the
  72. implementation of a particular governor. In the ladder governor, for
  73. example, it is not coherent, i.e. if one is disabling a light state,
  74. then all deeper states are disabled as well, but the disable variable
  75. does not reflect it. Likewise, if one enables a deep state but a lighter
  76. state still is disabled, then this has no effect.