From owner-freebsd-questions@FreeBSD.ORG Sat Sep 13 13:18:49 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 835A1CE9 for ; Sat, 13 Sep 2014 13:18:49 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E8D8882 for ; Sat, 13 Sep 2014 13:18:48 +0000 (UTC) Received: from [192.168.0.27] (rbn1-216-180-76-184.adsl.hiwaay.net [216.180.76.184]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s8DDIl88030703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 13 Sep 2014 08:18:47 -0500 Message-ID: <541445AD.80702@hiwaay.net> Date: Sat, 13 Sep 2014 08:25:01 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: "FreeBSD Questions !!!!" Subject: Re: tmpfs in /etc/fstab .... References: <5413C2DA.5040105@hiwaay.net> <5413FE7B.7000908@gmail.com> <54143FBC.8000409@qeng-ho.org> In-Reply-To: <54143FBC.8000409@qeng-ho.org> 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:18:49 -0000 Excellent, thanks, this is precisely the type of answer I needed :-). On 09/13/14 07:59, Arthur Chance wrote: > 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. > -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.