From owner-freebsd-fs@FreeBSD.ORG Wed Aug 25 13:21:38 2010 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 D6C9C106566C for ; Wed, 25 Aug 2010 13:21:38 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.net (unknown [IPv6:2a01:240:fe5c::41]) by mx1.freebsd.org (Postfix) with ESMTP id 874FA8FC1A for ; Wed, 25 Aug 2010 13:21:38 +0000 (UTC) Received: from roberto-al.eurocontrol.fr (aran.keltia.net [88.191.250.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: roberto) by keltia.net (Postfix/TLS) with ESMTPSA id D37189931 for ; Wed, 25 Aug 2010 15:21:36 +0200 (CEST) Date: Wed, 25 Aug 2010 15:21:31 +0200 From: Ollivier Robert To: freebsd-fs@freebsd.org Message-ID: <20100825132131.GA56434@roberto-al.eurocontrol.fr> References: <20100811014919.GA52992@icarus.home.lan> <20100811192537.GA44635@tolstoy.tols.org> <20100811214302.GB44635@tolstoy.tols.org> <20100812205625.GA79515@server.vk2pj.dyndns.org> <20100824150035.GB99477@roberto-al.eurocontrol.fr> <20100824200527.GC11990@server.vk2pj.dyndns.org> <4C742C8F.2030401@icyb.net.ua> <20100824215508.GA15597@lonrach.keltia.net> <4C744417.8080106@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C744417.8080106@icyb.net.ua> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 7.2 / Dell D820 SMP User-Agent: Mutt/1.5.20 (2009-06-14) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (keltia.net); Wed, 25 Aug 2010 15:21:37 +0200 (CEST) Subject: Re: zfs arc - just take it all and be good to me X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 13:21:38 -0000 According to Andriy Gapon: > Could you please double-check? Is the check for vm_paging_needed() indeed? > That could have been a slightly different patch. 695 [15:19] root@centre:src/sys# svn diff cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Index: cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c =================================================================== --- cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c (revision 210515) +++ cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c (working copy) @@ -2123,8 +2123,9 @@ /* * If pages are needed or we're within 2048 pages * of needing to page need to reclaim + * XXX Try to workaround zfs overzealousness from gav/avg */ - if (vm_pages_needed || (vm_paging_target() > -2048)) + if (vm_pages_needed) return (1); #if 0 -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr In memoriam to Ondine : http://ondine.keltia.net/