sysfs-devices-system-cpu 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. What: /sys/devices/system/cpu/
  2. Date: pre-git history
  3. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  4. Description:
  5. A collection of both global and individual CPU attributes
  6. Individual CPU attributes are contained in subdirectories
  7. named by the kernel's logical CPU number, e.g.:
  8. /sys/devices/system/cpu/cpu#/
  9. What: /sys/devices/system/cpu/sched_mc_power_savings
  10. /sys/devices/system/cpu/sched_smt_power_savings
  11. Date: June 2006
  12. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  13. Description: Discover and adjust the kernel's multi-core scheduler support.
  14. Possible values are:
  15. 0 - No power saving load balance (default value)
  16. 1 - Fill one thread/core/package first for long running threads
  17. 2 - Also bias task wakeups to semi-idle cpu package for power
  18. savings
  19. sched_mc_power_savings is dependent upon SCHED_MC, which is
  20. itself architecture dependent.
  21. sched_smt_power_savings is dependent upon SCHED_SMT, which
  22. is itself architecture dependent.
  23. The two files are independent of each other. It is possible
  24. that one file may be present without the other.
  25. Introduced by git commit 5c45bf27.
  26. What: /sys/devices/system/cpu/kernel_max
  27. /sys/devices/system/cpu/offline
  28. /sys/devices/system/cpu/online
  29. /sys/devices/system/cpu/possible
  30. /sys/devices/system/cpu/present
  31. Date: December 2008
  32. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  33. Description: CPU topology files that describe kernel limits related to
  34. hotplug. Briefly:
  35. kernel_max: the maximum cpu index allowed by the kernel
  36. configuration.
  37. offline: cpus that are not online because they have been
  38. HOTPLUGGED off or exceed the limit of cpus allowed by the
  39. kernel configuration (kernel_max above).
  40. online: cpus that are online and being scheduled.
  41. possible: cpus that have been allocated resources and can be
  42. brought online if they are present.
  43. present: cpus that have been identified as being present in
  44. the system.
  45. See Documentation/cputopology.txt for more information.
  46. What: /sys/devices/system/cpu/cpu#/node
  47. Date: October 2009
  48. Contact: Linux memory management mailing list <linux-mm@kvack.org>
  49. Description: Discover NUMA node a CPU belongs to
  50. When CONFIG_NUMA is enabled, a symbolic link that points
  51. to the corresponding NUMA node directory.
  52. For example, the following symlink is created for cpu42
  53. in NUMA node 2:
  54. /sys/devices/system/cpu/cpu42/node2 -> ../../node/node2
  55. What: /sys/devices/system/cpu/cpu#/topology/core_id
  56. /sys/devices/system/cpu/cpu#/topology/core_siblings
  57. /sys/devices/system/cpu/cpu#/topology/core_siblings_list
  58. /sys/devices/system/cpu/cpu#/topology/physical_package_id
  59. /sys/devices/system/cpu/cpu#/topology/thread_siblings
  60. /sys/devices/system/cpu/cpu#/topology/thread_siblings_list
  61. Date: December 2008
  62. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  63. Description: CPU topology files that describe a logical CPU's relationship
  64. to other cores and threads in the same physical package.
  65. One cpu# directory is created per logical CPU in the system,
  66. e.g. /sys/devices/system/cpu/cpu42/.
  67. Briefly, the files above are:
  68. core_id: the CPU core ID of cpu#. Typically it is the
  69. hardware platform's identifier (rather than the kernel's).
  70. The actual value is architecture and platform dependent.
  71. core_siblings: internal kernel map of cpu#'s hardware threads
  72. within the same physical_package_id.
  73. core_siblings_list: human-readable list of the logical CPU
  74. numbers within the same physical_package_id as cpu#.
  75. physical_package_id: physical package id of cpu#. Typically
  76. corresponds to a physical socket number, but the actual value
  77. is architecture and platform dependent.
  78. thread_siblings: internel kernel map of cpu#'s hardware
  79. threads within the same core as cpu#
  80. thread_siblings_list: human-readable list of cpu#'s hardware
  81. threads within the same core as cpu#
  82. See Documentation/cputopology.txt for more information.
  83. What: /sys/devices/system/cpu/cpuidle/current_driver
  84. /sys/devices/system/cpu/cpuidle/current_governer_ro
  85. Date: September 2007
  86. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  87. Description: Discover cpuidle policy and mechanism
  88. Various CPUs today support multiple idle levels that are
  89. differentiated by varying exit latencies and power
  90. consumption during idle.
  91. Idle policy (governor) is differentiated from idle mechanism
  92. (driver)
  93. current_driver: displays current idle mechanism
  94. current_governor_ro: displays current idle policy
  95. See files in Documentation/cpuidle/ for more information.
  96. What: /sys/devices/system/cpu/cpu*/cache/index*/cache_disable_X
  97. Date: August 2008
  98. KernelVersion: 2.6.27
  99. Contact: mark.langsdorf@amd.com
  100. Description: These files exist in every cpu's cache index directories.
  101. There are currently 2 cache_disable_# files in each
  102. directory. Reading from these files on a supported
  103. processor will return that cache disable index value
  104. for that processor and node. Writing to one of these
  105. files will cause the specificed cache index to be disabled.
  106. Currently, only AMD Family 10h Processors support cache index
  107. disable, and only for their L3 caches. See the BIOS and
  108. Kernel Developer's Guide at
  109. http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/31116-Public-GH-BKDG_3.20_2-4-09.pdf
  110. for formatting information and other details on the
  111. cache index disable.
  112. Users: joachim.deguara@amd.com