From owner-freebsd-questions@FreeBSD.ORG Wed Jan 10 12:47:10 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A8FB16A412 for ; Wed, 10 Jan 2007 12:47:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 09D3C13C45A for ; Wed, 10 Jan 2007 12:47:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0ACl90v000949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Jan 2007 04:47:09 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0ACl8TN000846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Jan 2007 04:47:09 -0800 Message-ID: <45A4E04C.5020902@u.washington.edu> Date: Wed, 10 Jan 2007 04:47:08 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070109) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1439.192.168.125.134.1168359685.squirrel@webmail.dfwlp.org> <200701101004.23651.pieter@degoeje.nl> In-Reply-To: <200701101004.23651.pieter@degoeje.nl> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.10.43433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: make.conf and building multiple kernels and worlds X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 12:47:10 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pieter de Goeje wrote: > On Tuesday 09 January 2007 17:21, Jonathan Horne wrote: >> i am finally looking at make.conf and how editing it could improve my >> system(s). >> >> 1) does specifying a cpu architecture really help? > It depends, but generally: yes. (although the perceived speed increase is > probably marginal) > It really helps when you are using programs which use a lot of floating point > operations. gcc is then able to use the faster sse2 instructions instead of > plain x87 instructions. > >> 2) if i am building for a p4-540 (nacona?), a p3, and a p4-xeon, what >> problems am i setting myself up for by specifying a cpu type on my build >> box? > You should choose the lowest common denominator: the p3 in this case. You'll > run into trouble if you build programs for a new processor and then run them > on an old one. > >> at this point, im wondering how to go about building for more than one >> architecture effectively. right now, i build one world, and 3 different >> kernels, but they are all build with generic options. >> >> just wondering how i can effectivly leverage my build server to have the >> best compile options for my target boxes. >> >> any suggestions? > The kernel probably won't be any faster, but in any case here's how: > #make CPUTYPE=pentium4 buildkernel > >> thanks, >> jonathan > Cheers, > Pieter In this case you may want to setup different /etc/make.conf files beforehand and just set /etc/make.conf as a symlink to the relevant make.conf for the architecture you are compiling for. There is also distcc to look into though for compiling across multiple machines (it's in ports). - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFpOBMEnKyINQw/HARAnf+AKCcpy9qqrzCjRnmRxUJAkoK41UnJwCeMvz6 7UrCHtaXN9CMTlRXGHUDuJA= =tCOQ -----END PGP SIGNATURE-----