From owner-freebsd-current@FreeBSD.ORG Tue Feb 26 02:41:38 2008 Return-Path: Delivered-To: current@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CCCD16A401 for ; Tue, 26 Feb 2008 02:41:38 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6B1AF13C448; Tue, 26 Feb 2008 02:41:38 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from apple.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1Q2fZZs088961; Tue, 26 Feb 2008 02:41:37 GMT (envelope-from davidxu@freebsd.org) Message-ID: <47C37CAC.90806@freebsd.org> Date: Tue, 26 Feb 2008 10:42:52 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.9 (X11/20071211) MIME-Version: 1.0 To: Jeff Roberson References: <20080225161855.M920@desktop> In-Reply-To: <20080225161855.M920@desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@FreeBSD.org Subject: Re: Topology aware scheduling algorithm. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 02:41:38 -0000 Jeff Roberson wrote: > Also in the cpuset.diff at: > > http://people.freebsd.org/~jeff/cpuset.diff > > There is support for cpu topology aware scheduling. This allows the > scheduler to know which cores are colocated on packages and what the > cache arrangement between them is. > > We have seen big improvements in some workloads and some reduction in > other workloads. However, I believe this should finally close the gap > on the few benchmarks where ULE could trail 4BSD. Please prove me wrong > if you can so I can continue to make ULE better. > > Right now the MD code is slightly lagging behind what the scheduler can > utilize. If you have an interest in digging through processor > documentation to write code to detect more information about the caches > please contact me. I'd love some help. > > This code and the cpusets will likely be committed to 8.0 by the end of > the week and then we'll discuss MFCs after some time to settle there. > > Thanks, > Jeff FYI, sometimes ago, I have written some code to collect cpu topology information according to vendor's specifications, it is only for x86. each cpu just calls cpu_topology_update() at startup time, and the information will be collected. http://people.freebsd.org/~davidxu/sched/ note that these code have not been updated for AMD's 4-core package yet, I have not this cpu. Regards, David Xu