From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 12:18:36 2011 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 66B6F1065679 for ; Mon, 24 Jan 2011 12:18:36 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id ED72C8FC17 for ; Mon, 24 Jan 2011 12:18:35 +0000 (UTC) Received: by wyf19 with SMTP id 19so3995424wyf.13 for ; Mon, 24 Jan 2011 04:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=TgJiSPW2vzxxLzh/ZJPAnoez1ucf8dFHbJ2nXVVLUDs=; b=OV67fPuOKWBaKUrzcpXtsPciN4cPx7364lgG+tIq1FdrdMBq0GSF4Jc0GmoxOi5I2P uyGK8T7h7iYZFYo7ZN0de6iCGbYEaUJEfERqQ4gh0k1gBXsirL98yYTGjvhqwoDZCDwv f9vN7MFJKAU4Qqosh3xJCydiZ/OyRPx03q538= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=NoxxY0AX+taK2ldZPK+MZPkTj0drX5ClO5rXFlKYNuWM055apFiDj4WSx+BGRm/NMi jvou9lrL4tsl+UEJqGoV7nNqZwtOI7NIP840WlbrdaeAw5RERsjE+kBHoLu/7JIBcy6e pAbtWY04ViQHu4hdkGY5gK2JDgINlOi9CHp6A= Received: by 10.227.209.9 with SMTP id ge9mr578097wbb.81.1295871514974; Mon, 24 Jan 2011 04:18:34 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk [87.194.105.247]) by mx.google.com with ESMTPS id 11sm9234910wbi.0.2011.01.24.04.18.30 (version=SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 04:18:33 -0800 (PST) Date: Mon, 24 Jan 2011 12:18:21 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20110124121821.107c2061@gumby.homeunix.com> In-Reply-To: <12db3210cd2.-2509072410058136592.-3952788888916668261@zoho.com> References: <12db3210cd2.-2509072410058136592.-3952788888916668261@zoho.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: putting "/tmp" to memory 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: Mon, 24 Jan 2011 12:18:36 -0000 On Sun, 23 Jan 2011 05:47:23 -0800 kellyremo wrote: > > "to memory" means: mounting a ~2 GByte filesystem [ tmpfs?, or > ramfs? ], and put the "/tmp" on it. [ e.g.: 4 GByte ram in the pc ]. > what to write in the "/etc/fstab"? I have tmpfs /tmp tmpfs rw,size=4280000000 I would suggest you don't use tmpmfs="YES" in rc.conf unless you are being very conservative with a production server. tmpfs is nominally experimental, but it seems to be very stable, and it's much more memory efficient than md devices. > Advantages: > - Memory is way faster then HDD/SSD, so it could speed things up It's not all that much faster due caching and soft-updates on hard disks. > Disadvantages: > - Security? [ how to set this up to be secure? any clear > howtos/links regarding it? :O ] Do you have any particular concerns?