From owner-freebsd-current@FreeBSD.ORG Mon Apr 2 09:41:54 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 450EF106566B for ; Mon, 2 Apr 2012 09:41:54 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id CC9568FC17 for ; Mon, 2 Apr 2012 09:41:53 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so2001643wib.13 for ; Mon, 02 Apr 2012 02:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IfBciBSs4zV2pVQeThH8cGxrNjg7keEEEVw2hxVO0hM=; b=dI8AfQiiF/X1KySem/I4hexBWaoahKBG9O5+epWHoCKMeDOTLv3uIe0FqkPg5D6Ye4 TLMticUmlprzSt2tOPiVzpKlwIp0DvGp9UIS+llclESqS7YunzL4/VQrEh4WUs5KZB6u G6k1VZAnGr60DwwOJbUphHcqV/agPNg7UlbbI3BMgOm+gyKK0CIVFFb7HgBZBRHE8/e8 gzRoT2EO2/4k4Qh8UtUcF4JOnidiQ+YmCiAQDBTdNDGP5meuEpLM/YFt1N0UOoaeVsK5 EnljvaFKWMkabmZZJO9Lxo5GPnuNjgYWj8qpvTqO6DreqdGswd4WWFLvp4t4cG0IYhaz 8XBQ== MIME-Version: 1.0 Received: by 10.180.73.143 with SMTP id l15mr23321726wiv.11.1333359712564; Mon, 02 Apr 2012 02:41:52 -0700 (PDT) Received: by 10.180.102.67 with HTTP; Mon, 2 Apr 2012 02:41:52 -0700 (PDT) Date: Mon, 2 Apr 2012 05:41:52 -0400 Message-ID: From: grarpamp To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Mon, 02 Apr 2012 10:59:42 +0000 Subject: Re: Using TMPFS for /tmp and /var/run? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2012 09:41:54 -0000 I commonly use mfs for /var and /tmp. Sometimes even symlinking /var/tmp -> /tmp to save ram. Mostly because I want nothing leftover in them on boot, and it's fast. rc/mtree/etc takes care of populating them. /, /boot, /usr and /usr/local are read-only. [nssswitch host.conf still needs fixed to deal with that] User and daemon writeables are on other mountpoints. Thus I don't have any persistent needs in mfs. No swap either. And cron is wiped out too. No real problems. There used to be some msgs emitted about rc populating it or rc being misordered using it. Those seem fixed. mfs is a lot more stable than it used to be. In fact, the crashes were what held me back till recently. Seems now I can hammer on it with dd, fsx and iozone and it won't die. Performance is fine whether under disk UFS+soft_updates or mfs. The options below are fine for creating either. I don't care about defaults... so long as both disk and ram options exist, I'm happy. All depends on how you use it. I like nice clean separation. Some (strange) people put everything in /. Oh well. I'd rather see the legacy /sys and /compat symlinks removed. rc_debug=YES rc_info=YES syslogd_flags=-sC root_rw_mount=NO tmpmfs_flags=-SM tmpsize=64m varmfs_flags=-SM varsize=128m