From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 5 17:19:15 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B3DC1065670 for ; Mon, 5 Dec 2011 17:19:15 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C440A8FC0A for ; Mon, 5 Dec 2011 17:19:14 +0000 (UTC) Received: by ggnp1 with SMTP id p1so3285015ggn.13 for ; Mon, 05 Dec 2011 09:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=srDUeryq4kK96MWbnLGRIlDFE7BjMA+UslXUK4qLwS4=; b=vpZIGe8FWqfXH+uBdp7lRHrngFgXhzEHfWGZ5hyLv2vc+N9i1iz/QkqqI5hHgSo+LW UGSOHwExJallfgtUdFYcteNG522vPoXWO0kFj2bdaTDYg+ree5PczdvDUchiFHDiNMlL GQX0jj1jL/xjymOL6NpE6f4IKFhot8O7t8a54= MIME-Version: 1.0 Received: by 10.182.40.65 with SMTP id v1mr1927907obk.72.1323105554158; Mon, 05 Dec 2011 09:19:14 -0800 (PST) Received: by 10.182.62.227 with HTTP; Mon, 5 Dec 2011 09:19:14 -0800 (PST) In-Reply-To: <20111205.171654.020.1@DOMY-PC> References: <20111205.171654.020.1@DOMY-PC> Date: Mon, 5 Dec 2011 09:19:14 -0800 Message-ID: From: Garrett Cooper To: rank1seeker@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: CPUTYPE and friends, from 'make.conf' benchmark X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 17:19:15 -0000 2011/12/5 : > I've took machine and installed binary FreeBSD(amd64 8.2-p4 GENERIC) on i= t. > Then I've installed 'benchmarks/unixbench' port. > > So everything is a default generic binary install ('make.conf' empty - no= CPU optimization flags) > > After running: '# time unixbench', final score was: > =A0 =A0394.2 > Completed in 22.8 min > > > Then I've recompiled everything, from src, world and kernel, with 'make.c= onf': > -- > CPUTYPE?=3Dcore2 > CFLAGS+=3D-march=3Dnative > NO_CPU_CFLAGS=3Dyes > COPTFLAGS+=3D-march=3Dnative > NO_CPU_COPTFLAGS=3Dyes > -- > > After reboot, I've run: '# time unixbench', final score was: > =A0 =A0313.5 > Completed in 26.7 min > > I'm getting worse result, with optimized FreeBSD's binaries?!? > How come? Seems like -march=3Dnative is redundant. -Garrett