Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2011 12:21:00 -0800
From:      Charlie Kester <corky1951@comcast.net>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: putting "/tmp" to memory
Message-ID:  <20110123202100.GD27690@comcast.net>
In-Reply-To: <f560a52a86b6384486641e9844f039d3@mediamonks.com>
References:  <12db3210cd2.-2509072410058136592.-3952788888916668261@zoho.com> <f560a52a86b6384486641e9844f039d3@mediamonks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110123202100.GD27690>