From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 30 Nov 2014 08:28:02 -0800 To: 9fans@9fans.net Message-ID: <2ce055dcac1d9755d72a3c6df95e1814@lilly.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] rebalance() funny Topicbox-Message-UUID: 2fdaddea-ead9-11e9-9d60-3106f5b1d025 rebalance(void) { ... if(p->mp != MACHP(m->machno)) continue; since p->mp != nil for forked processes, and rebalance is only called on mach0, only processes on mach0 get rebalanced, for a 8 core system, that should be ~1/8 of them. this is so amazingly wrong, i can't help but wonder if i've missed something? (by the way, the old nix code didn't rebalance anything, unless it was on the first scheduler.) - erik