From owner-freebsd-questions@FreeBSD.ORG Sat Sep 13 13:12:13 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CA6ABE3 for ; Sat, 13 Sep 2014 13:12:13 +0000 (UTC) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) (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 F0DBD859 for ; Sat, 13 Sep 2014 13:12:12 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by fileserver.home.qeng-ho.org (8.14.7/8.14.5) with ESMTP id s8DCxegi019331; Sat, 13 Sep 2014 13:59:41 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <54143FBC.8000409@qeng-ho.org> Date: Sat, 13 Sep 2014 13:59:40 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Rolf Nielsen , "William A. Mahaffey III" , "FreeBSD Questions !!!!" Subject: Re: tmpfs in /etc/fstab .... References: <5413C2DA.5040105@hiwaay.net> <5413FE7B.7000908@gmail.com> In-Reply-To: <5413FE7B.7000908@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2014 13:12:13 -0000 On 13/09/2014 09:21, Rolf Nielsen wrote: > On 2014-09-13 06:06, William A. Mahaffey III wrote: >> >> >> .... I would like to enable use of tmpfs on my FBSD 9.3 box for >> performance. The box has 16 GB of both RAM & swap. I added >> 'tmpfs_load="YES"' to my /boot/loader.conf, but I can't figure out >> what to put in /etc/fstab to allow the process to happen >> automatically upon reboot. Specifically, what is the device I >> should be using. The man page gives the mount command, which looks >> like the device is called 'tmpfs'. Is that correct ? Are there any >> issues w/ this procedure ? TIA .... >> >> > > > tmpfs /tmp tmpfs rw,uid=0,gid=0,mode=1777,size=1073741824 0 0 > > should do it. Adjust the size parameter to your needs. It should be > specified in bytes. As of 10.0-REL you can use the usual multiplier suffix letters in the size (and other size related fields), which is easier than writing the size in bytes. This is my fstab entry tmpfs /tmp tmpfs rw,mode=01777,size=512M 0 0 A quick look at the svn repository suggests you do this with 9.3-REL as well. I've no idea whether earlier releases let you do it.