From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 7 17:25:24 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C5938FE1; Mon, 7 Oct 2013 17:25:24 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [IPv6:2607:f8b0:400c:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61C632381; Mon, 7 Oct 2013 17:25:24 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id jx11so3794754veb.7 for ; Mon, 07 Oct 2013 10:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=77/FGlPtJQikkCNyMtJj5PGGj3kDDBVKXvfteIN4PFw=; b=K3QXpGYPoIhKtwElQDiSPcbxPOgLHVlj647bqPOF+qzli7E0Jgm3lijpw6wTPW2P73 TsDXckVaUYyBaRieOA370Govn568XKf2kvpk0BzapVhXSwwrmHRev41LFh5UeUIguSOh 6O/uhtt50FXEgyk8GahQ7tdSQOUriwp7m8Kg7FJ2QjZ+E1K9rQxOM6Jx5pMnHZfqykwI pMfYeNnNG8TzNpYSAa1Jz4j8kWA6YFJr3YBABPJB9PpreErhKtc06WDf1Nc2EDmwqMgJ B9t2c8r8Gz+GcEudBytg+GhbHaFVkMCQ5KKtd15IIXca6he4UBQWVFFHJu1RTbIrShcl QZgA== MIME-Version: 1.0 X-Received: by 10.220.110.6 with SMTP id l6mr831498vcp.28.1381166723442; Mon, 07 Oct 2013 10:25:23 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.220.94.71 with HTTP; Mon, 7 Oct 2013 10:25:23 -0700 (PDT) In-Reply-To: References: Date: Mon, 7 Oct 2013 19:25:23 +0200 X-Google-Sender-Auth: cEoomBk3YXNvobK7q4CgSDta6XQ Message-ID: Subject: Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage? From: Davide Italiano To: Ivan Voras Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-fs@freebsd.org, FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 17:25:24 -0000 On Wed, Aug 28, 2013 at 3:56 PM, Ivan Voras wrote: > Hi, > > Prodded by davide@, I'd like to collect opinions about raising the > vfs.ufs.dirhash_reclaimage sysctl from 5 to 60, committed at: > > http://svnweb.freebsd.org/changeset/base/254986 > > What it does: > > Used in lowmem handler at > http://fxr.watson.org/fxr/source/ufs/ufs/ufs_dirhash.c#L1247 when > determining which cache entries to evict; it skips (keeps in the cache) > entries which are younger than this number of seconds. This lowmem > handler only frees up to 10% of the dirhash cache at a time. > I don't think this is correct. The first loop scans over the whole ufsdirhash_list and there's nothing that sets the cap to 10%. It might happen that UFS is unused for some minutes and you'll end up with all the cache free'd. -- Davide "There are no solved problems; there are only problems that are more or less solved" -- Henri Poincare