diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-03-11 16:28:11 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-03-11 16:28:11 +0100 |
commit | a7f8ebca2f09f6bb5195354a8f00c23a68dbd935 (patch) | |
tree | 2d1327f136b0a075845b4280537cdfc8ebe9a056 | |
parent | 5104934135feec1bfb2c1543028fe40bb4a41573 (diff) | |
download | plan9front-a7f8ebca2f09f6bb5195354a8f00c23a68dbd935.tar.xz |
pc kernel: give cpu servers as many image cache strctures as processes
-rw-r--r-- | sys/src/9/pc/main.c | 2 | ||||
-rw-r--r-- | sys/src/9/pc64/main.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/pc/main.c b/sys/src/9/pc/main.c index e972c2854..9722a8834 100644 --- a/sys/src/9/pc/main.c +++ b/sys/src/9/pc/main.c @@ -426,6 +426,7 @@ confinit(void) if(userpcnt < 10) userpcnt = 70; kpages = conf.npage - (conf.npage*userpcnt)/100; + conf.nimage = conf.nproc; /* * Hack for the big boys. Only good while physmem < 4GB. @@ -438,7 +439,6 @@ confinit(void) if(getconf("*imagemaxmb") == 0) if(kpages > (64*MB + conf.npage*sizeof(Page))/BY2PG){ kpages = (64*MB + conf.npage*sizeof(Page))/BY2PG; - conf.nimage = 2000; kpages += (conf.nproc*KSTACK)/BY2PG; } } else { diff --git a/sys/src/9/pc64/main.c b/sys/src/9/pc64/main.c index 040a01831..b1840ed65 100644 --- a/sys/src/9/pc64/main.c +++ b/sys/src/9/pc64/main.c @@ -200,6 +200,7 @@ confinit(void) if(userpcnt < 10) userpcnt = 70; kpages = conf.npage - (conf.npage*userpcnt)/100; + conf.nimage = conf.nproc; } else { if(userpcnt < 10) { if(conf.npage*BY2PG < 16*MB) |