Read the local apic id of the current logical processor

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

 



Dear acpi list members,


I'm not sure if this is the correct place to post this question, but I'm looking for a way to read the local apic id (not the initial one) of the current logical processor in a simple user-space program. According to the documentation I found, this local apic id is stored in a memory mapped msr register. Unfortunately I could not find a way to access this value from within user-space. All search results on the web involved kernel code...

The purpose of getting this id is to determine the processor hierarchy on a cluster; i.e. the number of logical processors, physical processors, packages, and nodes. The initial apic id (the one cpuid returns) is set by the bios and therefore it does not distinguish between the nodes in a cluster.

Any other way to get some kind of node id for the current logical processor makes me happy too :-)


Best,
Edwin



ps. I posted the same message in the linux-smp list earlier, but after that I noticed that the list was dead...
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux