sysfs-devices-system-cpu 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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#/node
  52. Date: October 2009
  53. Contact: Linux memory management mailing list <linux-mm@kvack.org>
  54. Description: Discover NUMA node a CPU belongs to
  55. When CONFIG_NUMA is enabled, a symbolic link that points
  56. to the corresponding NUMA node directory.
  57. For example, the following symlink is created for cpu42
  58. in NUMA node 2:
  59. /sys/devices/system/cpu/cpu42/node2 -> ../../node/node2
  60. What: /sys/devices/system/cpu/cpu#/topology/core_id
  61. /sys/devices/system/cpu/cpu#/topology/core_siblings
  62. /sys/devices/system/cpu/cpu#/topology/core_siblings_list
  63. /sys/devices/system/cpu/cpu#/topology/physical_package_id
  64. /sys/devices/system/cpu/cpu#/topology/thread_siblings
  65. /sys/devices/system/cpu/cpu#/topology/thread_siblings_list
  66. Date: December 2008
  67. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  68. Description: CPU topology files that describe a logical CPU's relationship
  69. to other cores and threads in the same physical package.
  70. One cpu# directory is created per logical CPU in the system,
  71. e.g. /sys/devices/system/cpu/cpu42/.
  72. Briefly, the files above are:
  73. core_id: the CPU core ID of cpu#. Typically it is the
  74. hardware platform's identifier (rather than the kernel's).
  75. The actual value is architecture and platform dependent.
  76. core_siblings: internal kernel map of cpu#'s hardware threads
  77. within the same physical_package_id.
  78. core_siblings_list: human-readable list of the logical CPU
  79. numbers within the same physical_package_id as cpu#.
  80. physical_package_id: physical package id of cpu#. Typically
  81. corresponds to a physical socket number, but the actual value
  82. is architecture and platform dependent.
  83. thread_siblings: internel kernel map of cpu#'s hardware
  84. threads within the same core as cpu#
  85. thread_siblings_list: human-readable list of cpu#'s hardware
  86. threads within the same core as cpu#
  87. See Documentation/cputopology.txt for more information.
  88. What: /sys/devices/system/cpu/cpuidle/current_driver
  89. /sys/devices/system/cpu/cpuidle/current_governer_ro
  90. Date: September 2007
  91. Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
  92. Description: Discover cpuidle policy and mechanism
  93. Various CPUs today support multiple idle levels that are
  94. differentiated by varying exit latencies and power
  95. consumption during idle.
  96. Idle policy (governor) is differentiated from idle mechanism
  97. (driver)
  98. current_driver: displays current idle mechanism
  99. current_governor_ro: displays current idle policy
  100. See files in Documentation/cpuidle/ for more information.
  101. What: /sys/devices/system/cpu/cpu#/cpufreq/*
  102. Date: pre-git history
  103. Contact: cpufreq@vger.kernel.org
  104. Description: Discover and change clock speed of CPUs
  105. Clock scaling allows you to change the clock speed of the
  106. CPUs on the fly. This is a nice method to save battery
  107. power, because the lower the clock speed, the less power
  108. the CPU consumes.
  109. There are many knobs to tweak in this directory.
  110. See files in Documentation/cpu-freq/ for more information.
  111. In particular, read Documentation/cpu-freq/user-guide.txt
  112. to learn how to control the knobs.
  113. What: /sys/devices/system/cpu/cpu*/cache/index3/cache_disable_{0,1}
  114. Date: August 2008
  115. KernelVersion: 2.6.27
  116. Contact: discuss@x86-64.org
  117. Description: Disable L3 cache indices
  118. These files exist in every CPU's cache/index3 directory. Each
  119. cache_disable_{0,1} file corresponds to one disable slot which
  120. can be used to disable a cache index. Reading from these files
  121. on a processor with this functionality will return the currently
  122. disabled index for that node. There is one L3 structure per
  123. node, or per internal node on MCM machines. Writing a valid
  124. index to one of these files will cause the specificed cache
  125. index to be disabled.
  126. All AMD processors with L3 caches provide this functionality.
  127. For details, see BKDGs at
  128. http://developer.amd.com/documentation/guides/Pages/default.aspx