X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail.wtbts.no (mail.wtbts.no [213.234.126.131]) by lists.alpinelinux.org (Postfix) with ESMTP id C49511EBFF8 for ; Wed, 2 Mar 2011 07:39:36 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id 990ECAE4001 for ; Wed, 2 Mar 2011 07:39:35 +0000 (UTC) X-Virus-Scanned: Yes Received: from mail.wtbts.no ([127.0.0.1]) by localhost (bsna.nor.wtbts.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F7zIeaSluZfO for ; Wed, 2 Mar 2011 07:39:20 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id 1CC2A376073 for ; Wed, 2 Mar 2011 07:39:20 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id D9A7262172B83 for ; Wed, 2 Mar 2011 07:39:19 +0000 (UTC) Received: from ncopa-desktop.nor.wtbts.net (unknown [10.65.65.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@ytre.org) by mail.ytre.org (Postfix) with ESMTPSA id B8E6D62172B60 for ; Wed, 2 Mar 2011 07:39:19 +0000 (UTC) Date: Wed, 2 Mar 2011 08:36:29 +0100 From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] saving space on build servers Message-ID: <20110302083629.548e2068@ncopa-desktop.nor.wtbts.net> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.0; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hi, The disk usage on our shared x86 build server was up to 82% (~ 320G) so I thought we might do something to keep disk usage down a bit. There is lots of diskspace that could be saved by just cleaning the src and pkg dirs from builds. I think saving src a few days might be good since its handy when debugging things. The pkg dir could probably be deleted dirctly after apk package creation its same contents anyways. Here is the cron script I added to my ncdev box. I have added a similar script for build-edge. $ cat /etc/periodic/daily/clean-aports #!/bin/sh aports=/home/ncopa/aports find $aports -maxdepth 3 -type d \( -name src -o -name pkg \) -mtime +7\ | xargs rm -r After running those script in ncdev and build-edge the disk usage went down to 68%, ( ~256G). So simply removing temp files saved us for 64G. I'll modify abuild to clean the temp build dirs by default. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---