diff options
author | des <des@FreeBSD.org> | 2003-06-13 08:46:13 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-06-13 08:46:13 +0000 |
commit | 6e6f4e827010564489106d68fd31745b8712f0d0 (patch) | |
tree | 3f6649d53512b1cc1a17ed2738e5f2f4b06d09ea /sys/fs | |
parent | 5549e4aa25257f6db8b251ef3d1501d0aa7052f7 (diff) | |
download | FreeBSD-src-6e6f4e827010564489106d68fd31745b8712f0d0.zip FreeBSD-src-6e6f4e827010564489106d68fd31745b8712f0d0.tar.gz |
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
Diffstat (limited to 'sys/fs')
0 files changed, 0 insertions, 0 deletions