Re: how to speed up port make??
A few things you could try adding to make.conf: FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 I'm not sure this is supported on a _single_ core Pentium 4 CPU (or will gain speed if it was emulated). MAKE_JOBS_NUMBER=2 make sense - one process I/O may overlap with other compute ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Friday, 27 July 2012 09:22:52 Wojciech Puchar wrote: A few things you could try adding to make.conf: FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 I'm not sure this is supported on a _single_ core Pentium 4 CPU (or will gain speed if it was emulated). MAKE_JOBS_NUMBER=2 make sense - one process I/O may overlap with other compute Also, with portbuilder it splits the build process so will fetch (network limited) on port's files while it builds another (CPU limited) and installs another (I/O limited). signature.asc Description: This is a digitally signed message part.
Re: how to speed up port make??
Hello, On Jul 25, 2012 7:34 PM, Chad Perrin per...@apotheon.com wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. Ha-ha... Ah those were the days..., but does anyone remember the old way of building the kernel in the 2.2.8 days? I was just getting started doing the basic system setup/admin things in those days. Back then (1998 or so) I did not have access to broadband, so I did not even update the sources back then, but I knew that it was a good idea to remove devices from the GENERIC kernel that I did not have--thanks to the book by Greg Lehey. (Even though the version of The Complete FreeBSD I bought is so out of date I cannot bring myself to throw it away--it was my guide back in those days.) Does anyone else remember The Complete FreeBSD? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On 25 July 2012, at 23:04, Ryan Noll wrote: Hello, On Jul 25, 2012 7:34 PM, Chad Perrin per...@apotheon.com wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. Ha-ha... Ah those were the days..., but does anyone remember the old way of building the kernel in the 2.2.8 days? I was just getting started doing the basic system setup/admin things in those days. Back then (1998 or so) I did not have access to broadband, so I did not even update the sources back then, but I knew that it was a good idea to remove devices from the GENERIC kernel that I did not have--thanks to the book by Greg Lehey. (Even though the version of The Complete FreeBSD I bought is so out of date I cannot bring myself to throw it away--it was my guide back in those days.) Does anyone else remember The Complete FreeBSD? Its sitting in my bookshelf. Its pretty worn out though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
Mr U wrote: is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours 1. You can use devel/ccache to cache compiled data. This way when you are compiling anything for a second time you'll get a big speed boost. Consider compiling kernel+world in 1 hour instead of 8 hours. 1a. If using clang setenv CCACHE_CPP2. 2. Try switching to clang, it has lower memory requirements and compilation speed. Be ready to disable it for some ports that have nonstandard code. 2a. Don't try to build world with clang if you need wine/openoffice/libreoffice. They are known not to work on a world built with clang. 3. Use tmpfs for port building. I always use a big swap and point WRKSRCDIR to /tmp/ports. 4. Finetune your compilation flags. The safest way to select one is to run `(gcc|gcc46|clang) -E -v -march=native - /dev/null` and select the lowest -march value then write it down to /etc/make.conf as CPUTYPE. 5. Use port management tools like portmaster. When building big ports it will split building down to individual ports cleaning disk between builds. This keeps cache from holding temporary files. -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
2. Try switching to clang, it has lower memory requirements and compilation this is simply not true. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
Wojciech Puchar wrote: 2. Try switching to clang, it has lower memory requirements and compilation this is simply not true. This is simply not the point. Let's not start it again. The question was clearly about compilation speed where clang outperforms gcc by far. As for execution speed for now there's no clear winner: http://www.phoronix.com/scan.php?page=news_itempx=MTA5Nzc -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
-Original Message- From: Reko Turja Sent: Thursday, July 26, 2012 12:12 PM To: Wojciech Puchar Subject: Re: how to speed up port make?? -Original Message- From: Wojciech Puchar 2. Try switching to clang, it has lower memory requirements and compilation this is simply not true. Clang is far faster when compiling code than GCC, which you would know if you tried it, instead of living in your opinionated la-la land. -Reko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wednesday, 25 July 2012 17:02:37 Mr U wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours A few things you could try adding to make.conf: FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 Also, you could try ports-mgmt/portbuilder as it handles concurrent building of ports. Regards signature.asc Description: This is a digitally signed message part.
Re: how to speed up port make??
On Wed, Jul 25, 2012 at 11:04:27PM -0700, Ryan Noll wrote: Hello, On Jul 25, 2012 7:34 PM, Chad Perrin per...@apotheon.com wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. Ha-ha... Ah those were the days..., but does anyone remember the old way of building the kernel in the 2.2.8 days? I was just getting started doing the basic system setup/admin things in those days. Back then (1998 or so) I did not have access to broadband, so I did not even update the sources back then, but I knew that it was a good idea to remove devices from the GENERIC kernel that I did not have--thanks to the book by Greg Lehey. (Even though the version of The Complete FreeBSD I bought is so out of date I cannot bring myself to throw it away--it was my guide back in those days.) Does anyone else remember The Complete FreeBSD? I have the fourth edition. I imagine that's not as old as yours. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Thu, 26 Jul 2012 11:36:18 +0200, David Naylor wrote: On Wednesday, 25 July 2012 17:02:37 Mr U wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours A few things you could try adding to make.conf: FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 I'm not sure this is supported on a _single_ core Pentium 4 CPU (or will gain speed if it was emulated). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wed, 25 Jul 2012, Ryan Noll wrote: Does anyone else remember The Complete FreeBSD? I'm looking right at it on the shelf here. Second Edition - over 1750 pages!. It is *bristling* with post-it notes used as bookmarks. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging / ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
You could use pkg_add -r xorg to get it and all of its dependencies installed. I usually use that, in combination with ccache to speed up compiles called by portupgrade. Brian On Jul 25, 2012 8:38 AM, Mr U mru...@yahoo.com wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours thank you all mru Sent from Yahoo! Mail on Android ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours Humorous answer: Yes - get a more powerful computer. Robert Huff real answer - get binary packages. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours 2 hours only?? Try lang/gcc46 or 47 or science/paraview This will keep your electronic helper busy for a day. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wed, Jul 25, 2012 at 08:11:50PM +0100, Anton Shterenlikht wrote: is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours 2 hours only?? Try lang/gcc46 or 47 or science/paraview This will keep your electronic helper busy for a day. It's also rather obvious that he never did this on a P1 at 90Mhz. KDK ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
Anton Shterenlikht writes: i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours 2 hours only?? Try lang/gcc46 or 47 or science/paraview snort I beiieve the winner is OpenOffice and its kindred; still compiling after 2.75 hours on 4x3ghz and 8gbytes memory. The various Javas also take a while Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
Robert Huff roberth...@rcn.com writes: Mr U writes: is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours Humorous answer: Yes - get a more powerful computer. or even just build on a more powerful computer... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wed, 25 Jul 2012 08:02:37 -0700 (PDT), Mr U wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours That's a fully normal make time on such a system. I've been experiencing it on FreeBSD 5 and 7 (with ATA disks and 768 MB SDR-SDRAM). There is no real way to speed it up, except to replace the hard disk with a SSD. But that's only for I/O, not for compiling itself. You also won't benefit from using the -j parameter (maximum number of jobs), because the P4 does not seem to support it. There's not much you can do to improve the system performance. You _can_ few things to streamline the system, but that won't be a _significant_ change. Plan your builds to take place when you don't use the system interactively, or use the nice command to give building a lower priority. It will last longer, but can be run in the background without noticing it. Don't complain about build times until you compile world and kernel on a 150 MHz Pentium 1 with 64 MB RAM. :-) To give you some impressions of real-work build times, see those examples: FreeBSD 5, 500 MHz P2 system: # make buildkernel KERNCONF 1:11 # make buildworld 3:54 FreeBSD 5, 2 GHz P4 system: # make buildworld buildkernel 2:13 # make buildworld 1:58 # make buildkernel KERNCONF=* 0:25 # make installkernel KERNCONF=* 30s On the same system: A portupgrade of XFree86 server: 2:12 And mplayer including nearly all options: 1:19 FreeBSD 7, 2 GHz P4 system: # make buildkernel KERNCONF=* 1:05 # make buildworld 3:54 Even worse: # time make buildkernel KERNCONF=* -D USBDEBUG 18232.967u 2427.404s 7:19:49.24 78.2% 391+379k 47250+5754io 3049pf+0w # time make buildworld buildkernel KERNCONF=* 18992.839u 2569.146s 9:12:00.28 65.1% 927+762k 25593+6358io 2506pf+0w (No idea how I got _that_ time!) # time make buildworld buildkernel KERNCONF=* 17272.243u 2294.595s 6:01:33.44 90.1% 24+204k 34888+6367io 2911pf+0w 18541.285u 2596.192s 6:19:33.55 92.8% 498+327k 31247+7302io 3034pf+0w 19725.009u 2882.355s 7:39:11.57 82.0% -875+548k 44987+6963io 2950pf+0w -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: how to speed up port make??
Got you beat. Compiled world on a 100MHz Pentium with 40 MB of RAM. I gave up after 4 days and just went with prebuilt after that. -Sean -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Polytropon Sent: Wednesday, July 25, 2012 6:54 PM To: Mr U Cc: freebsd-questions@freebsd org Subject: Re: how to speed up port make?? On Wed, 25 Jul 2012 08:02:37 -0700 (PDT), Mr U wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours That's a fully normal make time on such a system. I've been experiencing it on FreeBSD 5 and 7 (with ATA disks and 768 MB SDR-SDRAM). There is no real way to speed it up, except to replace the hard disk with a SSD. But that's only for I/O, not for compiling itself. You also won't benefit from using the -j parameter (maximum number of jobs), because the P4 does not seem to support it. There's not much you can do to improve the system performance. You _can_ few things to streamline the system, but that won't be a _significant_ change. Plan your builds to take place when you don't use the system interactively, or use the nice command to give building a lower priority. It will last longer, but can be run in the background without noticing it. Don't complain about build times until you compile world and kernel on a 150 MHz Pentium 1 with 64 MB RAM. :-) To give you some impressions of real-work build times, see those examples: FreeBSD 5, 500 MHz P2 system: # make buildkernel KERNCONF 1:11 # make buildworld 3:54 FreeBSD 5, 2 GHz P4 system: # make buildworld buildkernel 2:13 # make buildworld 1:58 # make buildkernel KERNCONF=* 0:25 # make installkernel KERNCONF=* 30s On the same system: A portupgrade of XFree86 server: 2:12 And mplayer including nearly all options: 1:19 FreeBSD 7, 2 GHz P4 system: # make buildkernel KERNCONF=* 1:05 # make buildworld 3:54 Even worse: # time make buildkernel KERNCONF=* -D USBDEBUG 18232.967u 2427.404s 7:19:49.24 78.2% 391+379k 47250+5754io 3049pf+0w # time make buildworld buildkernel KERNCONF=* 18992.839u 2569.146s 9:12:00.28 65.1% 927+762k 25593+6358io 2506pf+0w (No idea how I got _that_ time!) # time make buildworld buildkernel KERNCONF=* 17272.243u 2294.595s 6:01:33.44 90.1% 24+204k 34888+6367io 2911pf+0w 18541.285u 2596.192s 6:19:33.55 92.8% 498+327k 31247+7302io 3034pf+0w 19725.009u 2882.355s 7:39:11.57 82.0% -875+548k 44987+6963io 2950pf+0w -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wed, 25 Jul 2012 18:59:56 -0400, Sean Cavanaugh wrote: Got you beat. Compiled world on a 100MHz Pentium with 40 MB of RAM. I think I can: FreeBSD 4 on a Pentium 1 with 64 MB EDO RAM. The make buildworld took 24 hours. The kernel itself, if I remember correctly, required 3-5 hours, of course without much tweaking. :-) I gave up after 4 days and just went with prebuilt after that. Precompiled packages are very helpful on such systems. Only top level ports that _need_ compiling should be touched (e. g. mplayer due to the options). With today's FreeBSD OS, you can do many things by control files (loader.conf et al.) which previously required at least rebuilding the kernel (e. g. firewall, divert). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
From owner-freebsd-questi...@freebsd.org Wed Jul 25 16:34:22 2012 From: Robert Huff roberth...@rcn.com Date: Wed, 25 Jul 2012 17:31:14 -0400 To: freebsd-questions@freebsd.org Subject: Re: how to speed up port make?? Anton Shterenlikht writes: i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours 2 hours only?? Try lang/gcc46 or 47 or science/paraview snort I beiieve the winner is OpenOffice and its kindred; still compiling after 2.75 hours on 4x3ghz and 8gbytes memory. The various Javas also take a while A standard-techniques -build of just a custom kernel (FBSD 6) took me over TWENTY hours On a 80486/dx2 with 64 megs of Ram. I didn't even -think- about 'buildworld'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wed, Jul 25, 2012 at 08:41:15PM -0400, kpn...@pobox.com wrote: On Thu, Jul 26, 2012 at 01:06:33AM +0200, Polytropon wrote: On Wed, 25 Jul 2012 18:59:56 -0400, Sean Cavanaugh wrote: Got you beat. Compiled world on a 100MHz Pentium with 40 MB of RAM. I think I can: FreeBSD 4 on a Pentium 1 with 64 MB EDO RAM. The make buildworld took 24 hours. The kernel itself, if I remember correctly, required 3-5 hours, of course without much tweaking. :-) Luxury! I once compiled a custom kernel of NetBSD/i386 on a 486 with 8MB of RAM. I was stuck with the GENERIC kernel which took up over 6MB just to boot. It took over 40 days to finish. To be fair it didn't help that I had to move out of my apartment in the middle. So it took some time for make to refigure out where had been in the build. Heck, we used to compile gcc and watch movies. It took three movies to get through a full recursive compile of gcc. Yep, 6 hours. And then there was that occasion one night watching a guy logged into an Ultrix box: Raise your hand if you've ever seen 'ps' report that it had itself been swapped out. Yep, again. Ah, good times. I think I still have some memory _chips_ (zip scrams, not dips) around here somewhere You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
On Wed, Jul 25, 2012 at 08:33:36PM -0600, Chad Perrin wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. s/bar/bare/ Now let me tell you how we used to have to do our regexing. . . . -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org