Date: Fri, 13 Jun 2003 01:46:14 -0700 (PDT) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_cache.c Message-ID: <200306130846.h5D8kEHc053599@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2003/06/13 01:46:13 PDT FreeBSD src repository Modified files: sys/kern vfs_cache.c Log: Make the VFS cache use zones instead of malloc(9). This results in a small but noticeable increase in performance for name lookup operations. The code uses two zones, one for short names (less than 32 characters) and one for long names (up to NAME_MAX). Since most file names are fairly short, this saves a considerable amount of space that would otherwise be wasted if we always allocated NAME_MAX bytes. The cutoff value of 32 characters was picked arbitrarily and may benefit from some tweaking; it could also be made into a tunable. Submitted by: hmp Revision Changes Path 1.85 +33 -4 src/sys/kern/vfs_cache.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306130846.h5D8kEHc053599>