I worked out 2 patches to export cpu topology and cache info by sysfs. The first patch is to export cpu topology info including below items (attributes) which are similar to /proc/cpuinfo. /sys/devices/system/cpu/cpuX/topology/physical_package_id(representing the physical package id of cpu X) /sys/devices/system/cpu/cpuX/topology/core_id (representing the cpu core id to cpu X) /sys/devices/system/cpu/cpuX/topology/thread_id (representing the cpu thread id to cpu X) /sys/devices/system/cpu/cpuX/topology/thread_siblings (representing the thread siblings to cpu X) /sys/devices/system/cpu/cpuX/topology/core_siblings (represeting the core siblings to cpu X) Signed-off-by: Zhang Yanmin <[email protected]>
Attachment:
export_topology_2.6.14_mm1_ia64.v5.patch
Description: export_topology_2.6.14_mm1_ia64.v5.patch
- Follow-Ups:
- Re: [PATCH 1/2] Export cpu info by sysfs
- From: Paul Jackson <[email protected]>
- Re: [PATCH 1/2] Export cpu info by sysfs
- From: Nathan Lynch <[email protected]>
- Re: [PATCH 1/2] Export cpu info by sysfs
- Prev by Date: [PATCH 2/2] Export cpu info by sysfs
- Next by Date: Console Goes Blank When Booting 2.6.15-rc5
- Previous by thread: [PATCH 2/2] Export cpu info by sysfs
- Next by thread: Re: [PATCH 1/2] Export cpu info by sysfs
- Index(es):