eeePC 900 with SSD && reducing writes

Oliver Fromme olli at lurza.secnetix.de
Wed Jul 9 11:22:30 UTC 2008


Matthias Apitz wrote:
 > Oliver Fromme wrote:
 > > 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;

It depends what you need from /var/db.  In my case I didn't
need anything from it, so losing it was OK.

Another possibility is to create a "static" var directory
somewhere (on flash memory), e.g. /svar, and write a small
script or mtree file that creates symlinks from the memfs
/var to the static /svar, e.g. /var/db -> /svar/db.

Yet another solution would be to use unionfs, or a skeleton
.tar.gz file that contains initial things for memfs /var.

There are many possibilities to choose from.  :-)

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

"I started using PostgreSQL around a month ago, and the feeling is
similar to the switch from Linux to FreeBSD in '96 -- 'wow!'."
        -- Oddbjorn Steffensen


More information about the freebsd-hackers mailing list