[openib-general] ibv_get_device_list() question

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Tue Jan 2 20:54:00 PST 2007


On Tue, Jan 02, 2007 at 08:38:35PM -0500, Jeff Squyres wrote:

> Failing that, is <device_name> guaranteed to be the same across
> reboots, and/or the info returned by ibv_get_device_info() guaranteed  
> to be in the same order?  (I suppose that I can use

Linux has a history of changing PCI discovery order from kernel
version to kernel version so without something enforcing order it
shouldn't be relied upon..

It is best to use something semi-fixed like the port GUID or regex
match of the pci id..

I guess ideally this would be done on boot by a script, if enough
information was exported in sysfs ..

local_cpus doesn't sound quite right either since I expect that
local_cpus will cover only some of the CPUs on a big machine. You
still need a distance weighting scheme to map out the rest :|

Jason




More information about the general mailing list