ref: a7f8ebca2f09f6bb5195354a8f00c23a68dbd935
parent: 5104934135feec1bfb2c1543028fe40bb4a41573
author: cinap_lenrek <[email protected]>
date: Sat Mar 11 11:28:11 EST 2017
pc kernel: give cpu servers as many image cache strctures as processes
--- a/sys/src/9/pc/main.c
+++ b/sys/src/9/pc/main.c
@@ -426,6 +426,7 @@
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 @@
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 {
--- a/sys/src/9/pc64/main.c
+++ b/sys/src/9/pc64/main.c
@@ -200,6 +200,7 @@
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)