mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 10:44:53 +00:00
Back-off on the previous commit, specifically remove the look-ahead
optimization on the active queue scan. I will do this correctly later.
This commit is contained in:
parent
c8c4b40cca
commit
502ba6e4a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17004
|
@ -65,7 +65,7 @@
|
||||||
* any improvements or extensions that they make and grant Carnegie the
|
* any improvements or extensions that they make and grant Carnegie the
|
||||||
* rights to redistribute these changes.
|
* rights to redistribute these changes.
|
||||||
*
|
*
|
||||||
* $Id: vm_pageout.c,v 1.80 1996/06/29 09:15:39 davidg Exp $
|
* $Id: vm_pageout.c,v 1.81 1996/07/08 02:25:53 dyson Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -564,7 +564,7 @@ vm_pageout_map_deactivate_pages(map, desired)
|
||||||
static int
|
static int
|
||||||
vm_pageout_scan()
|
vm_pageout_scan()
|
||||||
{
|
{
|
||||||
vm_page_t m, next, nextnext;
|
vm_page_t m, next;
|
||||||
int page_shortage, addl_page_shortage, maxscan, maxlaunder, pcount;
|
int page_shortage, addl_page_shortage, maxscan, maxlaunder, pcount;
|
||||||
int pages_freed;
|
int pages_freed;
|
||||||
struct proc *p, *bigproc;
|
struct proc *p, *bigproc;
|
||||||
|
@ -755,22 +755,14 @@ vm_pageout_scan()
|
||||||
|
|
||||||
pcount = cnt.v_active_count;
|
pcount = cnt.v_active_count;
|
||||||
m = TAILQ_FIRST(&vm_page_queue_active);
|
m = TAILQ_FIRST(&vm_page_queue_active);
|
||||||
nextnext = NULL;
|
|
||||||
while ((m != NULL) && (pcount-- > 0) && (page_shortage > 0)) {
|
while ((m != NULL) && (pcount-- > 0) && (page_shortage > 0)) {
|
||||||
int refcount;
|
int refcount;
|
||||||
|
|
||||||
if (m->queue != PQ_ACTIVE) {
|
if (m->queue != PQ_ACTIVE) {
|
||||||
m = nextnext;
|
break;
|
||||||
if ((m == NULL) || (m->queue != PQ_ACTIVE))
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
next = TAILQ_NEXT(m, pageq);
|
next = TAILQ_NEXT(m, pageq);
|
||||||
if (next)
|
|
||||||
nextnext = TAILQ_NEXT(next, pageq);
|
|
||||||
else
|
|
||||||
nextnext = NULL;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Don't deactivate pages that are busy.
|
* Don't deactivate pages that are busy.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue