From owner-cvs-all@FreeBSD.ORG Mon Feb 2 15:20:37 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6007216A4CE; Mon, 2 Feb 2004 15:20:37 -0800 (PST) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DC9843D3F; Mon, 2 Feb 2004 15:20:35 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (udsl-3-062.QLD.dft.com.au [202.168.108.62])i12NKWuh038718; Tue, 3 Feb 2004 10:20:33 +1100 (EST) (envelope-from andyf@speednet.com.au) Received: from [172.22.2.33] ([172.22.2.33])i12NKVcr014433; Tue, 3 Feb 2004 09:20:32 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Tue, 3 Feb 2004 09:20:30 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Bruce Evans In-Reply-To: <20040202215735.O2387@gamplex.bde.org> Message-ID: <20040203064328.M53353@hewey.af.speednet.com.au> References: <200401282044.i0SKi8Y6063747@repoman.freebsd.org> <20040202175017.W1579@gamplex.bde.org> <20040202215735.O2387@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: John Baldwin Subject: Re: cvs commit: src/sys/i386/i386 apic_vector.s src/sys/i386/isa atpic_vector.s X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 23:20:37 -0000 Bruce Evans wrote: > Bah, the benchmark that gave these results was very buggy. Here is a > better version. Results first (for a random pattern to simulate 75% of > interrupts coming drom userland): Thank you Bruce for a most excellent explanation. You're indepth knowledge is invaluable! It seems that the best "way" depends on your cpu. I ran your benchmark on several boxes I have here. Here are the results in case you're interested: box 1 - dual Pentium 133MHz (old -current, SCHED_ULE, WITNESS, INVARIANTS) FreeBSD 5.2-CURRENT #1: Wed Jan 14 01:01:48 EST 2004 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium/P54C (132.00-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x3bf FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Intel Pentium detected, installing workaround for F00F bug newway oldway newwayfix1 newwayfix2 run 1: 81632862 76581818 80754520 83012440 run 2: 81615364 76597496 80690176 83021998 run 3: 81602834 76905848 80702088 83024774 state average 0.750 box 2 - quad Pentium Pro 200MHz (-current, SCHED_ULE, no WITNESS/INVARIANTS) FreeBSD 5.2-CURRENT #0: Tue Feb 3 07:20:56 EST 2004 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium Pro (198.95-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 Features=0xfbff FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs run 1: 195867711 196066980 196889051 196618417 run 2: 195794028 196157055 196451690 196151350 run 3: 195784692 195967221 195984615 196410787 state average 0.750 box 3 - single Pentium Pro 200MHz (4.9-release) FreeBSD 4.9-RELEASE-p1 #1: Fri Nov 28 22:05:48 EST 2003 Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 199740088 Hz CPU: Pentium Pro (199.74-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 Features=0xf9ff run 1: 185314554 186588693 177427347 177493554 run 2: 185846418 185793670 178317400 176717967 run 3: 186362963 185661694 178136376 176700259 state average 0.750 %%% Comparing box 2 and 3 (both PPro-200) must show the difference between 4.9 and 5.2, but why does newwayfix[12] have an effect only on 4.9? -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/