From owner-cvs-src@FreeBSD.ORG Fri Jun 13 01:46:15 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26EAD37B401; Fri, 13 Jun 2003 01:46:15 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD47843FA3; Fri, 13 Jun 2003 01:46:14 -0700 (PDT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5D8kE0U053600; Fri, 13 Jun 2003 01:46:14 -0700 (PDT) (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5D8kEHc053599; Fri, 13 Jun 2003 01:46:14 -0700 (PDT) Message-Id: <200306130846.h5D8kEHc053599@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Fri, 13 Jun 2003 01:46:14 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_cache.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 08:46:15 -0000 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