Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2006 20:13:38 +0800
From:      David Xu <davidxu@freebsd.org>
To:        freebsd-amd64@freebsd.org
Cc:        rondzierwa@comcast.net
Subject:   Re: Hardware topology
Message-ID:  <200610252013.38119.davidxu@freebsd.org>
In-Reply-To: <102420062150.6756.453E8A9D000980D700001A6422007613940E999D0A07960B02019D@comcast.net>
References:  <102420062150.6756.453E8A9D000980D700001A6422007613940E999D0A07960B02019D@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 25 October 2006 05:50, rondzierwa@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610252013.38119.davidxu>