From owner-freebsd-current@FreeBSD.ORG Sun Nov 21 22:42:14 2010 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 79F5F106566B for ; Sun, 21 Nov 2010 22:42:14 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id EBCF68FC08 for ; Sun, 21 Nov 2010 22:42:13 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PKIbs-00028B-Sl for freebsd-current@freebsd.org; Sun, 21 Nov 2010 23:42:12 +0100 Received: from cpe-188-129-98-75.dynamic.amis.hr ([188.129.98.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Nov 2010 23:42:12 +0100 Received: from ivoras by cpe-188-129-98-75.dynamic.amis.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Nov 2010 23:42:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Sun, 21 Nov 2010 23:42:00 +0100 Lines: 36 Message-ID: References: <20101121214720.356984cc@core.draftnet> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-188-129-98-75.dynamic.amis.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: Subject: Re: tmpfs out of space (ZFS related?) 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: Sun, 21 Nov 2010 22:42:14 -0000 On 11/21/10 23:19, Eir Nym wrote: > On 22 November 2010 01:00, Eir Nym wrote: >> On 22 November 2010 00:47, Bruce Cran wrote: >>> On Mon, 22 Nov 2010 00:43:03 +0300 >>> Eir Nym wrote: >>> >>>> Which type of MFS do you use? I think you shold use "swap-backed" for >>>> your /tmp, not "malloc-based". Last type is only for in-kernel file >>>> system. >>> >>> It's tmpfs(5), not md(4). >>> >> > > I wonder if you can create FIFO and sockets with md(4). md(4) is > geometry, not filesystem. md is a GEOM class which presents several types of devices backed by virtual memory. You can create file systems on top of those and mount them. The downside is that each of those layers has its own copy of the original data (and them some). tmpfs OTOH is a "real" memory file system, without the need for a backing device, and it is more efficient with respect to data copies (not perfect - it still AFAIK has to maintain something like 2 copies). > tmpfs(5) doesn't support this file types as I can see in FreeBSD source code. Maybe it is handled by default code, but they are supported. I have used tmpfs extensively for the last few years for mostly static servers (i.e. /tmp contains some sockets, a small number of short-lived temporary files, etc) - and it so far worked very well. This is actually the first time it failed me in some way.