- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Folks,
With Sandybrdige, a PCI card has a natural affinity to one CPU. How can I programmatically determine which CPU it is, so that I can affinitize my program to the right CPU?
Many thanks!
With Sandybrdige, a PCI card has a natural affinity to one CPU. How can I programmatically determine which CPU it is, so that I can affinitize my program to the right CPU?
Many thanks!
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
in Linux you can identify which processor your PCIe device is connected to by reading the "/sys/devices/[PCI root]/[PCIe function]/numa_node" or "/sys/class/[device class]/[interface]/device/numa_node" virtual files. However BIOS should support the proper ACPI feature for such detection, otherwise numa_node will report -1.
Best regards,
Roman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in Linux you can look it up in the /sys/devices/[PCI root]/[PCIe function]/numa_node virtual file. However BIOS should support
the proper ACPI feature, otherwise you will read -1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
for network card devices it is also available through "/sys/class/net/[interface]/device/numa_node" file.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page