From owner-freebsd-current@FreeBSD.ORG Fri Sep 29 21:43:20 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B95716A416; Fri, 29 Sep 2006 21:43:20 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 109CD43D9A; Fri, 29 Sep 2006 21:42:59 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 24B645D66; Sat, 30 Sep 2006 01:42:58 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 042075C89; Sat, 30 Sep 2006 01:42:58 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k8TLgswH063000; Sat, 30 Sep 2006 01:42:54 +0400 (MSD) (envelope-from ru) Date: Sat, 30 Sep 2006 01:42:54 +0400 From: Ruslan Ermilov To: "M. Warner Losh" Message-ID: <20060929214254.GA62950@rambler-co.ru> References: <2fd864e0609290707t7e7d6e17g61a09ff5aa10ff3f@mail.gmail.com> <20060929.091414.74722768.imp@bsdimp.com> <20060929172657.Q74256@fledge.watson.org> <20060929.110942.1723237142.imp@bsdimp.com> <20060929182053.GG37741@rambler-co.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <20060929182053.GG37741@rambler-co.ru> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: astrodog@gmail.com, rwatson@FreeBSD.org, current@FreeBSD.org Subject: Re: lockf in installworld -- not a good idea X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 21:43:20 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2006 at 10:20:53PM +0400, Ruslan Ermilov wrote: > On Fri, Sep 29, 2006 at 11:09:42AM -0600, M. Warner Losh wrote: > [...] > > I tend to agree with that basic philosophy. From other items in the > > thread, it was clear this came up in the context of build release, > > which benefits from -j usually. The installworld phase in that should > > be as robust as possible as well, since otherwise we have issues with > > the actual release. Unless it is a big win (more than a few percent), > > I'd imagine the right fix is to the release target to not do a > > parallel installworld. I know that in the build scripts that I wrote > > in 3.x days and have ported forward since then I've never done a > > parallel install, due to it rarely working reliably in that (long) > > time span... > >=20 > They are safe to do nowadays. I'll do some measurements on real > SMP with the memory-based DESTDIR, and let you know the numbers. >=20 The data (real time seconds) was taken on the following system: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (1995.01-MHz K8-class C= PU) real memory =3D 4227792896 (4031 MB) avail memory =3D 4081033216 (3891 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Basically, doing installworld -jX doesn't make any sense. : x installworld-B : + installworld-j1 : +------------------------------------------------------------------------= --+ : |xxx + + = +| : ||A| |_MA__= _|| : +------------------------------------------------------------------------= --+ : N Min Max Median Avg Stdd= ev : x 3 40.21 40.82 40.53 40.52 0.305122= 93 : + 3 56.72 58.45 57.26 57.476667 0.885117= 69 : Difference at 95.0% confidence : 16.9567 +/- 1.50052 : 41.8476% +/- 3.70317% : (Student's t, pooled s =3D 0.662017) : x installworld-B : + installworld-j2 : +------------------------------------------------------------------------= --+ : |xx x + + = +| : ||A_| |___AM__= _|| : +------------------------------------------------------------------------= --+ : N Min Max Median Avg Stdd= ev : x 3 40.21 40.82 40.53 40.52 0.305122= 93 : + 3 55.17 57.29 56.44 56.3 1.06691= 14 : Difference at 95.0% confidence : 15.78 +/- 1.77852 : 38.9437% +/- 4.38924% : (Student's t, pooled s =3D 0.784666) : x installworld-B : + installworld-j4 : +------------------------------------------------------------------------= --+ : |xxx + + = + | : ||A| |_____A_M__= _|| : +------------------------------------------------------------------------= --+ : N Min Max Median Avg Stdd= ev : x 3 40.21 40.82 40.53 40.52 0.305122= 93 : + 3 59.44 63.28 62.18 61.633333 1.97750= 68 : Difference at 95.0% confidence : 21.1133 +/- 3.2069 : 52.106% +/- 7.91437% : (Student's t, pooled s =3D 1.41486) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFHZNeqRfpzJluFF4RAkjKAKCBD+nABOJc+OHkilG+jGqwaLOQawCghyHz yyWr4+JmVyq6kXoHT6fn3dY= =G/Fr -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--