Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 2008 12:16:19 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: eeePC 900 with SSD && reducing writes
Message-ID:  <20080709101619.GA6723@rebelion.Sisis.de>
In-Reply-To: <200807081601.m68G1vgc019961@lurza.secnetix.de>
References:  <20080624131150.GA21185@rebelion.Sisis.de> <200807081601.m68G1vgc019961@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Tuesday, July 08, 2008 a las 06:01:57PM +0200, Oliver Fromme escribió:

> Matthias Apitz wrote:
>  > I'd also like to get rid of 'lastlog' and 'wtmp' but even if the man
>  > page claims that they will not be created if they don't exist, they
>  > come up again and again;
>  > 
>  > another candidate of not needed log is
>  > /var/log/Xorg.n.log ...
> 
> You can get rid of an on-disk /var alltogether.
> Add these lines to /etc/rc.conf:
> 
> varmfs="yes"
> varsize="32m"
> 
> It will create a memory FS for /var of 32 MB (default).

Thanks for the hint, but memfs is not so good because you will loose
/var/db; I've created a symlink now from /var/log to /tmp/log and /tmp
is memfs;

> You could also mount some or all of your disk partitions
> read-only.  That's what I do on my embedded FreeBSD-driven
> mp3 player (running from a CF card instead of hard disk),
> because it doesn't have to write anything anywhere.
> 
> If you have any disk partitions that you mount read+write,
> be sure to enable soft-updates because it tends to reduce
> the number of physical write operations.

will think about tunefs and soft-updates; thx

	matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz@oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
«...una sola vez, que es cuanto basta si se trata de verdades definitivas.»
«...only once, which is enough if it has todo with definite truth.»
José Saramago, Historia del Cerca de Lisboa



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