From owner-freebsd-performance@FreeBSD.ORG Sun Nov 4 23:51:23 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 49EBF16A421 for ; Sun, 4 Nov 2007 23:51:23 +0000 (UTC) (envelope-from freebsd@superhero.nl) Received: from superman.superhero.nl (superhero.nl [82.95.198.17]) by mx1.freebsd.org (Postfix) with ESMTP id 9171613C49D for ; Sun, 4 Nov 2007 23:51:22 +0000 (UTC) (envelope-from freebsd@superhero.nl) Received: (qmail 37409 invoked by uid 80); 4 Nov 2007 23:50:46 -0000 Received: from robin.ad.superhero.nl ([10.202.77.103]) (SquirrelMail authenticated user gelsemap) by webmail.superhero.nl with HTTP; Mon, 5 Nov 2007 00:50:46 +0100 (CET) Message-ID: <3769.10.202.77.103.1194220246.squirrel@webmail.superhero.nl> In-Reply-To: <20071104132540.S544@10.0.0.1> References: <1698.10.202.77.103.1194211291.squirrel@webmail.superhero.nl> <20071104132540.S544@10.0.0.1> Date: Mon, 5 Nov 2007 00:50:46 +0100 (CET) From: "Gelsema, P \(Patrick\) - FreeBSD" To: "Jeff Roberson" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Mailman-Approved-At: Mon, 05 Nov 2007 01:36:18 +0000 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 List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 23:51:23 -0000 On Sun, November 4, 2007 22:27, Jeff Roberson wrote: > On Sun, 4 Nov 2007, Gelsema, P (Patrick) - FreeBSD wrote: > >> Hi Jeff, >> >> I tried your patch. Ran a buildkernel, timed. Recompiled kernel >> including >> your patch, rebooted and reran. Please find results below. >> >> w/o patch >> hulk# time make -j8 buildkernel >> 837.808u 138.167s 10:28.96 155.1% 6349+1349k 2873+7780io 303pf+0w >> >> w patch >> hulk# time make -j8 buildkernel >> 838.554u 168.316s 10:52.10 154.4% 6263+1332k 6489+7791io 11pf+0w >> >> I only understand the 10:52 seconds thing, but it looks like it's >> stressing less and still getting things done. >> > > Well this doesn't look very good at all. System time increased by 30 > seconds! Must be too many extra context switches. The minimum slice > value is probably too small and you've got an average of 4 threads > per-core. > > Can you try re-running with kern.sched.slice_min = 4 and kern.sched.slice > = 12 ? > > Can you tell me how 4BSD does on this machine? ULE w/o patch hulk# time make -j8 buildkernel 837.808u 138.167s 10:28.96 155.1% 6349+1349k 2873+7780io 303pf+0w ULE w latest patch hulk# time make -j8 buildkernel 846.008u 144.377s 10:41.28 154.4% 6364+1354k 7131+7890io 216pf+0w kern.sched.interact: 30 kern.sched.slice_min: 2 kern.sched.slice: 8 kern.sched.name: ULE ULE w latest patch (changed slice) hulk# time make -j8 buildkernel 840.783u 159.639s 10:37.41 156.9% 6280+1338k 656+8025io 0pf+0w kern.sched.slice_min: 4 kern.sched.slice: 12 kern.sched.name: ULE 4BSD hulk# time make -j8 buildkernel 823.898u 136.524s 9:50.61 162.6% 6263+1334k 7098+7774io 216pf+0w Seems 4BSD wins when it compares to buildkernel. Please let me know if you want me to run other tests. System is: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (2511.47-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x60fb1 Stepping = 1 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 usable memory = 3527241728 (3363 MB) avail memory = 3411648512 (3253 MB) Cheers Patrick > > Thanks, > Jeff > > >> System is AMD Athlon X264 2.2Ghz >> >> Kernel is GENERIC. >> hulk# uname -a >> FreeBSD hulk.superhero.nl 7.0-BETA2 FreeBSD 7.0-BETA2 #0: Sun Nov 4 >> 20:30:23 UTC 2007 >> root@hulk.superhero.nl:/usr/obj/usr/src/sys/GENERIC >> amd64 >> >> I see you have a new patch. Could you send that to me? When I download >> it >> from the mailman site I get weird characters in the downloaded file :( >> >> Cheers >> >> Patrick >> >