From owner-freebsd-arm@FreeBSD.ORG Tue Jul 1 19:27:30 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51873C37 for ; Tue, 1 Jul 2014 19:27:30 +0000 (UTC) Received: from olinguito.schwarzes.net (olinguito.schwarzes.net [IPv6:2a01:4f8:7d:1b5::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E0CA8261C for ; Tue, 1 Jul 2014 19:27:29 +0000 (UTC) Received: from [62.109.78.35] (mosquito.schwarzes.net [62.109.78.35]) (authenticated bits=0) by olinguito.schwarzes.net (8.14.8/8.14.8) with ESMTP id s61JRQIs037080 for ; Tue, 1 Jul 2014 21:27:26 +0200 (CEST) (envelope-from freebsd.asc@strcmp.org) From: Andreas Schwarz To: freebsd-arm@FreeBSD.org Mail-Reply-To: Andreas Schwarz Mail-Followup-To: freebsd-arm@FreeBSD.org Date: Tue, 01 Jul 2014 21:27:26 +0200 (CEST) Message-ID: <44a6e8a451a.810fa8f@mail.schwarzes.net> In-Reply-To: <201407010925.s619PHeT006679@mech-cluster241.men.bris.ac.uk> References: <201407010925.s619PHeT006679@mech-cluster241.men.bris.ac.uk> User-Agent: YAM/2.9p1 (MorphOS; PPC; rv:20140418r7798) Subject: Re: /tmp, /var/log, /var/tmp as /dev/md - why? MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (olinguito.schwarzes.net [78.47.41.143]); Tue, 01 Jul 2014 21:27:26 +0200 (CEST) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2014 19:27:30 -0000 On 01.07.14, Anton Shterenlikht wrote: > Why is it a good idea to mount /tmp and some var dirs on memory disks: > > root@raspberry-pi:/usr/ports # df -m > Filesystem 1M-blocks Used Avail Capacity Mounted on > /dev/mmcsd0s2a 14694 777 12742 6% / > devfs 0 0 0 100% /dev > /dev/mmcsd0s1 16 3 13 20% /boot/msdos > /dev/md0 28 4 22 16% /tmp > /dev/md1 14 0 12 0% /var/log > /dev/md2 4 0 4 0% /var/tmp > root@raspberry-pi:/usr/ports # > > Is this about speed or power, or maybe space? Speed and speed, but I can't understand why using md here, there is already tmpfs, which optimzed for such cases (dynamic allocation, etc.). root@pizelot:~ # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/mmcsd0s2a 983680 57252 847736 6% / devfs 1 1 0 100% /dev /dev/mmcsd0s2d 8106716 3068708 4389472 41% /usr /dev/mmcsd0s2e 8106716 155976 7302204 2% /var /dev/mmcsd0s2f 8106716 236 7457944 0% /home tmpfs 1097160 4 1097156 0% /tmp tmpfs 1097160 4 1097156 0% /var/tmp Regards, Andreas