Date: Tue, 15 Jan 2008 14:34:28 -0500 From: Chuck Robey <chuckr@chuckr.org> To: Chuck Swiger <cswiger@mac.com> Cc: =?ISO-8859-1?Q?Christoffer_Str=F6mblad?= <cs@wa-sp.com>, freebsd-ports@freebsd.org Subject: Re: Compiling utilizing multiple CPUs Message-ID: <478D0AC4.5080601@chuckr.org> In-Reply-To: <4EA98CBC-8BE3-4195-82A7-3E63C0D70593@mac.com> References: <478BF671.7010104@wa-sp.com> <4EA98CBC-8BE3-4195-82A7-3E63C0D70593@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck Swiger wrote: > On Jan 14, 2008, at 3:55 PM, Christoffer Strömblad wrote: >> Having looked through much of the available documentation one thing >> continues to elude me... Is it possible to specify globally how many >> CPUs are available when compiling a port? When I compile a port now it >> seems as if only one CPU is used, even though more are available. > > The quality of the Makefiles or similar used by individual ports varies, > and many of them are not safe to compile in a multithreaded fashion. > You can set "MAKEFLAGS=-j3" or similar in your environment, but it's > really not recommended. > I think it's necessary to tell why its not recommend it: because many makefiles are insufficiently sedt up to correctly allow multiple cpu's to work side by side. the make(7) utility itself uses the j flag correctly, and I have had many correct items correctly compiled. You just need to understand the makefiles very carefully, and not try the multiple makefile trick without being certain of your makefile. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHjQrEz62J6PPcoOkRAs4iAJ0UB5qW2yHAGwwCMCA26ACqlEc/BQCfdgFH e1dXbLby+3TkyGxuT7J5MZY= =Jmwk -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478D0AC4.5080601>