From owner-freebsd-current@FreeBSD.ORG Mon Jul 2 19:03:06 2007 Return-Path: X-Original-To: freebsd-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 531FC16A46B for ; Mon, 2 Jul 2007 19:03:06 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id F2FDA13C4AE for ; Mon, 2 Jul 2007 19:03:05 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.101] (c-71-231-138-78.hsd1.or.comcast.net [71.231.138.78]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id l62J32d7028274 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Mon, 2 Jul 2007 15:03:03 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Mon, 2 Jul 2007 12:02:41 -0700 (PDT) From: Jeff Roberson X-X-Sender: jroberson@10.0.0.1 To: Thomas Sparrevohn In-Reply-To: <200707021956.01128.Thomas.Sparrevohn@btinternet.com> Message-ID: <20070702120147.F552@10.0.0.1> References: <20070701224452.I552@10.0.0.1> <499c70c0707020950p180d88e1q109b1a1c820d8283@mail.gmail.com> <200707021956.01128.Thomas.Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: New SCHED_SMP diff. 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: Mon, 02 Jul 2007 19:03:06 -0000 On Mon, 2 Jul 2007, Thomas Sparrevohn wrote: > On Monday 02 July 2007 17:50:44 Abdullah Ibn Hamad Al-Marri wrote: >> On 7/2/07, Jeff Roberson wrote: >>> I fixed a major bug in SCHED_SMP that impacted some users causing bad >>> performance and invalid load counts. Attilio also added support for i386 >>> based machines. I have tested on UP which works although INVARIANTS and >>> WITNESS don't work properly on UP kernels. Single processor SMP kernels >>> work fine. >>> >>> This diff also includes another patch that I intend to commit to current >>> which significantly improved write performance for mysql by removing >>> all use of Giant in fcntl(). >>> >>> Please report any stability or performance problems with this patch. The >>> more positive reports I get the more likely it will go into 7.0. >>> >>> Thanks, >>> Jeff >> >> Jeff, >> >> This makes my Intel C2D E6660 get really busy, and MySQL 5.0.41 from >> ports run faster :) >> >> Thanks for making such great SCHED, when will you make it in the tree? :) >> > > Hmm - Weird it gives negative results on my C2D XQ6700 - I ran four > tests using "make world" benchmark - I am using ZFS for all filesystems > except root - however I would not think that matters - I tested with "-j 8" > and "-j 4" but it did not change the overall result > Hi, can you try sysctl kern.sched.steal_busy=1? Please tell me if that improves things. This will resolve short-term load imbalances by stealing threads from other processors. Thanks, Jeff > > SCHED_SMP - rm -rf /usr/obj/* && /usr/bin/time -l make -j 4 buildworld > > 1272.53 real 2482.83 user 945.08 sys > 1268.45 real 2483.46 user 950.95 sys > 1274.19 real 2481.91 user 953.19 sys > 1292.27 real 2482.59 user 957.37 sys > > 2423814 voluntary context switches > 885934 involuntary context switches > > > SCHED_4BSD - rm -rf /usr/obj/* && /usr/bin/time -l make -j 4 buildworld > > 1125.28 real 2675.17 user 1055.18 sys > 1124.74 real 2684.95 user 1057.64 sys > 1123.76 real 2678.64 user 1061.89 sys > 1120.68 real 2676.78 user 1061.03 sys > > > 2587885 voluntary context switches > 708274 involuntary context switches > > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >