aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/vm_machdep.c
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2003-12-28 08:57:09 +0000
committerMike Silbersack <silby@FreeBSD.org>2003-12-28 08:57:09 +0000
commitddeb5b242e0c6d90043f2452f7cd45977359d0e7 (patch)
tree2b62e31e3e0755c298f351a2378068e7e3db825a /sys/amd64/amd64/vm_machdep.c
parenteb2cdcb127fb3bbb913cdc002f4b4e1d09aebec9 (diff)
downloadsrc-ddeb5b242e0c6d90043f2452f7cd45977359d0e7.tar.gz
src-ddeb5b242e0c6d90043f2452f7cd45977359d0e7.zip
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
Notes
Notes: svn path=/head/; revision=123929
Diffstat (limited to 'sys/amd64/amd64/vm_machdep.c')
-rw-r--r--sys/amd64/amd64/vm_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index d7c2c68800aa..be625ce0e7fd 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -460,6 +460,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--;