From owner-freebsd-current@FreeBSD.ORG Tue Jul 17 18:57:37 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D048E16A409 for ; Tue, 17 Jul 2007 18:57:37 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id AFC8413C4A8 for ; Tue, 17 Jul 2007 18:57:37 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn01.u.washington.edu (hymn01.u.washington.edu [140.142.8.55]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l6HIvUWB029592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Jul 2007 11:57:30 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn01.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l6HIvUVf023132; Tue, 17 Jul 2007 11:57:30 -0700 X-Auth-Received: from [192.55.52.10] by hymn01.u.washington.edu via HTTP; Tue, 17 Jul 2007 11:57:30 PDT Date: Tue, 17 Jul 2007 11:57:30 -0700 (PDT) From: youshi10@u.washington.edu To: Jeff Roberson In-Reply-To: <20070717114147.J92541@10.0.0.1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.2.304607, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.17.113833 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __C230066_P2 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Cc: lveax , current@freebsd.org, Claus Guttesen Subject: Re: ULE/SCHED_SMP diff for 7.0, buildkernel & thanks. 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, 17 Jul 2007 18:57:37 -0000 On Tue, 17 Jul 2007, Jeff Roberson wrote: > With regards to buildkernel times; I do not want to sacrafice performance on > other benchmarks to improve buildkernel. The problem is that 4BSD is as > agressive as possible at scheduling work on idle cores. This behavior that > helps one buildworld hurts on other, in my opinion, more important benchmarks. > > For example: http://people.freebsd.org/~jeff/sysbench.png > > ULE is 33% faster than SCHED_4BSD at this mysql test. This is a direct result > of prefering to idle to make more efficient scheduling decisions. ULE is also > faster at various networking benchmarks for similar reasons. > > I also believe that while the real time may be slower on buildworld the system > and user time will be smaller by a degree greater than the delta in real time. > This means that while you're building packages you have a little more cpu time > leftover to handle other tasks. Furthermore, as the number of cores goes up > things start to tip in favor of ULE although this is somewhat because it's > harder for even 4BSD to keep them busy due to disk bandwidth. > > Thanks everyone for testing. Can someone confirm that they have tested with > x86 rather than amd64? I will probably commit later today. > > Thanks, > Jeff > > On Tue, 17 Jul 2007, Claus Guttesen wrote: > >>> > sched_ule: >>> > >>> > -j 3 buildkernel: 13:23 >>> > -j 4 buildkernel: 12:38 >>> > -j 5 buildkernel: 12:41 >>> > -j 6 buildkernel: 12:47 >>> > >>> > sched_4bsd: >>> > -j 3 buildkernel: 11:43 >>> > -j 4 buildkernel: 12:02 >>> > >>> > So sched_ule seems to handle more processes slightly better than 4bsd >>> > albeit it does it slower. ule's sweet spot is -j 4 and 4bsd is -j 3. >>> > >>> >>> 4bsd vs ULE >>> >>> -j 3 buildkernel: 11:43 vs -j 3 buildkernel: 13:23 >>> >>> -j 4 buildkernel: 12:02 vs -j 4 buildkernel: 12:38 >>> >>> >>> ULE is always slower? >> >> In my case yes. >> >> -- >> regards >> Claus >> >> When lenity and cruelty play for a kingdom, >> the gentlest gamester is the soonest winner. >> >> Shakespeare I need to sync my kernel sources on my i386 desktop, but yeah I'll give it a round tonight. -Garrett