summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/main.c2
1 files changed, 1 insertions, 1 deletions
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)