From owner-freebsd-questions@FreeBSD.ORG Sun Jan 23 20:21:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEEDD106564A for ; Sun, 23 Jan 2011 20:21:03 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by mx1.freebsd.org (Postfix) with ESMTP id 5A7518FC13 for ; Sun, 23 Jan 2011 20:21:02 +0000 (UTC) Received: from omta17.westchester.pa.mail.comcast.net ([76.96.62.89]) by QMTA11.westchester.pa.mail.comcast.net with comcast id z8DZ1f0041vXlb85B8M3w9; Sun, 23 Jan 2011 20:21:03 +0000 Received: from comcast.net ([98.203.142.76]) by omta17.westchester.pa.mail.comcast.net with comcast id z8M11f00J1f6R9u3d8M2Aj; Sun, 23 Jan 2011 20:21:03 +0000 Received: by comcast.net (sSMTP sendmail emulation); Sun, 23 Jan 2011 12:21:00 -0800 Date: Sun, 23 Jan 2011 12:21:00 -0800 From: Charlie Kester To: "freebsd-questions@freebsd.org" Message-ID: <20110123202100.GD27690@comcast.net> Mail-Followup-To: "freebsd-questions@freebsd.org" References: <12db3210cd2.-2509072410058136592.-3952788888916668261@zoho.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Mailer: Mutt 1.4.2.3i X-Composer: Vim 7.3 Subject: Re: putting "/tmp" to memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 20:21:03 -0000 On Sun 23 Jan 2011 at 11:13:23 PST Terrence Koeman wrote: >> -----Original Message----- >> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- >> questions@freebsd.org] On Behalf Of kellyremo >> Sent: Sunday, January 23, 2011 14:47 >> To: FreeBSD >> Subject: putting "/tmp" to memory >> Importance: High >> >> >> "to memory" means: mounting a ~2 GByte filesystem [ tmpfs?, or ramfs? >> ], and put the "/tmp" on it. [ e.g.: 4 GByte ram in the pc ]. what to >> write in the "/etc/fstab"? >> >> I would like to collect the [ answers too:P ]: >> >> Advantages: >> - Memory is way faster then HDD/SSD, so it could speed things up >> - "SSD amortization" is less >> >> Disadvantages: >> - Security? [ how to set this up to be secure? any clear howtos/links >> regarding it? :O ] >> >> Really thank you for any good help... >> > >In rc.conf: > >tmpmfs="YES" >tmpsize="2G" >tmpmfs_flags="-S" > >That'll do it :) For other tmpmfs_flags, man mdmfs(8). My rc.conf, for example, has: tmpmfs_flags="-m 0 -o async, noatime -S -p 1777"