12ceb3fb0SAlex ChiangWhat: /sys/devices/system/cpu/ 22ceb3fb0SAlex ChiangDate: pre-git history 32ceb3fb0SAlex ChiangContact: Linux kernel mailing list <linux-kernel@vger.kernel.org> 42ceb3fb0SAlex ChiangDescription: 52ceb3fb0SAlex Chiang A collection of both global and individual CPU attributes 62ceb3fb0SAlex Chiang 72ceb3fb0SAlex Chiang Individual CPU attributes are contained in subdirectories 82ceb3fb0SAlex Chiang named by the kernel's logical CPU number, e.g.: 92ceb3fb0SAlex Chiang 102ceb3fb0SAlex Chiang /sys/devices/system/cpu/cpu#/ 112ceb3fb0SAlex Chiang 12e6dcfa7cSAlex ChiangWhat: /sys/devices/system/cpu/sched_mc_power_savings 13e6dcfa7cSAlex Chiang /sys/devices/system/cpu/sched_smt_power_savings 14e6dcfa7cSAlex ChiangDate: June 2006 15e6dcfa7cSAlex ChiangContact: Linux kernel mailing list <linux-kernel@vger.kernel.org> 16e6dcfa7cSAlex ChiangDescription: Discover and adjust the kernel's multi-core scheduler support. 17e6dcfa7cSAlex Chiang 18e6dcfa7cSAlex Chiang Possible values are: 19e6dcfa7cSAlex Chiang 20e6dcfa7cSAlex Chiang 0 - No power saving load balance (default value) 21e6dcfa7cSAlex Chiang 1 - Fill one thread/core/package first for long running threads 22e6dcfa7cSAlex Chiang 2 - Also bias task wakeups to semi-idle cpu package for power 23e6dcfa7cSAlex Chiang savings 24e6dcfa7cSAlex Chiang 25e6dcfa7cSAlex Chiang sched_mc_power_savings is dependent upon SCHED_MC, which is 26e6dcfa7cSAlex Chiang itself architecture dependent. 27e6dcfa7cSAlex Chiang 28e6dcfa7cSAlex Chiang sched_smt_power_savings is dependent upon SCHED_SMT, which 29e6dcfa7cSAlex Chiang is itself architecture dependent. 30e6dcfa7cSAlex Chiang 31e6dcfa7cSAlex Chiang The two files are independent of each other. It is possible 32e6dcfa7cSAlex Chiang that one file may be present without the other. 33e6dcfa7cSAlex Chiang 34e6dcfa7cSAlex Chiang Introduced by git commit 5c45bf27. 35e6dcfa7cSAlex Chiang 362ceb3fb0SAlex Chiang 37d93fc863SAlex ChiangWhat: /sys/devices/system/cpu/kernel_max 38d93fc863SAlex Chiang /sys/devices/system/cpu/offline 39d93fc863SAlex Chiang /sys/devices/system/cpu/online 40d93fc863SAlex Chiang /sys/devices/system/cpu/possible 41d93fc863SAlex Chiang /sys/devices/system/cpu/present 42d93fc863SAlex ChiangDate: December 2008 43d93fc863SAlex ChiangContact: Linux kernel mailing list <linux-kernel@vger.kernel.org> 44d93fc863SAlex ChiangDescription: CPU topology files that describe kernel limits related to 45d93fc863SAlex Chiang hotplug. Briefly: 46d93fc863SAlex Chiang 47d93fc863SAlex Chiang kernel_max: the maximum cpu index allowed by the kernel 48d93fc863SAlex Chiang configuration. 49d93fc863SAlex Chiang 50d93fc863SAlex Chiang offline: cpus that are not online because they have been 51d93fc863SAlex Chiang HOTPLUGGED off or exceed the limit of cpus allowed by the 52d93fc863SAlex Chiang kernel configuration (kernel_max above). 53d93fc863SAlex Chiang 54d93fc863SAlex Chiang online: cpus that are online and being scheduled. 55d93fc863SAlex Chiang 56d93fc863SAlex Chiang possible: cpus that have been allocated resources and can be 57d93fc863SAlex Chiang brought online if they are present. 58d93fc863SAlex Chiang 59d93fc863SAlex Chiang present: cpus that have been identified as being present in 60d93fc863SAlex Chiang the system. 61d93fc863SAlex Chiang 62d93fc863SAlex Chiang See Documentation/cputopology.txt for more information. 63d93fc863SAlex Chiang 64d93fc863SAlex Chiang 65663fb2fcSAlex ChiangWhat: /sys/devices/system/cpu/cpu#/topology/core_id 66663fb2fcSAlex Chiang /sys/devices/system/cpu/cpu#/topology/core_siblings 67663fb2fcSAlex Chiang /sys/devices/system/cpu/cpu#/topology/core_siblings_list 68663fb2fcSAlex Chiang /sys/devices/system/cpu/cpu#/topology/physical_package_id 69663fb2fcSAlex Chiang /sys/devices/system/cpu/cpu#/topology/thread_siblings 70663fb2fcSAlex Chiang /sys/devices/system/cpu/cpu#/topology/thread_siblings_list 71663fb2fcSAlex ChiangDate: December 2008 72663fb2fcSAlex ChiangContact: Linux kernel mailing list <linux-kernel@vger.kernel.org> 73663fb2fcSAlex ChiangDescription: CPU topology files that describe a logical CPU's relationship 74663fb2fcSAlex Chiang to other cores and threads in the same physical package. 75663fb2fcSAlex Chiang 76663fb2fcSAlex Chiang One cpu# directory is created per logical CPU in the system, 77663fb2fcSAlex Chiang e.g. /sys/devices/system/cpu/cpu42/. 78663fb2fcSAlex Chiang 79663fb2fcSAlex Chiang Briefly, the files above are: 80663fb2fcSAlex Chiang 81663fb2fcSAlex Chiang core_id: the CPU core ID of cpu#. Typically it is the 82663fb2fcSAlex Chiang hardware platform's identifier (rather than the kernel's). 83663fb2fcSAlex Chiang The actual value is architecture and platform dependent. 84663fb2fcSAlex Chiang 85663fb2fcSAlex Chiang core_siblings: internal kernel map of cpu#'s hardware threads 86663fb2fcSAlex Chiang within the same physical_package_id. 87663fb2fcSAlex Chiang 88663fb2fcSAlex Chiang core_siblings_list: human-readable list of the logical CPU 89663fb2fcSAlex Chiang numbers within the same physical_package_id as cpu#. 90663fb2fcSAlex Chiang 91663fb2fcSAlex Chiang physical_package_id: physical package id of cpu#. Typically 92663fb2fcSAlex Chiang corresponds to a physical socket number, but the actual value 93663fb2fcSAlex Chiang is architecture and platform dependent. 94663fb2fcSAlex Chiang 95663fb2fcSAlex Chiang thread_siblings: internel kernel map of cpu#'s hardware 96663fb2fcSAlex Chiang threads within the same core as cpu# 97663fb2fcSAlex Chiang 98663fb2fcSAlex Chiang thread_siblings_list: human-readable list of cpu#'s hardware 99663fb2fcSAlex Chiang threads within the same core as cpu# 100663fb2fcSAlex Chiang 101663fb2fcSAlex Chiang See Documentation/cputopology.txt for more information. 102663fb2fcSAlex Chiang 103663fb2fcSAlex Chiang 104*c1fb5c47SAlex ChiangWhat: /sys/devices/system/cpu/cpuidle/current_driver 105*c1fb5c47SAlex Chiang /sys/devices/system/cpu/cpuidle/current_governer_ro 106*c1fb5c47SAlex ChiangDate: September 2007 107*c1fb5c47SAlex ChiangContact: Linux kernel mailing list <linux-kernel@vger.kernel.org> 108*c1fb5c47SAlex ChiangDescription: Discover cpuidle policy and mechanism 109*c1fb5c47SAlex Chiang 110*c1fb5c47SAlex Chiang Various CPUs today support multiple idle levels that are 111*c1fb5c47SAlex Chiang differentiated by varying exit latencies and power 112*c1fb5c47SAlex Chiang consumption during idle. 113*c1fb5c47SAlex Chiang 114*c1fb5c47SAlex Chiang Idle policy (governor) is differentiated from idle mechanism 115*c1fb5c47SAlex Chiang (driver) 116*c1fb5c47SAlex Chiang 117*c1fb5c47SAlex Chiang current_driver: displays current idle mechanism 118*c1fb5c47SAlex Chiang 119*c1fb5c47SAlex Chiang current_governor_ro: displays current idle policy 120*c1fb5c47SAlex Chiang 121*c1fb5c47SAlex Chiang See files in Documentation/cpuidle/ for more information. 122*c1fb5c47SAlex Chiang 123*c1fb5c47SAlex Chiang 124468727abSAlex ChiangWhat: /sys/devices/system/cpu/cpu*/cache/index*/cache_disable_X 125468727abSAlex ChiangDate: August 2008 126468727abSAlex ChiangKernelVersion: 2.6.27 127468727abSAlex ChiangContact: mark.langsdorf@amd.com 128468727abSAlex ChiangDescription: These files exist in every cpu's cache index directories. 129468727abSAlex Chiang There are currently 2 cache_disable_# files in each 130468727abSAlex Chiang directory. Reading from these files on a supported 131468727abSAlex Chiang processor will return that cache disable index value 132468727abSAlex Chiang for that processor and node. Writing to one of these 133468727abSAlex Chiang files will cause the specificed cache index to be disabled. 134468727abSAlex Chiang 135468727abSAlex Chiang Currently, only AMD Family 10h Processors support cache index 136468727abSAlex Chiang disable, and only for their L3 caches. See the BIOS and 137468727abSAlex Chiang Kernel Developer's Guide at 138468727abSAlex Chiang http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/31116-Public-GH-BKDG_3.20_2-4-09.pdf 139468727abSAlex Chiang for formatting information and other details on the 140468727abSAlex Chiang cache index disable. 141468727abSAlex ChiangUsers: joachim.deguara@amd.com 142