Skip to contentSkip to conversation

sched: new sched domain for representing multi-core

PATCH Samuel Thibault 2 participants 2 messages Feb 9, 2006 – Feb 11, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

Could cache-sharing multi-core chips be represented somehow in /proc/cpuinfo too? Such information can be useful in userspace too (without having to run cpuid & such). For instance:

physical id : 0
siblings : 2
l3 id : 0
l2 id : 0
core id : 0
cpu cores : 2

etc.

Regards,
Samuel

#1 lore raw
Quoted 6 lines · Samuel Thibault

Hi,

Could cache-sharing multi-core chips be represented somehow in /proc/cpuinfo too? Such information can be useful in userspace too (without having to run cpuid & such). For instance:

Quoted 8 lines

physical id : 0
siblings : 2
l3 id : 0
l2 id : 0
core id : 0
cpu cores : 2

etc.

/sys/devices/system/cpu/cpuX/cache/indexY/shared_cpu_map has this info already

There is one more patch in works which enables exporting the multi-core topology through sysfs

http://www.ussg.iu.edu/hypermail/linux/kernel/0601.3/0275.html

thanks,
suresh