diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-01 01:28:40 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-01 01:28:40 +0000 |
commit | 4d4eaa03ea83e4cea13ce8c708ae0a40b44e2978 (patch) | |
tree | d7d6d8f1686812ffe0ce06f901c53b825d331e33 /sys | |
parent | 7fa9a76f9bbfbee8df4a325d55a1d3e52f017d1b (diff) |
only use MAX_KMAPENT 2000 on i386 amd64 sparc64 and revert to 1000 on all
other archs for now, beck theo ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/uvm/uvm_map.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/uvm/uvm_map.h b/sys/uvm/uvm_map.h index 4231459f1c2..bd10caedd98 100644 --- a/sys/uvm/uvm_map.h +++ b/sys/uvm/uvm_map.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.h,v 1.30 2005/02/19 17:58:03 henning Exp $ */ +/* $OpenBSD: uvm_map.h,v 1.31 2005/03/01 01:28:39 henning Exp $ */ /* $NetBSD: uvm_map.h,v 1.24 2001/02/18 21:19:08 chs Exp $ */ /* @@ -245,11 +245,17 @@ struct vm_map { /* XXX: number of kernel maps and entries to statically allocate */ +#if defined(__i386__) || defined(__amd64__) || defined (__sparc64__) +#define _MAX_KMAPENT 2000 +#else +#define _MAX_KMAPENT 1000 +#endif + #if !defined(MAX_KMAPENT) -#if (50 + (2 * NPROC) > 2000) +#if (50 + (2 * NPROC) > _MAX_KMAPENT) #define MAX_KMAPENT (50 + (2 * NPROC)) #else -#define MAX_KMAPENT 2000 /* XXXCDC: no crash */ +#define MAX_KMAPENT _MAX_KMAPENT /* XXXCDC: no crash */ #endif #endif /* !defined MAX_KMAPENT */ |