From owner-freebsd-performance@FreeBSD.ORG Sat Nov 3 03:30:36 2007 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2C2316A421 for ; Sat, 3 Nov 2007 03:30:36 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 658C113C48E for ; Sat, 3 Nov 2007 03:30:35 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so1959153pyb for ; Fri, 02 Nov 2007 20:30:15 -0700 (PDT) Received: by 10.35.27.1 with SMTP id e1mr2790016pyj.1194053998073; Fri, 02 Nov 2007 18:39:58 -0700 (PDT) Received: by 10.35.110.17 with HTTP; Fri, 2 Nov 2007 18:39:58 -0700 (PDT) Message-ID: <8cb6106e0711021839i4714bdfbh74d412b3e14e808@mail.gmail.com> Date: Fri, 2 Nov 2007 21:39:58 -0400 From: "Josh Carroll" To: "Jeff Roberson" In-Reply-To: <20071102150028.R544@10.0.0.1> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8cb6106e0710230902x4edf2c8eu2d912d5de1f5d4a2@mail.gmail.com> <20071024111105.M598@10.0.0.1> <8cb6106e0710241229i12852d8cq436f4c955ac62c56@mail.gmail.com> <20071024133240.X598@10.0.0.1> <8cb6106e0710251925s2db0117cvcb67321b08d7b2a1@mail.gmail.com> <20071102102331.G544@10.0.0.1> <8cb6106e0711021306w10c48a15s99eab526064ac814@mail.gmail.com> <20071102150028.R544@10.0.0.1> Cc: freebsd-performance@freebsd.org Subject: Re: ULE vs. 4BSD in RELENG_7 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 03:30:36 -0000 > Thank you, that was very useful. I may have something to test very soon. Sounds great Jeff, just say the word when you need someone to do the testing. I'll be glad to help! > What would be interesting to know is if the sum of the temperatures is any > different. 4BSD gets a much more random distribution of load because a > thread is run on whatever cpu context switches next. ULE will have > specific load patterns since it scans lists of cpus in a fixed order to > assign load. That seems to correlate with what I'm seeing, since the core that is "spiking" is cpu0. I will write a little perl script to calculate the sum periodically and record that. You're right, the one core may be increasing 1-2 C periodically, but the other cores may remain lower. I can definitely get you some numbers here. So I went ahead and ran sysbench to see if changing the kern.sched.slice value affected that (which I hear is a much more accurate benchmark of real world MySQL performance than, say, supersmack). There is a slight hit with the lower slice value, though it's minimal. Although with 4 threads, the lower slice value actually increases performance slightly. Here are the results (with 4BSD as a baseline): 4bsd ule.13 ule.7 2263.6 2250.36 2265.67 2181.18 2310.02 2300.25 2137.87 2304.04 2269.54 2100.41 2252.04 2249.26 buildworld isn't cooperating for me, but once I iron that out, I'll post some results there as well :) Thanks once again for all your efforts Jeff. I (and I'm sure others) really appreciate your work. Regards, Josh