ref: 982a1598907c76c2a4c75f772f496886671f7d32
parent: 8d54dec9d0f820450067231c79de78fb774d0b06
author: cinap_lenrek <cinap_lenrek@felloff.net>
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)
--
⑨