Hardware topology

David Xu davidxu at freebsd.org
Wed Oct 25 05:13:42 PDT 2006


On Wednesday 25 October 2006 05:50, rondzierwa at comcast.net wrote:
> Does the amd64 kernel know anything about which memory is attached to
> which processor, and which i/o bus is attached to which hypertransport
> link? Can it use this information to do things like allocate pages to a
> process from the memory that is physically attached to the cpu upon which
> the process is running?  Along these lines, is there any way to set
> affinity between a process and a cpu (or set of cpu's in the case of
> multicore)?
>
> Likewise with i/o devices, if a process or device driver wants to operate a
> particular device, can it be set to run on the cpu that owns the
> hypertransport connection upon which the device is connected?
>
> thanks,
> ron.

There is no unique hardware topology structure in kernel,  but scheduler
has some APIs can bind thread to a specific CPU, though there is no any
syscall can let you do it. 

David Xu


More information about the freebsd-amd64 mailing list