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>
This commit is contained in:
parent
d9583a0008
commit
883f3caa13
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user