From owner-freebsd-questions@FreeBSD.ORG Thu Aug 23 11:58:05 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79E1A106566C for ; Thu, 23 Aug 2012 11:58:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id F301C8FC0A for ; Thu, 23 Aug 2012 11:58:04 +0000 (UTC) Received: by eaak11 with SMTP id k11so218889eaa.13 for ; Thu, 23 Aug 2012 04:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=oPSi/CXL5UN5uxaCZVnWQK0bX3eQDSH76mmAniS8ka8=; b=0I9V5EVJs2LUkuzMzjlcCT41oZeAbpPKhAtMO1OlmBXYN30NajgLeOLEgTd92RWlKE tI7QFUgL3cMOz8HF6O0EWwB1M7lbMzGwNmrYWdcHeGIgB8z8Uz9uiqUZDBzZlZeJ+kRy PXtS2MgboHDxlS/xlYC16id7xiFoX79H+eou6NrVuipfDzywOydN1bjThfHlxvaOVX0J wtVDfJu7mtYn0ffqyfgmvpNim9J54cx0/Y7Npqzsl5qbFPnK+YI5kZxJ0K1/cXcH0306 R6zZDX45h6XQgrIm57bEoPM6OBrOBiNCsz26kCck194SFAfgMGk/FPsdKial7lJ0C5Kd WEKA== Received: by 10.14.206.200 with SMTP id l48mr1555090eeo.41.1345723078585; Thu, 23 Aug 2012 04:57:58 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id k49sm20898462een.4.2012.08.23.04.57.56 (version=SSLv3 cipher=OTHER); Thu, 23 Aug 2012 04:57:57 -0700 (PDT) Date: Thu, 23 Aug 2012 12:57:54 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20120823125754.53f9f545@gumby.homeunix.com> In-Reply-To: References: <201208221934.q7MJYfwM063804@mail.r-bonomi.com> <1345664911.2501.8.camel@z6000.lenzicasa> <20120822232112.07ac3517@gumby.homeunix.com> <20120822232907.34fc82fc@gumby.homeunix.com> <20120823031754.0b52bed6@gumby.homeunix.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: /tmp filesystem full X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 11:58:05 -0000 On Wed, 22 Aug 2012 21:24:47 -0700 Michael Sierchio wrote: > On Wed, Aug 22, 2012 at 7:17 PM, RW > wrote: > > > tmpfs and "swap" md devices don't actually need swap. I don't seen > > any advantage in your way of creating an md device for /tmp. > > Then you don't understand. ;-) The advantage of my approach is > avoiding a kernel panic when writing to the tmpfs md device > when you haven't > pre-allocated all the filesystem space at creation time. If that > happens to matter to you... It's the other way around, "malloc" md devices can cause kernel panics. "swap" md device use ordinary VM memory. If you set the limit too high without swap you can slow performance, but it shouldn't cause a kernel panic. The default of 2MB isn't going to make a significant difference on any normal install.