Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/uvm Pull up revision 1.72 (requested by skrll):



details:   https://anonhg.NetBSD.org/src/rev/9a9538a2d079
branches:  netbsd-1-6
changeset: 530230:9a9538a2d079
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 02 14:30:01 2003 +0000

description:
Pull up revision 1.72 (requested by skrll):
add a new km flag UVM_KMF_CANFAIL, which causes uvm_km_kmemalloc() to
return failure if swap is full and there are no free physical pages.
have malloc() use this flag if M_CANFAIL is passed to it.
use M_CANFAIL to allow amap_extend() to fail when memory is scarce.
this should prevent most of the remaining hangs in low-memory situations.

diffstat:

 sys/uvm/uvm_extern.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c7f4e698fc7d -r 9a9538a2d079 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Mon Jun 02 14:29:52 2003 +0000
+++ b/sys/uvm/uvm_extern.h      Mon Jun 02 14:30:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.71 2002/05/17 22:00:50 enami Exp $    */
+/*     $NetBSD: uvm_extern.h,v 1.71.2.1 2003/06/02 14:30:01 tron Exp $ */
 
 /*
  *
@@ -164,6 +164,7 @@
  */
 #define UVM_KMF_NOWAIT 0x1                     /* matches M_NOWAIT */
 #define UVM_KMF_VALLOC 0x2                     /* allocate VA only */
+#define UVM_KMF_CANFAIL        0x4                     /* caller handles failure */
 #define UVM_KMF_TRYLOCK        UVM_FLAG_TRYLOCK        /* try locking only */
 
 /*



Home | Main Index | Thread Index | Old Index