sysfs-devices-system-cpu 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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/kernel_max
  10. /sys/devices/system/cpu/offline
  11. /sys/devices/system/cpu/online
  12. /sys/devices/system/cpu/possible
  13. /sys/devices/system/cpu/present
  14. Date: December 2008
  15. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  16. Description: CPU topology files that describe kernel limits related to
  17. hotplug. Briefly:
  18. kernel_max: the maximum cpu index allowed by the kernel
  19. configuration.
  20. offline: cpus that are not online because they have been
  21. HOTPLUGGED off or exceed the limit of cpus allowed by the
  22. kernel configuration (kernel_max above).
  23. online: cpus that are online and being scheduled.
  24. possible: cpus that have been allocated resources and can be
  25. brought online if they are present.
  26. present: cpus that have been identified as being present in
  27. the system.
  28. See Documentation/cputopology.txt for more information.
  29. What: /sys/devices/system/cpu/probe
  30. /sys/devices/system/cpu/release
  31. Date: November 2009
  32. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  33. Description: Dynamic addition and removal of CPU's. This is not hotplug
  34. removal, this is meant complete removal/addition of the CPU
  35. from the system.
  36. probe: writes to this file will dynamically add a CPU to the
  37. system. Information written to the file to add CPU's is
  38. architecture specific.
  39. release: writes to this file dynamically remove a CPU from
  40. the system. Information writtento the file to remove CPU's
  41. is architecture specific.
  42. What: /sys/devices/system/cpu/cpu#/node
  43. Date: October 2009
  44. Contact: Linux memory management mailing list <linux-mm@kvack.org>
  45. Description: Discover NUMA node a CPU belongs to
  46. When CONFIG_NUMA is enabled, a symbolic link that points
  47. to the corresponding NUMA node directory.
  48. For example, the following symlink is created for cpu42
  49. in NUMA node 2:
  50. /sys/devices/system/cpu/cpu42/node2 -> ../../node/node2
  51. What: /sys/devices/system/cpu/cpu#/topology/core_id
  52. /sys/devices/system/cpu/cpu#/topology/core_siblings
  53. /sys/devices/system/cpu/cpu#/topology/core_siblings_list
  54. /sys/devices/system/cpu/cpu#/topology/physical_package_id
  55. /sys/devices/system/cpu/cpu#/topology/thread_siblings
  56. /sys/devices/system/cpu/cpu#/topology/thread_siblings_list
  57. Date: December 2008
  58. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  59. Description: CPU topology files that describe a logical CPU's relationship
  60. to other cores and threads in the same physical package.
  61. One cpu# directory is created per logical CPU in the system,
  62. e.g. /sys/devices/system/cpu/cpu42/.
  63. Briefly, the files above are:
  64. core_id: the CPU core ID of cpu#. Typically it is the
  65. hardware platform's identifier (rather than the kernel's).
  66. The actual value is architecture and platform dependent.
  67. core_siblings: internal kernel map of cpu#'s hardware threads
  68. within the same physical_package_id.
  69. core_siblings_list: human-readable list of the logical CPU
  70. numbers within the same physical_package_id as cpu#.
  71. physical_package_id: physical package id of cpu#. Typically
  72. corresponds to a physical socket number, but the actual value
  73. is architecture and platform dependent.
  74. thread_siblings: internel kernel map of cpu#'s hardware
  75. threads within the same core as cpu#
  76. thread_siblings_list: human-readable list of cpu#'s hardware
  77. threads within the same core as cpu#
  78. See Documentation/cputopology.txt for more information.
  79. What: /sys/devices/system/cpu/cpuidle/current_driver
  80. /sys/devices/system/cpu/cpuidle/current_governer_ro
  81. Date: September 2007
  82. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  83. Description: Discover cpuidle policy and mechanism
  84. Various CPUs today support multiple idle levels that are
  85. differentiated by varying exit latencies and power
  86. consumption during idle.
  87. Idle policy (governor) is differentiated from idle mechanism
  88. (driver)
  89. current_driver: displays current idle mechanism
  90. current_governor_ro: displays current idle policy
  91. See files in Documentation/cpuidle/ for more information.
  92. What: /sys/devices/system/cpu/cpu#/cpufreq/*
  93. Date: pre-git history
  94. Contact: linux-pm@vger.kernel.org
  95. Description: Discover and change clock speed of CPUs
  96. Clock scaling allows you to change the clock speed of the
  97. CPUs on the fly. This is a nice method to save battery
  98. power, because the lower the clock speed, the less power
  99. the CPU consumes.
  100. There are many knobs to tweak in this directory.
  101. See files in Documentation/cpu-freq/ for more information.
  102. In particular, read Documentation/cpu-freq/user-guide.txt
  103. to learn how to control the knobs.
  104. What: /sys/devices/system/cpu/cpu#/cpufreq/freqdomain_cpus
  105. Date: June 2013
  106. Contact: linux-pm@vger.kernel.org
  107. Description: Discover CPUs in the same CPU frequency coordination domain
  108. freqdomain_cpus is the list of CPUs (online+offline) that share
  109. the same clock/freq domain (possibly at the hardware level).
  110. That information may be hidden from the cpufreq core and the
  111. value of related_cpus may be different from freqdomain_cpus. This
  112. attribute is useful for user space DVFS controllers to get better
  113. power/performance results for platforms using acpi-cpufreq.
  114. This file is only present if the acpi-cpufreq driver is in use.
  115. What: /sys/devices/system/cpu/cpu*/cache/index3/cache_disable_{0,1}
  116. Date: August 2008
  117. KernelVersion: 2.6.27
  118. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  119. Description: Disable L3 cache indices
  120. These files exist in every CPU's cache/index3 directory. Each
  121. cache_disable_{0,1} file corresponds to one disable slot which
  122. can be used to disable a cache index. Reading from these files
  123. on a processor with this functionality will return the currently
  124. disabled index for that node. There is one L3 structure per
  125. node, or per internal node on MCM machines. Writing a valid
  126. index to one of these files will cause the specificed cache
  127. index to be disabled.
  128. All AMD processors with L3 caches provide this functionality.
  129. For details, see BKDGs at
  130. http://developer.amd.com/documentation/guides/Pages/default.aspx
  131. What: /sys/devices/system/cpu/cpufreq/boost
  132. Date: August 2012
  133. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  134. Description: Processor frequency boosting control
  135. This switch controls the boost setting for the whole system.
  136. Boosting allows the CPU and the firmware to run at a frequency
  137. beyound it's nominal limit.
  138. More details can be found in Documentation/cpu-freq/boost.txt
  139. What: /sys/devices/system/cpu/cpu#/crash_notes
  140. /sys/devices/system/cpu/cpu#/crash_notes_size
  141. Date: April 2013
  142. Contact: kexec@lists.infradead.org
  143. Description: address and size of the percpu note.
  144. crash_notes: the physical address of the memory that holds the
  145. note of cpu#.
  146. crash_notes_size: size of the note of cpu#.
  147. What: /sys/devices/system/cpu/intel_pstate/max_perf_pct
  148. /sys/devices/system/cpu/intel_pstate/min_perf_pct
  149. /sys/devices/system/cpu/intel_pstate/no_turbo
  150. Date: February 2013
  151. Contact: linux-pm@vger.kernel.org
  152. Description: Parameters for the Intel P-state driver
  153. Logic for selecting the current P-state in Intel
  154. Sandybridge+ processors. The three knobs control
  155. limits for the P-state that will be requested by the
  156. driver.
  157. max_perf_pct: limits the maximum P state that will be requested by
  158. the driver stated as a percentage of the available performance.
  159. min_perf_pct: limits the minimum P state that will be requested by
  160. the driver stated as a percentage of the available performance.
  161. no_turbo: limits the driver to selecting P states below the turbo
  162. frequency range.
  163. More details can be found in Documentation/cpu-freq/intel-pstate.txt
  164. What: /sys/devices/system/cpu/cpu*/cache/index*/<set_of_attributes_mentioned_below>
  165. Date: July 2014(documented, existed before August 2008)
  166. Contact: Sudeep Holla <sudeep.holla@arm.com>
  167. Linux kernel mailing list <linux-kernel@vger.kernel.org>
  168. Description: Parameters for the CPU cache attributes
  169. allocation_policy:
  170. - WriteAllocate: allocate a memory location to a cache line
  171. on a cache miss because of a write
  172. - ReadAllocate: allocate a memory location to a cache line
  173. on a cache miss because of a read
  174. - ReadWriteAllocate: both writeallocate and readallocate
  175. attributes: LEGACY used only on IA64 and is same as write_policy
  176. coherency_line_size: the minimum amount of data in bytes that gets
  177. transferred from memory to cache
  178. level: the cache hierarchy in the multi-level cache configuration
  179. number_of_sets: total number of sets in the cache, a set is a
  180. collection of cache lines with the same cache index
  181. physical_line_partition: number of physical cache line per cache tag
  182. shared_cpu_list: the list of logical cpus sharing the cache
  183. shared_cpu_map: logical cpu mask containing the list of cpus sharing
  184. the cache
  185. size: the total cache size in kB
  186. type:
  187. - Instruction: cache that only holds instructions
  188. - Data: cache that only caches data
  189. - Unified: cache that holds both data and instructions
  190. ways_of_associativity: degree of freedom in placing a particular block
  191. of memory in the cache
  192. write_policy:
  193. - WriteThrough: data is written to both the cache line
  194. and to the block in the lower-level memory
  195. - WriteBack: data is written only to the cache line and
  196. the modified cache line is written to main
  197. memory only when it is replaced
  198. What: /sys/devices/system/cpu/vulnerabilities
  199. /sys/devices/system/cpu/vulnerabilities/meltdown
  200. /sys/devices/system/cpu/vulnerabilities/spectre_v1
  201. /sys/devices/system/cpu/vulnerabilities/spectre_v2
  202. /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
  203. Date: January 2018
  204. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  205. Description: Information about CPU vulnerabilities
  206. The files are named after the code names of CPU
  207. vulnerabilities. The output of those files reflects the
  208. state of the CPUs in the system. Possible output values:
  209. "Not affected" CPU is not affected by the vulnerability
  210. "Vulnerable" CPU is affected and no mitigation in effect
  211. "Mitigation: $M" CPU is affected and mitigation $M is in effect