Re: Physical cpu number on UltrasparcT1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've checked the ALOM manual and found no useful clues there. If ALOM
knows it, can I simply get the information from ALOM? Or should I have
to ask hypervisor directly?
Since my kernel is 2.6.20, which does not support your multi-core
arrangement for sparc64 yet, it lacks the mdesc files.

Thanks!

On 8/14/07, David Miller <davem@xxxxxxxxxxxxx> wrote:
> From: "jiaqi zhang" <zation.busy@xxxxxxxxx>
> Date: Tue, 14 Aug 2007 10:51:31 +1200
>
>
> The kernel groups cpus into scheduling groups depending upon
> whether they share execution resources or cache.
>
> You can look at the files under /sys/devices/system/cpu/cpu${ID}/topology/
> to see this information.
>
> This determination is made using the machine description which the
> hypervisor passes on down to the kernel.  It is a binary datastructure
> which, among other things, provides a graph describing the mapping from
> virtual cpus to physical chip resources such as caches and execution
> units.
>
> This datastructure is parsed and managed in arch/sparc64/kernel/mdesc.c,
> in particular you might find mdesc_fill_in_cpu_data() useful.
>
> See?  When you describe what you're trying to accomplish then I can
> give you a useful and coherent answer.
>
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux