Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm amap_wipeout: remove a comment which is no longer true.



details:   https://anonhg.NetBSD.org/src/rev/5b0a1b4662e3
branches:  trunk
changeset: 580050:5b0a1b4662e3
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Apr 06 13:58:40 2005 +0000

description:
amap_wipeout: remove a comment which is no longer true.
despite of what comment said, i left preempt() call
because i don't think of any bad effects.

diffstat:

 sys/uvm/uvm_amap.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (36 lines):

diff -r be4fbb365894 -r 5b0a1b4662e3 sys/uvm/uvm_amap.c
--- a/sys/uvm/uvm_amap.c        Wed Apr 06 13:51:33 2005 +0000
+++ b/sys/uvm/uvm_amap.c        Wed Apr 06 13:58:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_amap.c,v 1.57 2005/01/30 17:23:05 chs Exp $        */
+/*     $NetBSD: uvm_amap.c,v 1.58 2005/04/06 13:58:40 yamt Exp $       */
 
 /*
  *
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.57 2005/01/30 17:23:05 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.58 2005/04/06 13:58:40 yamt Exp $");
 
 #undef UVM_AMAP_INLINE         /* enable/disable amap inlines */
 
@@ -677,17 +677,6 @@
                        uvm_anfree(anon);
                }
 
-               /*
-                * XXX
-                * releasing the swap space held by an N anons is an O(N^2)
-                * operation because of the implementation of extents.
-                * if there are many anons, tearing down an exiting process'
-                * address space can take many seconds, which causes very
-                * annoying pauses.  we yield here to give other processes
-                * a chance to run.  this should be removed once the performance
-                * of swap space management is improved.
-                */
-
                if (curlwp->l_cpu->ci_schedstate.spc_flags & SPCF_SHOULDYIELD)
                        preempt(1);
        }



Home | Main Index | Thread Index | Old Index