From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 9 13:20:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CCA416A4CE for ; Mon, 9 Feb 2004 13:20:55 -0800 (PST) Received: from hotmail.com (bay12-f37.bay12.hotmail.com [64.4.35.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85C9443D1D for ; Mon, 9 Feb 2004 13:20:55 -0800 (PST) (envelope-from jtumani55@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 9 Feb 2004 13:20:55 -0800 Received: from 161.44.73.59 by by12fd.bay12.hotmail.msn.com with HTTP; Mon, 09 Feb 2004 21:20:54 GMT X-Originating-IP: [161.44.73.59] X-Originating-Email: [jtumani55@hotmail.com] X-Sender: jtumani55@hotmail.com From: "Juan Tumani" To: freebsd-hackers@freebsd.org Date: Mon, 09 Feb 2004 16:20:54 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 Feb 2004 21:20:55.0214 (UTC) FILETIME=[9A553CE0:01C3EF52] X-Mailman-Approved-At: Tue, 10 Feb 2004 05:30:04 -0800 Subject: FreeBSD 5.2 v/s FreeBSD 4.9 MFLOPS performance (gcc3.3.3 v/s gcc2.9.5) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 21:20:55 -0000 Hi, I have an Intel D845GE m/b w/ a P4 1.7 CPU and I have the box setup to dual boot to either 4.9 or 5.2. Both OS are right off the latest posted iso CD image, i.e., no updates, no kernel tweaks, everything vanilla right out of the box. I compiled flops.c on both 4.9 and 5.2 and the 5.2 performance is less than half that of 4.9: 760 MFLOPS on 4.9 v/s 340 MFLOPS on 5.2. I tried turning off the SMP and other kernel tweaks and no improvement in 5.2. I then downloaded and installed gcc295 on the 5.2 machine and that fixed the problem. So now all I have to do is figure out the gcc 3.3.3 switches to make it run like gcc 2.9.5 or figure out how to rebuild 5.2 w/ gcc 2.9.5 :-). Anyone know what's going on w/ gcc 3.3.3 ? %gcc295 flops.c -o flops %./flops FLOPS C Program (Double Precision) Version 1.2, 29 Feb 1992 PI: Program = 3.14159265358999429 PI: Reference = 3.14159265358979312 PI: Error = 2.0117e-13 Area: Program = 0.50000000000008060 Area: Reference = 0.50000000000000000 Area: Error = 8.0602e-14 Iterations = 20000000 BenchTime(usec) = 0.0013 Scalar MFLOPS = 760.2353 %gcc flops.c -o flops %./flops FLOPS C Program (Double Precision) Version 1.2, 29 Feb 1992 PI: Program = 3.14159265358999429 PI: Reference = 3.14159265358979312 PI: Error = 2.0117e-13 Area: Program = 0.50000000000008060 Area: Reference = 0.50000000000000000 Area: Error = 8.0602e-14 Iterations = 20000000 BenchTime(usec) = 0.0029 Scalar MFLOPS = 339.4571 % _________________________________________________________________ Keep up with high-tech trends here at "Hook'd on Technology." http://special.msn.com/msnbc/hookedontech.armx