sysfs.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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)
  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)