Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 11:13:43 +0900 (JST)
From:      Maho NAKATA <chat95@mac.com>
To:        naylor.b.david@gmail.com
Cc:        pgollucci@p6m7g8.com, itetcu@freebsd.org, pav@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: MAKE_JOBS_UNSAFE (some more ports)
Message-ID:  <20090526.111343.48515131.chat95@mac.com>
In-Reply-To: <200905252247.32725.naylor.b.david@gmail.com>
References:  <200905251003.15408.naylor.b.david@gmail.com> <20090525210125.1239c21e@it.buh.tecnik93.com> <200905252247.32725.naylor.b.david@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Tue_May_26_11_13_43_2009_896)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi David,

Thanks kudos for tough works and discussions!

David, is this the final patch which I should test?
Best,

From: David Naylor <naylor.b.david@gmail.com>
Subject: Re: MAKE_JOBS_UNSAFE (some more ports)
Date: Mon, 25 May 2009 22:47:29 +0200

> On Monday 25 May 2009 20:01:25 Ion-Mihai Tetcu wrote:
>> On Mon, 25 May 2009 10:03:12 +0200
>>
>> David Naylor <naylor.b.david@gmail.com> wrote:
>> > On Sunday 24 May 2009 21:37:45 Ion-Mihai Tetcu wrote:
>> > > On Sun, 24 May 2009 10:26:23 +0200
>> > >
>> > > David Naylor <naylor.b.david@gmail.com> wrote:
>> > > > On Sunday 24 May 2009 00:16:37 Maho NAKATA wrote:
>> > > > > Hi I tested it yesterday,
>> > > > >
>> > > > > 1.
>> > > > > I need
>> > > > >
>> > > > > > MAKE_JOBS_SAFE=        yes
>> > > > >
>> > > > > in the Makefile.
>> > > >
>> > > > Yes, you would need that.  I believe that will be default.
>> > > >
>> > > > > 2. with above patch, ooo2 doesn't launch parallele jobs.
>> > > >
>> > > > I spotted that problem after submitting the patch, if you
>> > > > explicitly set MAKE_JOBS_NUMBER to something it will work.
>> > > >
>> > > > The problem is that ooo2 does (in effect):
>> > > > .if (${MAKE_JOBS_NUMBER} > 1)
>> > > > # Stuff
>> > > > .else
>> > > > # Other stuff
>> > > > .endif
>> > > > and that doesn't work as expected with MAKE_JOBS_NUMBER=`sysctl
>> > > > kern.smp.cpus` as the command is not resolved.
>> > >
>> > > w/o patch
>> > > editors/openoffice.org-3	openoffice.org-3.1.0	4:53:27
>> > >
>> > > with patch:
>> > > + MAKE_JOBS_SAFE=	yes
>> > > + MAKE_JOBS_NUMBER=	4
>> > > + MAXPROCESSES?=	${MAKE_JOBS_NUMBER}
>> > > + MAXMODULES?=		${MAKE_JOBS_NUMBER}
>> > >
>> > > editors/openoffice.org-3	openoffice.org-3.1.0	48:51
>> > >
>> > > The build is done in
>> > > /dev/md0 on /usr/local/tinderbox/7-STABLE-FPT-NPD (ufs,
>> > > asynchronous, local, noatime)
>> >
>> > Wow, that is quite a speedup.  Is it even possible (4 * 60 + 53)/4 =
>> > 73, and you get 48 (that is 152% scaling efficiency).  This would
>> > mean a serious performance problem with the ooo3 build script and
>> > MAX* =1.
>> >
>> > I'll make a patch tonight (+10 hours) that will fix ooo2 in the
>> > default case. You can test ooo2 with patch and MAKE_JOBS_NUMBER
>> > preset (not using default value) and MAKE_JOBS_SAFE=yes.
>>
>> BTW, what about using the same vars for parallel building in all OOo
>> port?
>
> Done, the following patch uses MAKE_JOBS_NUMBER for all the variables in OOo.
>
> It also tries to be efficient when resolving the MAKE_JOBS_NUMBER to a value
> (only done when a port sets USE_MAKE_JOBS, as in the OOo2-RC and OOo2 case).
>
> This should fix OOo2* builds and support such use cases for other ports...

----Security_Multipart(Tue_May_26_11_13_43_2009_896)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEABECAAYFAkobUFcACgkQpcQqaPiEzflKFACfaJoGe5r+wmrUTEoMjSsvY13j
8QIAoKcutfvgMKmLcTnPPbDIyGDSJqHq
=jdZF
-----END PGP SIGNATURE-----

----Security_Multipart(Tue_May_26_11_13_43_2009_896)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090526.111343.48515131.chat95>