Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Aug 2005 02:47:07 +0800
From:      Xin LI <delphij@frontfree.net>
To:        freebsd-performance@FreeBSD.org
Subject:   [RFC] Bumping ufs.dirhash_maxmem to a larger value?
Message-ID:  <20050807184707.GA61714@frontfree.net>

next in thread | raw e-mail | index | archive | help

--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[Bcc'ed to -developers@, so this can be discussed in a public list]

Hi,

It seems that vfs.ufs.dirhash_maxmem is set to 2MB.  I think this value
is slightly too small for modern machines:
 - There are many applications that relies on small files.  CVS, maildir,
   etc.  For these applications a typical need of dirhash would be much
   larger than 2MB.
 - The RAM equiped with modern computers are growing fast.
 - Increasing dirhash_maxmem does not bring too much overhead on small
   systems, as the system would automatically recycle unused entities.
   If the memory was not freed in time, then it is usually because
   the system is busy accessing a zillion of small files.  Moreover,
   it is possible for the user to change the default value back to
   a smaller value if the file indexing is not their performance
   bottleneck.

My proposal is to increase the default dirhash_maxmem value to at least
32MB or 64MB.  Any objections?

Cons for this, discussed in -developer:
 - dirhash does not implements automatical mechanism to reduce memory
   usage in response to system memory pressure, and benefits mainly to
   large directories, e.g. Maildirs.

Cheers,
--=20
Xin LI <delphij frontfree net>	http://www.delphij.net/
See complete headers for GPG key and other information.


--Q68bSM7Ycu6FN28Q
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFC9lcr/cVsHxFZiIoRAqjnAJ9Mh58qF+USy9KM/2EslptVZvuFawCfaqQO
tnyAc8m/HEwtCG6hGAfaGlE=
=/cHX
-----END PGP SIGNATURE-----

--Q68bSM7Ycu6FN28Q--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050807184707.GA61714>