tmpfs?

Installing and upgrading FreeBSD.

tmpfs?

Postby ccc » 03 Jun 2012, 18:07

Hi

I would like to install a minimal FreeBSD with LXDE on a thin client with just 2GB CompactFlash (CF) and 1GB RAM.
Should I use tmpfs?
ccc
Member
 
Posts: 608
Joined: 31 Jan 2009, 15:49

Postby wblock@ » 03 Jun 2012, 18:44

For what? For [file]/tmp[/file], yes.
User avatar
wblock@
Old Fart
 
Posts: 10183
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby ccc » 03 Jun 2012, 19:47

I'd like to use [FILE]tmpfs[/FILE] for [FILE]/tmp[/FILE] and [FILE]/var/(log,run)[/FILE] etc.
ccc
Member
 
Posts: 608
Joined: 31 Jan 2009, 15:49

Postby ccc » 03 Jun 2012, 22:52

BTW how to use the "size" mount option in [FILE]/etc/fstab[/FILE], for example for [FILE]tmpfs[/FILE] mounted as [FILE]/tmp[/FILE]?
ccc
Member
 
Posts: 608
Joined: 31 Jan 2009, 15:49

Postby wblock@ » 03 Jun 2012, 22:53

[file]/var/tmp[/file] is supposed to be kept around through system reboots, see [man=7]hier[/man]. It might be better to disable logging entirely rather than put [file]/var/log[/file] in a tmpfs.
User avatar
wblock@
Old Fart
 
Posts: 10183
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby wblock@ » 03 Jun 2012, 23:04

ccc wrote:BTW howto use "size" mount option in /etc/fstab, for example for tmpfs mounted as /tmp?


The same as other options, see [man=5]fstab[/man]:

Code: Select all
# Device  Mountpoint  FStype  Options                     Dump    Pass#
tmpfs     /tmp        tmpfs   rw,mode=01777,size=1048576  0       0
User avatar
wblock@
Old Fart
 
Posts: 10183
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby fluca1978 » 04 Jun 2012, 09:07

wblock@ wrote:It might be better to disable logging entirely rather than put [file]/var/log[/file] in a tmpfs.


But disabling logging at all will make it more difficult to "debug" the running system. My opinion is to reduce the size and the amount of logs, not to remove or make them volatile.
fluca1978
Member
 
Posts: 726
Joined: 20 May 2010, 08:53

Postby wblock@ » 04 Jun 2012, 14:52

Depends on the stage of development. :)
User avatar
wblock@
Old Fart
 
Posts: 10183
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby SirDice » 05 Jun 2012, 09:55

Simply log to an external syslog host?
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16166
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 0 guests