Hardware topology

Astrodog astrodog at gmail.com
Wed Oct 25 10:38:24 PDT 2006


On 10/25/06, David Xu <davidxu at freebsd.org> wrote:
> 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.
>

I'm working on tying this into memory location. Currently slogging
through the VM side of things. I'm expecting some usable patches to
come out in the next month or so.


More information about the freebsd-amd64 mailing list