From owner-freebsd-questions Tue Mar 20 20: 5:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from level3.dynacom.net (level3.dynacom.net [206.107.213.213]) by hub.freebsd.org (Postfix) with SMTP id E1E3237B730 for ; Tue, 20 Mar 2001 20:05:27 -0800 (PST) (envelope-from kstewart@urx.com) Received: (qmail 3419 invoked by uid 0); 21 Mar 2001 05:05:26 -0000 Received: from dsl1-160.dynacom.net (HELO urx.com) (206.159.132.160) by mail.urx.com with SMTP; 21 Mar 2001 05:05:26 -0000 Message-ID: <3AB82886.27BE3136@urx.com> Date: Tue, 20 Mar 2001 20:05:26 -0800 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: nomad@netrail.net Cc: freebsd-questions@freebsd.org Subject: Re: Making & forking processes to accomplish faster compiles References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Christian S." wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Greets, > I was told by a friend of mine that he had a way of "make"ing and > having some sort of option to fork the resultant processes so that > instead of 1 make process running, one could split it into 4 separate > processes that would accomplish the "make" faster. I read the man > page for make, but did not find anything really related to it, > although it is entirely possible that I could have missed it. If > someone could kindly point me to a URL or let me know if it was even > possible, I would appreciate it. I would ask the friend, but I have > since lost touch with him. See if the "-j4" parameter fits the description of what they did. BTW, that only works when the HD I/O is faster than the cpu. When the cpu is starved for I/O and you use a -j4, the build takes much longer. To test what it does do your buildworld using "time make -j4 buildworld". You have to time the build with out the -j4 and with the -j4. When I timed both, the results I saw were as follows: buildworld with files on 3 controllers and -j4 with softupdates 1539.114u 521.486s 45:54.82 74.7% 1209+1431k 48857+129907io 1858pf+0w buildworld with files on 3 controllers with softupdates and no -j4 1524.149u 431.967s 38:41.07 84.2% 1245+1453k 49804+11665io 1915pf+0w It is fairly repeatable. The build without -j4 was slightly faster for both u&s times, and it ran 17% faster by the wall clock. The system is an AMD 900 Thunderbird with 256MB of PC-133 memory and 3x30GB ATA-100 drives on separate controllers. I have a 2nd system with dual 866 coppermines and they will do a buildworld with -j4 in 34 minutes. Anything different compiles with a longer time. Kent > > Thanks! > Christian > > "...we have only twice as many genes as a fruit fly, or roughly the > same number as an ear of corn, about 30,000." > Ergo, we are all corn. > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 6.5.8 for non-commercial use > > iQA/AwUBOrgiTikK9qTvGvteEQIO1gCeLV9Fts96IMfhLUNheOp6jwow+vIAoLVJ > 4OKxfZC3XsJTnaVsNfAWWmc4 > =jzRH > -----END PGP SIGNATURE----- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message