From owner-freebsd-smp Sat Nov 23 14:31:49 1996 Return-Path: owner-smp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA16294 for smp-outgoing; Sat, 23 Nov 1996 14:31:49 -0800 (PST) Received: from clem.systemsix.com (clem.systemsix.com [198.99.86.131]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA16289 for ; Sat, 23 Nov 1996 14:31:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by clem.systemsix.com (8.6.12/8.6.12) with SMTP id PAA19920; Sat, 23 Nov 1996 15:31:29 -0700 Message-Id: <199611232231.PAA19920@clem.systemsix.com> X-Authentication-Warning: clem.systemsix.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 From: Steve Passe To: dg@Root.COM cc: freebsd-smp@freefall.freebsd.org, Peter Wemm Subject: Re: SMP -current merge In-reply-to: Your message of "Sat, 23 Nov 1996 14:17:52 PST." <199611232217.OAA01895@root.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 23 Nov 1996 15:31:29 -0700 Sender: owner-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, > Uhh, the "idle" queue shouldn't have anything on it unless there is an >"idprio" process running. If this patch truely makes a difference, then >there is something very wrong with the handling of whichidqs somewhere. If there are 2 CPUS smp_kickoff() creates 2 idleprocs, and thus there are 2 possible processess that can be in the idleq. When there are no rtq procs and no norq procs to run, the 1st CPU is inside smp_idleloop of cpuidleX, and the 2nd CPU is in smp_idleloop of cpuidleY, and thus there are no procs in the idleq. When the 1st CPU is busy doing something usefull (running something other than an idleproc), the 2nd CPU will be in smp_idleloop of either cpuidleX or cpuidleY, and the other cpuidle[XY] will be in the idleq. So the 2nd CPU sees the idleproc that it ISN'T currently in and switches to that one, and on and on .... -- Steve Passe | powered by smp@csn.net | FreeBSD -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.2 mQCNAzHe7tEAAAEEAM274wAEEdP+grIrV6UtBt54FB5ufifFRA5ujzflrvlF8aoE 04it5BsUPFi3jJLfvOQeydbegexspPXL6kUejYt2OeptHuroIVW5+y2M2naTwqtX WVGeBP6s2q/fPPAS+g+sNZCpVBTbuinKa/C4Q6HJ++M9AyzIq5EuvO0a8Rr9AAUR tBlTdGV2ZSBQYXNzZSA8c21wQGNzbi5uZXQ+ =ds99 -----END PGP PUBLIC KEY BLOCK-----