Date: Wed, 9 Jul 2008 13:22:27 +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: <200807091122.m69BMRD3066902@lurza.secnetix.de> In-Reply-To: <20080709101619.GA6723@rebelion.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807091122.m69BMRD3066902>