From 83ffc3a1dab930c341aef0ff7892481351197ef5 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 6 Oct 2012 07:05:08 +0200 Subject: [PATCH] pc kernel: make imagemem maxsize 10% less of mainmem maxsize --- sys/src/9/pc/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/pc/main.c b/sys/src/9/pc/main.c index 13b42bf99..c84eeb6a1 100644 --- a/sys/src/9/pc/main.c +++ b/sys/src/9/pc/main.c @@ -461,7 +461,7 @@ confinit(void) * the dynamic allocation will balance the load properly, * hopefully. be careful with 32-bit overflow. */ - imagmem->maxsize = mainmem->maxsize; + imagmem->maxsize = kpages - (kpages/10); if(p = getconf("*imagemaxmb")){ imagmem->maxsize = strtol(p, nil, 0)*MB; if(imagmem->maxsize > mainmem->maxsize)