From owner-cvs-all Tue Apr 10 17:39:27 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0D83937B423; Tue, 10 Apr 2001 17:39:22 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3B0dL425541; Tue, 10 Apr 2001 17:39:22 -0700 (PDT) (envelope-from peter) Message-Id: <200104110039.f3B0dL425541@freefall.freebsd.org> From: Peter Wemm Date: Tue, 10 Apr 2001 17:39:21 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_cache.c src/sys/nfs nfs_node.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG peter 2001/04/10 17:39:21 PDT Modified files: sys/kern vfs_cache.c sys/nfs nfs_node.c Log: Create debug.hashstat.[raw]nchash and debug.hashstat.[raw]nfsnode to enable easy access to the hash chain stats. The raw prefixed versions dump an integer array to userland with the chain lengths. This cheats and calls it an array of 'struct int' rather than 'int' or sysctl -a faithfully dumps out the 128K array on an average machine. The non-raw versions return 4 integers: count, number of chains used, maximum chain length, and percentage utilization (fixed point, multiplied by 100). The raw forms are more useful for analyzing the hash distribution, while the other form can be read easily by humans and stats loggers. Revision Changes Path 1.55 +81 -1 src/sys/kern/vfs_cache.c 1.46 +80 -1 src/sys/nfs/nfs_node.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message