diff options
author | silby <silby@FreeBSD.org> | 2003-12-28 08:57:09 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-12-28 08:57:09 +0000 |
commit | a7d8091ae5d3864e9488083f2d01661c85cae3b1 (patch) | |
tree | 2b62e31e3e0755c298f351a2378068e7e3db825a /sys/ia64 | |
parent | 3effae1c9990745cc4a2f29dd2963a36d2465cb5 (diff) | |
download | FreeBSD-src-a7d8091ae5d3864e9488083f2d01661c85cae3b1.zip FreeBSD-src-a7d8091ae5d3864e9488083f2d01661c85cae3b1.tar.gz |
Track three new sendfile-related statistics:
- The number of times sendfile had to do disk I/O
- The number of times sfbuf allocation failed
- The number of times sfbuf allocation had to wait
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/vm_machdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c index 10c6a61..0b72dee 100644 --- a/sys/ia64/ia64/vm_machdep.c +++ b/sys/ia64/ia64/vm_machdep.c @@ -354,6 +354,7 @@ sf_buf_alloc(struct vm_page *m) mtx_lock(&sf_freelist.sf_lock); while ((sf = SLIST_FIRST(&sf_freelist.sf_head)) == NULL) { sf_buf_alloc_want++; + mbstat.sf_allocwait++; error = msleep(&sf_freelist, &sf_freelist.sf_lock, PVM|PCATCH, "sfbufa", 0); sf_buf_alloc_want--; |