summaryrefslogtreecommitdiff
path: root/sys/src/9/pc64
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-08-10 12:27:15 +0000
committerOri Bernstein <ori@eigenstate.org>2022-08-10 12:27:15 +0000
commit07e14e43baafbfe7855a2003faa15e70ec5640a1 (patch)
treed6e6fc30035f3f793fa5be05a5542fc9e91c484b /sys/src/9/pc64
parent4521ae32bb95562b4210c23bee02a9fe1b1e3137 (diff)
9/port: allow kiloprocs -- allocate procs lazily
Treallocate the small data structures around procs eagerly, but use malloc to allocate the large proc data structures when we need them, which allows us to scale to many more procs. There are still many scalability bottlenecks, so we only crank up the nproc limit by a little bit this time around, and crank it up more as we optimize more.
Diffstat (limited to 'sys/src/9/pc64')
-rw-r--r--sys/src/9/pc64/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc64/main.c b/sys/src/9/pc64/main.c
index 78cd8ef4c..7da5d11fb 100644
--- a/sys/src/9/pc64/main.c
+++ b/sys/src/9/pc64/main.c
@@ -43,8 +43,8 @@ confinit(void)
conf.nproc = 100 + ((conf.npage*BY2PG)/MB)*5;
if(cpuserver)
conf.nproc *= 3;
- if(conf.nproc > 2000)
- conf.nproc = 2000;
+ if(conf.nproc > 4000)
+ conf.nproc = 4000;
conf.nimage = 200;
conf.nswap = conf.nproc*80;
conf.nswppo = 4096;