From owner-freebsd-current@FreeBSD.ORG Mon Nov 22 09:15:47 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 AE2BD106564A; Mon, 22 Nov 2010 09:15:47 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id F1C628FC14; Mon, 22 Nov 2010 09:15:46 +0000 (UTC) Received: from megatron.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id 9601F19D7; Mon, 22 Nov 2010 09:59:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received; s=mail; t=1290416374; x= 1292230774; bh=V+VrUWI2BW5ZiBxb07E/GJTwWzeyQ/T6ccMBUWmFu/4=; b=d puVOQqgAzJXTPffQHeMbzqB//xozdQo8hshltqiG6LUWYeg6JiNyfofU2BfDSRJp Wq/gSu0jQ52LzT8QTy90txvIKXEdDJ79O5ia3aw89LT9LP8/+xdFEynZixEpQWwD 1G5BlUal52qtupyAPedVMjgiEr/T6FDX/gijGT0eSc= X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by megatron.madpilot.net (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pIEcKcRrznCY; Mon, 22 Nov 2010 09:59:34 +0100 (CET) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 57CB619C8; Mon, 22 Nov 2010 09:59:34 +0100 (CET) Date: Mon, 22 Nov 2010 09:59:34 +0100 From: Guido Falsi To: Ivan Voras Message-ID: <20101122085934.GA21572@megatron.madpilot.net> References: <20101121214720.356984cc@core.draftnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 8.1-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org 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: Mon, 22 Nov 2010 09:15:47 -0000 On Mon, Nov 22, 2010 at 12:34:53AM +0100, Ivan Voras wrote: > On 11/22/10 00:28, Paul B Mahol wrote: > > >Find way to reproduce it 100%. > > The way I described it can be used to reproduce the problem 100%. > Detailed instructions for a test case would be something like this: > > 0) configure a system with tmpfs for /tmp > 1) install PostgreSQL 9.0, use a ZFS file system for the database > 2) install and use pgbench to initialize a database as large as > physical memory (i.e. it will blow away all caches) > 3) run pgbench with -c of around 10 or so, let it run for 5 minutes or so > 4) stop PostgreSQL, observe reported free memory statistics etc. I have seen the same issue, with tmpfs reporting no space. I can see it happen regularly when I have big virtualbox machines running which take most of the physical mem. Here I have seen it on an 8GB machine with al ZFS when running 3-4 VMs taking 1 or 2 GBs each,(cumulatively taking around 7). I imagine this is even easier to trigger on machine with less RAM. -- Guido Falsi