From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 9 11:22:30 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78C041065678 for ; Wed, 9 Jul 2008 11:22:30 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id CE0A18FC19 for ; Wed, 9 Jul 2008 11:22:29 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m69BMSGE066903; Wed, 9 Jul 2008 13:22:28 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m69BMRD3066902; Wed, 9 Jul 2008 13:22:27 +0200 (CEST) (envelope-from olli) Date: Wed, 9 Jul 2008 13:22:27 +0200 (CEST) Message-Id: <200807091122.m69BMRD3066902@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz In-Reply-To: <20080709101619.GA6723@rebelion.Sisis.de> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 09 Jul 2008 13:22:28 +0200 (CEST) Cc: Subject: Re: eeePC 900 with SSD && reducing writes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 11:22:30 -0000 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