From owner-freebsd-current@FreeBSD.ORG Sat Apr 28 18:06:01 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6120D1065673 for ; Sat, 28 Apr 2012 18:06:01 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from sasl.smtp.pobox.com (a-pb-sasl-sd.pobox.com [74.115.168.62]) by mx1.freebsd.org (Postfix) with ESMTP id 21DAA8FC1C for ; Sat, 28 Apr 2012 18:06:01 +0000 (UTC) Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 8C1898B8A; Sat, 28 Apr 2012 14:03:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from :reply-to:to:cc:subject:in-reply-to:message-id:references :mime-version:content-type; s=sasl; bh=sI7v/OAUIi0MD3NCz/9enhsH9 c0=; b=FO68abxTK/gAIIzxBVkHykztyl1Ct77YGc2UHc4yy+cnGrosMI23JKyOF TDkfUoUC6ecjFGQPQHdMr0quJG4sTIRhBHUPFkc79PYfDRynozsy+R+Zm5ouq2ST sgpN6eISNm8g0CA2MsLmuxdj1ORG484mb7lhoSZwkhrmpkuB7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from :reply-to:to:cc:subject:in-reply-to:message-id:references :mime-version:content-type; q=dns; s=sasl; b=IQFN8i9xDeZgsWmj3qL ez0Z8zZZ9m6Eh2LHz7y5vR8Pu8RkmG0kUxDnEFXq2ouMpa9TKzAdHAGwHQsOclgM V54lKyTUSG+eqr6LNoIfPfc3xl5XYr156TlCFm/TH2FCzA+Jna0Z6pDhayABJRrz 6XxoorZ2sa7ClcNH60dEfJUQ= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 845AB8B89; Sat, 28 Apr 2012 14:03:43 -0400 (EDT) Received: from tower.lukas.is-a-geek.org (unknown [50.35.187.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id B131A8B88; Sat, 28 Apr 2012 14:03:42 -0400 (EDT) Date: Sat, 28 Apr 2012 11:03:39 -0700 (PDT) From: Luke Dean X-X-Sender: lukas@tower.lukas.is-a-geek.org To: Chris Rees In-Reply-To: Message-ID: References: <4F746F1E.6090702@mail.zedat.fu-berlin.de> <4F74BCE8.2030802@vangyzen.net> <20120330.151848.41706133.sthaug@nethelp.no> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: 7DA909B8-915C-11E1-BF26-8BEB728A0A4D-96347044!a-pb-sasl-sd.pobox.com Cc: freebsd-current@freebsd.org Subject: Re: Using TMPFS for /tmp and /var/run? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Luke Dean List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 18:06:01 -0000 On Fri, 30 Mar 2012, Chris Rees wrote: > On 30 Mar 2012 14:26, wrote: >> >>>> However, if you always want to use tmpfs instead of stable storage, >>> please do not. Some people expect /tmp to be persistent. This is why >>> /etc/defaults/rc.conf has clear_tmp_enable="NO". Changing this would > break >>> the POLA. >>>> >>> This is a mistake. >>> >>> The default should be clear_tmp_enable="YES" >>> if only to uncover those broken configurations that expect /tmp to be >>> persistent. >> >> If you want to break POLA and make a lot of people angry, sure. >> Otherwise no. >> > > I would very much like an example of where /tmp is expected to persist. > > Chris Yes, I'm a month behind on my mailing list reading and this conversation is probably over, but I do have a personal example. In my periodic.conf, I have: daily_clean_tmps_enable="YES" daily_clean_tmps_days="30" I tend to have many distractions and work on many projects at the same time. I don't always know when I'm finished. Sometimes I just lose interest. I often don't remember to clean up after myself. These settings in periodic.conf allow me to set up temporary workspaces in /tmp. If I keep working on a project, my files remain. If I forget about it for a month, periodic will clean up my mess. If someday the default behavior were changed to make /tmp a memory-mounted filesystem or to clean it out on every reboot, I think I could set daily_clean_tmps_dirs to another directory and move my sandbox someplace else. I would very much appreciate some warning, but this would not be a problem for me.