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/sparc64 | |
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/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index 51a232b..2a780749 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -396,6 +396,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--; |