From patchwork Tue Mar 10 13:26:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2828 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 48cG7x1rzKz3yBQ for ; Tue, 10 Mar 2020 13:26:21 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 48cG7w36ckz1vZ; Tue, 10 Mar 2020 13:26:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 48cG7w19YDz2yy3; Tue, 10 Mar 2020 13:26:20 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 48cG7t6Svcz2yTX for ; Tue, 10 Mar 2020 13:26:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 48cG7t1QTfz1dd; Tue, 10 Mar 2020 13:26:18 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1583846778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=67w7xchXWK9uOrHAI7ud6OGY5f9a8bTwgp4O/kK1qxM=; b=UW5YvBU1HgjBnkq5w0pKnbSH0FwAyYh4OdelTUkKY8MSlKi6cq6wx+W2WewxwyLqFnDiuc oO7D4Ko5JU3RRhAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1583846778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=67w7xchXWK9uOrHAI7ud6OGY5f9a8bTwgp4O/kK1qxM=; b=RSBU75g4p1viShx3D3CRXUJcRNYJOsbY3EiZY/cVCJ2xwSlWNbynzyDoGl2xdRGl6L5g3f uh9XMGbohRYMqyEPjT8aLS2t4xmQAwsH75tHcfbVd6cjCJJ8JSHvelycV+uNuApa4ElcpH +IsjssdKl6cRUm1k4XhwZy/a/XqTq89qX66+BjAYBVcIQuXyvrSK5H5gtXbR+tubNxUC6q wwkeFI22KootRmkrqwVryQfdfrH/XEafQi3Srj88CkqeHA0pztK5HQRq4XxacORuguDcWP blbUgsJDmmuDsOqy/HrPsDzYwmaS15Ac8GV9V90p8ZwB29iriaW6APTCBRALAg== 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> References: <20200310132606.21372-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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}" = "on" ]; then mkdir -p $BASEDIR/build/usr/src mount -t tmpfs tmpfs -o size=4G,nr_inodes=1M,mode=1777 $BASEDIR/build/usr/src + + mkdir -p ${BASEDIR}/build/tmp + mount -t tmpfs tmpfs -o size=4G,nr_inodes=1M,mode=1777 ${BASEDIR}/build/tmp fi mkdir -p $BASEDIR/build/usr/src/{cache,config,doc,html,langs,lfs,log,src,ccache}