From owner-freebsd-current Mon Dec 1 03:01:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA29745 for current-outgoing; Mon, 1 Dec 1997 03:01:07 -0800 (PST) (envelope-from owner-freebsd-current) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA29734 for ; Mon, 1 Dec 1997 03:00:59 -0800 (PST) (envelope-from abial@korin.warman.org.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.8/8.8.5) with SMTP id MAA25779; Mon, 1 Dec 1997 12:03:00 +0100 (CET) Date: Mon, 1 Dec 1997 12:02:59 +0100 (CET) From: Andrzej Bialecki To: Tom cc: freebsd-current@FreeBSD.ORG Subject: Re: SMP: binding process to CPU In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 29 Nov 1997, Tom wrote: > > On Sat, 29 Nov 1997, Andrzej Bialecki wrote: > > > Here's why I'm asking: I have one process which must be as near real-time > > as possible, and the second process processes it's output (which is > > Use rtprio on that process. If the priority is high enough, the process > will pretty much hog a CPU. This can be dangerous, as other processes > may not run at all, but on SMP there is at least one more CPU for other > processes to run on. Well, yes... But I'm pretty sure that the same process gets scheduled on BOTH processors (I don't know how actually the scheduler does it, though). So I think that if I bounce rtprio high enough, the process in question will monopolize BOTH CPU's. Am I right? Andrzej Bialecki ---------------------+--------------------------------------------------------- abial@warman.org.pl | if(halt_per_mth > 0) { fetch("http://www.freebsd.org") } Research & Academic | "Be open-minded, but don't let your brains to fall out." Network in Poland | All of the above (and more) is just my personal opinion. ---------------------+---------------------------------------------------------