diff options
author | Ori Bernstein <ori@eigenstate.org> | 2022-08-10 12:27:15 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2022-08-10 12:27:15 +0000 |
commit | 07e14e43baafbfe7855a2003faa15e70ec5640a1 (patch) | |
tree | d6e6fc30035f3f793fa5be05a5542fc9e91c484b /sys/src/9/bcm | |
parent | 4521ae32bb95562b4210c23bee02a9fe1b1e3137 (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/bcm')
-rw-r--r-- | sys/src/9/bcm/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |