Re: Compiling utilizing multiple CPUs
-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- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling utilizing multiple CPUs
On Jan 15, 2008, at 11:34 AM, Chuck Robey wrote: 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. Well, didn't I just say that above? I assure you that not safe to compile in a multithreaded fashion means pretty much the same thing as not set up to correctly allow multiple CPU's to work side by side. :-) Regards, -- -Chuck ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling utilizing multiple CPUs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'll give your program a go, it looks promising. It will be tested on a Quad-core Xeon CPU system. Even though compiling using several CPUs is not essential, it would just be nice to try and take advantage of what I've got. Will let you know how I get on with ports+. Thanks, Chris Yoshihiro Ota skrev: | Yes, there is. | | Take a look at http://uyota.asablo.jp/blog/cat/portsplus/. | | I have written the program and finally came to a satisfying stage. | I was thinking to seek for testers after writing some more tips | and examples. | | You can give a try. | | I've been using/developing it for a half year. | | Hiro | | On Tue, 15 Jan 2008 00:55:29 +0100 | Christoffer Strömblad [EMAIL PROTECTED] wrote: | | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | Hi, | | I've recently begun to explore the world of FreeBSD and all its | wonderful things. (Who thought it would even be possible to actually get | excited about a port upgrade?) | | 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. | | My apologies if I am missing something obvious, but I've tried to the | best of my abilities to find the answer but without success. | | Many thanks, | Chris - -- Christoffer Stromblad CEO, WASP Tel: 44(0)207 043 5190 http://www.wa-sp.com Pub-key: http://www.wa-sp.com/public_keys/cs_wa-sp.com.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHjRNlUBO5v5qUXoMRArrgAKDBpqDUGjDmIyAoNIHtKhwmDcgPMACZAX3v RfW03IvxEbhQZVFGKlvrirM= =hUye -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling utilizing multiple CPUs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yeah I figured that I would be able to pass the -j flag to make but was curious of whether it was possible to do globally. I realize that some ports might not be particularily happy about it. Let's introduce another ports flag for safe multithread compiling, MULTISAFE= YES ;) If the flag is set to no it will default to just one job, otherwise utilize whatever the value is of -j. Anyways, thanks for your reply. Chuck Swiger skrev: | 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. | - -- Christoffer Stromblad CEO, WASP Tel: 44(0)207 043 5190 http://www.wa-sp.com Pub-key: http://www.wa-sp.com/public_keys/cs_wa-sp.com.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHjRRHUBO5v5qUXoMRAuA9AKC4cYkLwGkW5m3dc/Gfje4rUyn//gCdGyhs 1lk8H0U7FB6ulJe3pJ3Tg3g= =j2QV -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Compiling utilizing multiple CPUs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've recently begun to explore the world of FreeBSD and all its wonderful things. (Who thought it would even be possible to actually get excited about a port upgrade?) 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. My apologies if I am missing something obvious, but I've tried to the best of my abilities to find the answer but without success. Many thanks, Chris - -- Christoffer Stromblad CEO, WASP Tel: 44(0)207 043 5190 http://www.wa-sp.com Pub-key: http://www.wa-sp.com/public_keys/cs_wa-sp.com.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHi/ZxUBO5v5qUXoMRAlXkAJ9NvafkRUrf5F7f7pNlCcVv6a0sUQCdEN5c 7+77bNWlDUBo91tjPasakCc= =MKNS -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling utilizing multiple CPUs
Yes, there is. Take a look at http://uyota.asablo.jp/blog/cat/portsplus/. I have written the program and finally came to a satisfying stage. I was thinking to seek for testers after writing some more tips and examples. You can give a try. I've been using/developing it for a half year. Hiro On Tue, 15 Jan 2008 00:55:29 +0100 Christoffer Strömblad [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've recently begun to explore the world of FreeBSD and all its wonderful things. (Who thought it would even be possible to actually get excited about a port upgrade?) 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. My apologies if I am missing something obvious, but I've tried to the best of my abilities to find the answer but without success. Many thanks, Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED]