cvs commit: src/sys/kern vfs_cache.c
Dag-Erling Smorgrav
des at FreeBSD.org
Fri Jun 13 01:46:15 PDT 2003
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
More information about the cvs-src
mailing list