sysfs.txt 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  30. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  31. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  32. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  33. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  34. /sys/devices/system/cpu/cpu0/cpuidle/state1:
  35. total 0
  36. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  37. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  38. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  39. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  40. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  41. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  42. /sys/devices/system/cpu/cpu0/cpuidle/state2:
  43. total 0
  44. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  45. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  46. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  47. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  48. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  49. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  50. /sys/devices/system/cpu/cpu0/cpuidle/state3:
  51. total 0
  52. -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
  53. -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
  54. -r--r--r-- 1 root root 4096 Feb 8 10:42 name
  55. -r--r--r-- 1 root root 4096 Feb 8 10:42 power
  56. -r--r--r-- 1 root root 4096 Feb 8 10:42 time
  57. -r--r--r-- 1 root root 4096 Feb 8 10:42 usage
  58. --------------------------------------------------------------------------------
  59. * desc : Small description about the idle state (string)
  60. * latency : Latency to exit out of this idle state (in microseconds)
  61. * name : Name of the idle state (string)
  62. * power : Power consumed while in this idle state (in milliwatts)
  63. * time : Total time spent in this idle state (in microseconds)
  64. * usage : Number of times this state was entered (count)