Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Adjust a comparison so that the pagedaemon doesn't g...



details:   https://anonhg.NetBSD.org/src/rev/63a4066d44d3
branches:  trunk
changeset: 467867:63a4066d44d3
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Mar 30 10:12:01 1999 +0000

description:
Adjust a comparison so that the pagedaemon doesn't get stuck ping-ponging with
a process trying to allocate memory.

diffstat:

 sys/uvm/uvm_pdaemon.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 86f45aa19ecd -r 63a4066d44d3 sys/uvm/uvm_pdaemon.c
--- a/sys/uvm/uvm_pdaemon.c     Tue Mar 30 10:10:57 1999 +0000
+++ b/sys/uvm/uvm_pdaemon.c     Tue Mar 30 10:12:01 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdaemon.c,v 1.14 1999/03/26 17:33:30 chs Exp $     */
+/*     $NetBSD: uvm_pdaemon.c,v 1.15 1999/03/30 10:12:01 mycroft Exp $ */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -301,7 +301,7 @@
                /*
                 * done!    restart loop.
                 */
-               if (uvmexp.free >= uvmexp.reserve_kernel ||
+               if (uvmexp.free > uvmexp.reserve_kernel ||
                    uvmexp.paging == 0)
                        thread_wakeup(&uvmexp.free);
        }



Home | Main Index | Thread Index | Old Index