summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2000-05-29 02:31:55 +0000
committerdillon <dillon@FreeBSD.org>2000-05-29 02:31:55 +0000
commit7832cdab03065ebfd87033f4feb86c83cd3cab73 (patch)
treea62c9cf2aec7a04ea093f46b1567c21ea527d7c4 /sys
parent89baefda742ebd3dced8e5dd9ec43b3a29cc1569 (diff)
downloadFreeBSD-src-7832cdab03065ebfd87033f4feb86c83cd3cab73.zip
FreeBSD-src-7832cdab03065ebfd87033f4feb86c83cd3cab73.tar.gz
Fix bug in vm_pageout_page_stats() that always resulted in a full
scan of the active queue. This fix is not expected to have any noticeable impact on performance. Noticed by: Rik van Riel <riel@conectiva.com.br>
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_pageout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 9c09a8b..1627118 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1168,6 +1168,8 @@ vm_pageout_page_stats()
tpcount = (vm_pageout_stats_max * cnt.v_active_count) / cnt.v_page_count;
if (pcount > tpcount)
pcount = tpcount;
+ } else {
+ fullintervalcount = 0;
}
m = TAILQ_FIRST(&vm_page_queues[PQ_ACTIVE].pl);
OpenPOWER on IntegriCloud