From owner-freebsd-questions@FreeBSD.ORG Wed Aug 22 21:14:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A42CF106564A for ; Wed, 22 Aug 2012 21:14:19 +0000 (UTC) (envelope-from kudzu@tenebras.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 364B28FC0C for ; Wed, 22 Aug 2012 21:14:18 +0000 (UTC) Received: by wibhr14 with SMTP id hr14so71165wib.13 for ; Wed, 22 Aug 2012 14:14:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=kuGLTR8T0xJzK+SPEO+qYlw3kgxiiRqpbihlMwdahPs=; b=BL2xjbaoc/VmVYfKhR+wUaH4XYldURiyyKF1n3zuW5gJcKTOyks+l5UHpMvVJG4N3R ZaHReS1hj2x5Om0uxyh3WS1aSylRotJ442LSTNbAD+F5WSZUc6krRW+4K8DMEtEqNI73 i7BnluYK19mVpE8UwU6TJpmS4/pq6U9P21mlh9+xT5o4k341FpFca+lt6f8WQ4YcIrNx 8CxLsnSv3kpF/PYAH4mdW1xb6h7UrLC7zJyv3CdcYLyBPxKOhgAD9ZQLrRyUpZjLeRdr C+VVu34Cd3dJwpkeo6eWIRPo856EloSN0nBIt8ZL9OQLSgUpZ+OtggdU0bWk7HpLdZOy jb1g== MIME-Version: 1.0 Received: by 10.180.19.169 with SMTP id g9mr8914105wie.9.1345670057949; Wed, 22 Aug 2012 14:14:17 -0700 (PDT) Received: by 10.223.160.9 with HTTP; Wed, 22 Aug 2012 14:14:17 -0700 (PDT) In-Reply-To: <1345664911.2501.8.camel@z6000.lenzicasa> References: <201208221934.q7MJYfwM063804@mail.r-bonomi.com> <1345664911.2501.8.camel@z6000.lenzicasa> Date: Wed, 22 Aug 2012 14:14:17 -0700 Message-ID: From: Michael Sierchio To: Sergio de Almeida Lenzi Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQktqxhyMMK2US0VLV6A4xb2q2c0FBPUEhjIts9DUJ2qQNo1lIRfUrAxKhXA+s8FrhXzW/mb Cc: freebsd-questions@freebsd.org 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: Wed, 22 Aug 2012 21:14:19 -0000 This will happen automatically if you go to multiuser without a writeable /tmp. See /etc/rc.d/tmp I have a problem with the semantics of the rc scripts for this and var, though - if you are going to use a memory-backed filesystem, you should reserve all the space at the outset. "Bad things" can occur as you approach the memory limit (like a kernel panic) otherwise. I'd prefer something like this: _mdunit=`mdconfig -a -n -t malloc -o reserve -s ${tmpsize}` newfs /dev/md${_mdunit} > /dev/null 2>&1 mount -o ${tmpmfs_flags} /dev/md${_mdunit} /tmp But that's just me. mount_md doesn't quite do this. -M On Wed, Aug 22, 2012 at 12:48 PM, Sergio de Almeida Lenzi wrote: > If you use zfs, that is easy... zfs set quota=NNG pool/tmp > > if not.... > try to mount tmp in memory... > in /etc/rc.conf.... > > tmpmfs="YES" > tmpsize="400m" > > reboot > this would create a /tmp in memory (swap) > size=400 Megabytes.... > > Sergio > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"