From 07e14e43baafbfe7855a2003faa15e70ec5640a1 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Wed, 10 Aug 2022 12:27:15 +0000 Subject: 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. --- sys/src/9/bcm/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/src/9/bcm') diff --git a/sys/src/9/bcm/main.c b/sys/src/9/bcm/main.c index d6c4acaa6..13754d7d8 100644 --- a/sys/src/9/bcm/main.c +++ b/sys/src/9/bcm/main.c @@ -222,8 +222,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.nswap = conf.npage*3; conf.nswppo = 4096; conf.nimage = 200; -- cgit v1.2.3