eeePC 900 with SSD && reducing writes

Matthias Apitz guru at unixarea.de
Wed Jul 9 10:16:24 UTC 2008


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 at 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


More information about the freebsd-hackers mailing list