ref: d6bb5f62edae3b7a311ed3a0a27f8f0273693ca0
parent: 81c844499bad5a0ca67be38fd6a90d254f208dd8
author: Ori Bernstein <ori@eigenstate.org>
date: Tue May 14 17:09:44 EDT 2024
main; scale nreaders with nproc
--- a/main.c
+++ b/main.c
@@ -398,7 +398,7 @@
fs->wrchan = mkchan(32);
fs->admchan = mkchan(32);
fs->nsyncers = nproc/2;
- fs->nreaders = 1;
+ fs->nreaders = nproc/2;
if(fs->nsyncers > fs->narena)
fs->nsyncers = fs->narena;
for(i = 0; i < fs->nsyncers; i++)