Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2008 18:01:57 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-hackers@FreeBSD.ORG, Matthias Apitz <matthias.apitz@oclc.org>
Subject:   Re: eeePC 900 with SSD && reducing writes
Message-ID:  <200807081601.m68G1vgc019961@lurza.secnetix.de>
In-Reply-To: <20080624131150.GA21185@rebelion.Sisis.de>

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

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.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"FreeBSD is Yoda, Linux is Luke Skywalker"
        -- Daniel C. Sobral



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