diff options
author | dg <dg@FreeBSD.org> | 1995-07-10 08:48:58 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-07-10 08:48:58 +0000 |
commit | e2d951bea4a91d0c1edc6bd7f99734136330065d (patch) | |
tree | f512958fb384be1a80109cbcf6e9b040163b7f5b /sys/vm/vm_glue.c | |
parent | adf3eee410a24992a3b1627e6133d8e2689a00ca (diff) | |
download | FreeBSD-src-e2d951bea4a91d0c1edc6bd7f99734136330065d.zip FreeBSD-src-e2d951bea4a91d0c1edc6bd7f99734136330065d.tar.gz |
Increased global RSS limit to total RAM.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 02b1b70..5e26710 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.19 1995/04/16 12:56:15 davidg Exp $ + * $Id: vm_glue.c,v 1.20 1995/05/30 08:16:01 rgrimes Exp $ */ #include <sys/param.h> @@ -283,7 +283,7 @@ vm_init_limits(p) 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 / 2, 512); + rss_limit = max(cnt.v_free_count, 512); p->p_rlimit[RLIMIT_RSS].rlim_cur = ptoa(rss_limit); p->p_rlimit[RLIMIT_RSS].rlim_max = RLIM_INFINITY; } |