summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2001-10-10 23:06:54 +0000
committerps <ps@FreeBSD.org>2001-10-10 23:06:54 +0000
commitdb0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2 (patch)
tree851a2b6bf1a0825cd12cca18ac56abe59123f449 /sys/vm/vm_glue.c
parent63fe581848b6f9a1e281df1b746662fd252d3eab (diff)
downloadFreeBSD-src-db0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2.zip
FreeBSD-src-db0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2.tar.gz
Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader
tunable. Reviewed by: peter MFC after: 2 weeks
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index d239516..7a03cca 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -62,7 +62,6 @@
* $FreeBSD$
*/
-#include "opt_rlimit.h"
#include "opt_vm.h"
#include <sys/param.h>
@@ -328,10 +327,10 @@ vm_init_limits(udata)
* of memory - half of main memory helps to favor smaller processes,
* and reduces thrashing of the object cache.
*/
- p->p_rlimit[RLIMIT_STACK].rlim_cur = DFLSSIZ;
- p->p_rlimit[RLIMIT_STACK].rlim_max = MAXSSIZ;
- p->p_rlimit[RLIMIT_DATA].rlim_cur = DFLDSIZ;
- p->p_rlimit[RLIMIT_DATA].rlim_max = MAXDSIZ;
+ p->p_rlimit[RLIMIT_STACK].rlim_cur = dflssiz;
+ p->p_rlimit[RLIMIT_STACK].rlim_max = maxssiz;
+ p->p_rlimit[RLIMIT_DATA].rlim_cur = dfldsiz;
+ p->p_rlimit[RLIMIT_DATA].rlim_max = maxdsiz;
/* limit the limit to no less than 2MB */
rss_limit = max(cnt.v_free_count, 512);
p->p_rlimit[RLIMIT_RSS].rlim_cur = ptoa(rss_limit);
OpenPOWER on IntegriCloud