]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Collect read and write counts for filesystems. This new code
authormckusick <mckusick@FreeBSD.org>
Wed, 1 Dec 1999 02:09:30 +0000 (02:09 +0000)
committermckusick <mckusick@FreeBSD.org>
Wed, 1 Dec 1999 02:09:30 +0000 (02:09 +0000)
commita7a8ed1423843607656950db4061ebb31fd1e7d0
treeb0c34665672f470d0c72f6ed5f9d861120597e4a
parent4a057a051637196347444904a661495efcdbb941
Collect read and write counts for filesystems. This new code
drops the counting in bwrite and puts it all in spec_strategy.
I did some tests and verified that the counts collected for writes
in spec_strategy is identical to the counts that we previously
collected in bwrite. We now also get read counts (async reads
come from requests for read-ahead blocks). Note that you need
to compile a new version of mount to get the read counts printed
out. The old mount binary is completely compatible, the only
reason to install a new mount is to get the read counts printed.

Submitted by: Craig A Soules <soules+@andrew.cmu.edu>
Reviewed by: Kirk McKusick <mckusick@mckusick.com>
sys/fs/specfs/spec_vnops.c
sys/kern/vfs_bio.c
sys/miscfs/specfs/spec_vnops.c
sys/sys/mount.h