From owner-freebsd-stable@FreeBSD.ORG Sun Jan 2 15:26:45 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94DDA1065670 for ; Sun, 2 Jan 2011 15:26:45 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from fep16.mx.upcmail.net (fep16.mx.upcmail.net [62.179.121.36]) by mx1.freebsd.org (Postfix) with ESMTP id E584E8FC1A for ; Sun, 2 Jan 2011 15:26:44 +0000 (UTC) Received: from edge05.upcmail.net ([192.168.13.212]) by viefep16-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110102152642.XKQC29594.viefep16-int.chello.at@edge05.upcmail.net> for ; Sun, 2 Jan 2011 16:26:42 +0100 Received: from pinky ([213.46.23.80]) by edge05.upcmail.net with edge id qfSg1f02H1jgp3H05fSioy; Sun, 02 Jan 2011 16:26:42 +0100 X-SourceIP: 213.46.23.80 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-stable@freebsd.org References: Date: Sun, 02 Jan 2011 16:26:40 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/11.00 (Win32) X-Cloudmark-Analysis: v=1.1 cv=vUpxTctd+kpWCBtSXXIkt5ll4Z8E5Qu9nLREXC/hfIo= c=1 sm=0 a=_ho-Ba79acAA:10 a=bgpUlknNv7MA:10 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=3H_skrNEcvHEVgA7-AQA:9 a=zkmQ3z6qwey37GMdCHIA:7 a=WYS-2Tq7iwWKPihgr1aLwuvs2D4A:4 a=CjuIK1q_8ugA:10 a=bDqfGn44ETEA:10 a=MSl-tDqOz04A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: Re: tmpfs runs out of space on 8.2pre-release, zfs related? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 15:26:45 -0000 On Sun, 02 Jan 2011 09:41:04 +0100, miyamoto moesasji wrote: > miyamoto moesasji gmail.com> writes: > >> >> In setting up tmpfs (so not tmpmfs) on a machine that is using >> zfs(v15, zfs v4) on 8.2prerelease I run out of space on the tmpfs when >> copying a file of ~4.6 GB file from the zfs-filesystem to the memory >> disk. This machine has 8GB of memory backed by swap on the harddisk, >> so I expected the file to copy to memory without problems. >> > > ....this is in fact worse than I first thought. After leaving the > machine running overnight the tmpfs is reduced to a size of 4K, which > shows that tmpfs is in fact > completely unusable for me. See the output of df: > --- > hge@PulsarX4:~/ > df -hi /tmp > Filesystem Size Used Avail Capacity iused ifree %iused Mounted > on > tmpfs 4.0K 4.0K 0B 100% 18 0 100% /tmp > --- > > Relevant zfs-stats info: > --- > System Memory Statistics: > Physical Memory: 8161.74M > Kernel Memory: 4117.40M > DATA: 99.29% 4088.07M > TEXT: 0.71% 29.33M > > ARC Size: > Current Size (arcsize): 63.58% 4370.60M > Target Size (Adaptive, c): 100.00% 6874.44M > Min Size (Hard Limit, c_min): 12.50% 859.31M > Max Size (High Water, c_max): ~8:1 6874.44M > --- > > I'm not sure what triggered this further reduction in size; but the > above 4K size is probably important to show how dramatic this goes > wrong. Is it possible that some program is filling a file (on your tmpfs) which is deleted? You will not see it with df or ls, but it still takes space on the fs, until the application closes the file. Ronald.