Date: Wed, 1 Nov 2023 18:15:50 +0900 From: Tatsuki Makino <tatsuki_makino@hotmail.com> To: ports@freebsd.org Subject: Re: We need to do something about build times Message-ID: <SI2PR01MB503674950BAA2C71B98FABDCFAA7A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> In-Reply-To: <SI2PR01MB5036EB482A52ABB063CE8745FAA7A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> References: <ZTgXDSmpAq6lpT3f@fuz.su> <SI2PR01MB50364C673D217F06B3E8E711FAA0A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> <SI2PR01MB5036733C3CF007ED8B62FA0EFAA0A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> <SI2PR01MB5036EB482A52ABB063CE8745FAA7A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry for the repetition. The previous fix for the critical flaw does not work properly. There should be no problem this time. .if 1 STAGEDIRPREFIX= ${LOCALBASE}/.stage STAGEDIR= ${STAGEDIRPREFIX}${.CURDIR}/${_WRKDIR}/stage _PORTS_DIRECTORIES+= ${STAGEDIRPREFIX} _USES_fetch+= 980:..stagedirprefix ${STAGEDIRPREFIX}/😈: .NOTMAIN ${STAGEDIRPREFIX} @${CHMOD} 1777 ${STAGEDIRPREFIX} @${TOUCH} ${TOUCH_FLAGS} ${.TARGET:Q} ..stagedirprefix: .NOTMAIN .PHONY ${STAGEDIRPREFIX}/😈 .endif About the effect of this in my environment. In my environment, I used to set USE_TMPFS=no to save memory. And when the settings were applied, the following differences were found. There is little difference in ports where most of the time is spent in the build phase. (e.g. www/qt5-webengine) No more time is spent in the *-depends phase. The time required to build one port seems to average one-third. For ports where most of the python involved is copying files, the time required can be reduced by as much as a factor of 10. There seems to be a good balance between how memory is used and where I/O speed is desired. Now perhaps this experiment could have reached its termination :) Regards.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SI2PR01MB503674950BAA2C71B98FABDCFAA7A>