Date: Wed, 10 Jan 2007 04:47:08 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-questions@freebsd.org Subject: Re: make.conf and building multiple kernels and worlds Message-ID: <45A4E04C.5020902@u.washington.edu> In-Reply-To: <200701101004.23651.pieter@degoeje.nl> References: <1439.192.168.125.134.1168359685.squirrel@webmail.dfwlp.org> <200701101004.23651.pieter@degoeje.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45A4E04C.5020902>