From owner-freebsd-current@FreeBSD.ORG Mon Nov 22 09:27:53 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 5F4DA1065675 for ; Mon, 22 Nov 2010 09:27:53 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7078FC1B for ; Mon, 22 Nov 2010 09:27:53 +0000 (UTC) Received: by mail-iw0-f182.google.com with SMTP id 39so8340156iwn.13 for ; Mon, 22 Nov 2010 01:27:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.167.67 with SMTP id p3mr6569938iby.20.1290418070330; Mon, 22 Nov 2010 01:27:50 -0800 (PST) Received: by 10.231.172.202 with HTTP; Mon, 22 Nov 2010 01:27:50 -0800 (PST) In-Reply-To: <20101122085934.GA21572@megatron.madpilot.net> References: <20101121214720.356984cc@core.draftnet> <20101122085934.GA21572@megatron.madpilot.net> Date: Mon, 22 Nov 2010 10:27:50 +0100 Message-ID: From: Olivier Smedts To: Guido Falsi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Ivan Voras 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:27:53 -0000 2010/11/22 Guido Falsi : > 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 s= o >> 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. I have the same problem : FreeBSD 8-STABLE amd64 ZFS v15 as root filesystem /tmp is a tmpfs 2 GB RAM 1.5GB ARC for ZFS When compiling "big" ports (like www/firefox), ARC fills wired memory, and /tmp show 0B available. make fails because it uses /tmp. If I lower ARC size to 1GB, the same port has no problems to compile. > > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."