diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-10-06 07:05:08 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-10-06 07:05:08 +0200 |
commit | 83ffc3a1dab930c341aef0ff7892481351197ef5 (patch) | |
tree | 082362432d6ae46c7f6f9f18442eddc6c713b9f8 /sys | |
parent | 349abfcd795125bf09fae588944d98b9d871cbc9 (diff) |
pc kernel: make imagemem maxsize 10% less of mainmem maxsize
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/9/pc/main.c | 2 |
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) |