Date: Mon, 7 Oct 2013 19:25:23 +0200 From: Davide Italiano <davide@freebsd.org> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-fs@freebsd.org, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage? Message-ID: <CACYV=-HndgcEG=aL5MgNGF5pq3=xdg9EFm_YRd6LtPZB1m1WaQ@mail.gmail.com> In-Reply-To: <kvkvi7$iv7$1@ger.gmane.org> References: <kvkvi7$iv7$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 28, 2013 at 3:56 PM, Ivan Voras <ivoras@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACYV=-HndgcEG=aL5MgNGF5pq3=xdg9EFm_YRd6LtPZB1m1WaQ>