From owner-freebsd-fs@FreeBSD.ORG Mon Oct 3 18:43:19 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14C22106564A; Mon, 3 Oct 2011 18:43:19 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id E79668FC16; Mon, 3 Oct 2011 18:43:18 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 3E4CF152C7; Mon, 3 Oct 2011 11:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1317667398; bh=ZSulABkk4B9lxlrywwn4vQgHlaktCgtKYWYENrQnbfE=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=HbDmbiI4xSCCdDzj87d4ALGQeF/qi19newYz7/3hnUxyVv7PSpzju1ESudwlj/JEm dFxncWbir0c6mvxgSazE0pk3MMaEIPWaH8YkMOkwSt5BI7A0I9lqlS0VhNrFfaTGOu EwnlHkNyvBfyIHjktBx+BTQjv5ts7t/2YwZDPmRU= Message-ID: <4E8A0232.1020005@delphij.net> Date: Mon, 03 Oct 2011 11:42:58 -0700 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: Attila Nagy References: <20111002020231.GA70864@icarus.home.lan> <4E899C8E.7040305@fsn.hu> <4E89ED58.6020104@delphij.net> <4E8A00BF.5000508@fsn.hu> In-Reply-To: <4E8A00BF.5000508@fsn.hu> OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Adrian Chadd , freebsd-fs@freebsd.org, delphij@freebsd.org, d@delphij.net Subject: Re: is TMPFS still highly experimental? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 18:43:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 10/03/11 11:36, Attila Nagy wrote: > On 10/03/2011 07:14 PM, Xin LI wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >> >> Hi, Attila, >> >> On 10/03/11 04:29, Attila Nagy wrote: >>> For me, the bug is still here: $ uname -a FreeBSD b 8.2-STABLE >>> FreeBSD 8.2-STABLE #5: Wed Sep 14 15:01:25 CEST 2011 >>> root@buildervm:/data/usr/obj/data/usr/src/sys/BOOTCLNT amd64 $ >>> df -h /tmp Filesystem Size Used Avail Capacity Mounted >>> on tmpfs 0B 0B 0B 100% /tmp >>> >>> I have no swap configured. The machine has 64 GB RAM. >>> vm.kmem_size=60G; vfs.zfs.arc_max=55G; vfs.zfs.arc_min=20G >> This sounds like a configuration issue. Running without swap is >> not recommended anyways. > I guess it depends on the workload. In general, you are possibly > right, but if you need predictable response times and you can > tolerate dying processes, swapping may not be the right thing to > do. Well, in that case one will have to tolerate tmpfs have no page to allocate (note that it does need to reserve some pages for system use) at this point. Currently it's working like a credit line -- use it here and you can't use it elsewhere, e.g. if user process used it then tmpfs can't use it... I think the only solution we can have here is to teach tmpfs about "dedicated reserve for tmpfs" so it pre-allocate a few pages that can not be reused elsewhere? E.g. create a budget that make this part of memory "tmpfs fund" :) Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOigIyAAoJEATO+BI/yjfBVPwH/2iXNPkTmgzN0pxoB/Xhrw96 TYeJkDLevVuRTVi82VDuCqrUtJeMsf0rSLdNS201AZc6+7e/rPzBWVaKSKowH9BP vY67TnbSMgG6UEnVrVZ29JMy7RHoWDapqEd5+kYxVOwi+jX8tzh+HZsqgWUjOe+F mSvv0lcvEgGyeFkPD0HoJni73noXKgumd6Eben7hN+CAwYkOWlWLYKZiHTyFqlWK To41Bg9je3FUgL95RJpoMvvO4GVRWaU95UyarMuM1ulh7WKe8/JW8QEcDaVTtABJ QIlAROPmkeagqjkHWaprAz46sJhFczShSr6DX2unhsGGCPq83eUWkOip8GDdQw4= =l3Ji -----END PGP SIGNATURE-----