From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/4] make.sh: Make /tmp a ramdisk if ramdisks are enabled Date: Tue, 10 Mar 2020 13:26:03 +0000 Message-ID: <20200310132606.21372-2-michael.tremer@ipfire.org> In-Reply-To: <20200310132606.21372-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1862536138314695897==" List-Id: --===============1862536138314695897== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The build system is writing a large amount of temporary file systems that might land on disk or at least in the journal. This change will speed up the build and remove a lot of I/O usage. Signed-off-by: Michael Tremer --- make.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make.sh b/make.sh index 984fc95b2..188355a0d 100755 --- a/make.sh +++ b/make.sh @@ -476,6 +476,9 @@ prepareenv() { if [ "${ENABLE_RAMDISK}" =3D "on" ]; then mkdir -p $BASEDIR/build/usr/src mount -t tmpfs tmpfs -o size=3D4G,nr_inodes=3D1M,mode=3D1777 $BASEDIR/buil= d/usr/src + + mkdir -p ${BASEDIR}/build/tmp + mount -t tmpfs tmpfs -o size=3D4G,nr_inodes=3D1M,mode=3D1777 ${BASEDIR}/bu= ild/tmp fi =20 mkdir -p $BASEDIR/build/usr/src/{cache,config,doc,html,langs,lfs,log,src,cc= ache} --=20 2.20.1 --===============1862536138314695897==--